{% load bootstrap_field bootstrap_button bootstrap_icon from bootstrap3 %} {% load trans from i18n %} {% load gross from prices_i18n %} {% load discount_amount_for from prices %} {% if form %} {% if discount %}
{% csrf_token %} {{ discount.name }}
{% gross discount|discount_amount_for:total %} {% else %}
{% csrf_token %} {% bootstrap_field form.voucher show_label=False form_group_class="" %} {% bootstrap_button _("Apply") button_type="submit" button_class="btn-default" %}
{% endif %} {% endif %}