{% extends 'base.html' %} {% block 'content' %} {% load humanize %}

{{ shoppingcart}}

{% if is_cart_empty %}

Your shopping cart is empty

{% else %}
{% csrf_token %} {{ form.management_form }}
{% for item_form in form %} {% for hidden in item_form.hidden_fields %} {{ hidden }} {% endfor %} {% endfor %}
Game Quantity Price per unit Options
{{item_form.instance.game.name}} {{item_form.quantity}} ${{item_form.instance.price_per_unit|floatformat:2|intcomma}} {{item_form.DELETE}} Remove item

{% endif %}
{% endblock %}