{% load url from future %}
{% load catalog_filters %}
{% load thumbnail %}

<div class="store_item"> <a href="{% url 'item_detail' item.sku %}">
    {% thumbnail item.image "80x80" as im %}
    <img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}" style="display: block; float:left; margin-right:10px">
    {% endthumbnail %}</a>
    
          <h4 class="item_title"><a class="basic_link" href="{% url 'item_detail' item.sku %}">{{item.name}}</a> {% if item.is_gift %}<div>Gift Item</div>{% endif %}</h4>
          <p class="remove_cart"><a href="{% url 'remove_item_from_cart' item.cart_token %}" class="basic_link">Remove from Cart</a></p>
          <p class="price">{{item.total_price|currency }}<br />
            <span class="fine_print">+ shipping &amp; handling</span></p>
            
        <form class="qtyform" id="form-{{ item.sku }}" action="{% url 'update_item_in_cart' %}" method="post">
        {% csrf_token %}
            <p class="quantity">Quantity 
                {% if item.product.is_subscription %}
                    <input type="text" name="quantity" id="id_quantity" value="{{ item.quantity }}" class="input-mini" size='5' readonly="true" />
                {% else %}
                    <input type="hidden" name="item" value="{{ item.cart_token }}" />
                    <input type="text" name="quantity" id="id_quantity" value="{{ item.quantity }}" class="input-mini" size='5' />
                    <input type="submit" id="id_update_submit" value="update" />
                {% endif %}
           </p>
           </form>
          <div style="clear:both; padding-top:1px">
            <hr size="1" />
          </div>
</div>