{% load custom_tags_and_filters %}
{% if request.session.withdrawals %}
Current order:
Customer
Project
Consumable
Quantity
{% for withdraw in request.session.withdrawals %}
{{ withdraw.customer }}
{{ withdraw.project }}
{{ withdraw.consumable }}
{{ withdraw.quantity }}
{% endfor %}
{% url 'clear_withdrawals' as clear_withdrawals_url %}
{% button type="delete" size="small" value="Clear" title="Remove all items in current order" onclick="$('#consumables_order').load('"|concat:clear_withdrawals_url|concat:"')" %}