forked from CGM_Public/pretix_original
Gift cards: Remove nested form tags
This commit is contained in:
@@ -9,27 +9,25 @@
|
|||||||
<span class="sr-only">{% trans "Information" %}</span>
|
<span class="sr-only">{% trans "Information" %}</span>
|
||||||
{% trans "The following gift cards are available in your customer account:" %}
|
{% trans "The following gift cards are available in your customer account:" %}
|
||||||
</strong></p>
|
</strong></p>
|
||||||
<form method="post">
|
{% csrf_token %}
|
||||||
{% csrf_token %}
|
<ul class="list-group">
|
||||||
<ul class="list-group">
|
{% for c in customer_gift_cards %}
|
||||||
{% for c in customer_gift_cards %}
|
<li class="list-group-item row row-no-gutters">
|
||||||
<li class="list-group-item row row-no-gutters">
|
<div class="col-sm-8 col-md-9" id="gc-code-{{ forloop.counter }}">
|
||||||
<div class="col-sm-8 col-md-9" id="gc-code-{{ forloop.counter }}">
|
{{ c }}
|
||||||
{{ c }}
|
</div>
|
||||||
</div>
|
<div class="col-sm-2 text-right" id="gc-value-{{ forloop.counter }}">
|
||||||
<div class="col-sm-2 text-right" id="gc-value-{{ forloop.counter }}">
|
{{ c.value|money:c.currency }}
|
||||||
{{ c.value|money:c.currency }}
|
</div>
|
||||||
</div>
|
<div class="col-sm-2 col-md-1 text-right">
|
||||||
<div class="col-sm-2 col-md-1 text-right">
|
<button name="use_giftcard" class="btn btn-primary btn-xs use_giftcard" data-value="{{ c.secret }}"
|
||||||
<button name="use_giftcard" class="btn btn-primary btn-xs use_giftcard" data-value="{{ c.secret }}"
|
title="{% trans "Use gift card" %}"
|
||||||
title="{% trans "Use gift card" %}"
|
aria-describedby="gc-code-{{ forloop.counter }} gc-value-{{ forloop.counter }}">
|
||||||
aria-describedby="gc-code-{{ forloop.counter }} gc-value-{{ forloop.counter }}">
|
{% trans "Apply" %}
|
||||||
{% trans "Apply" %}
|
</button>
|
||||||
</button>
|
</div>
|
||||||
</div>
|
</li>
|
||||||
</li>
|
{% endfor %}
|
||||||
{% endfor %}
|
</ul>
|
||||||
</ul>
|
|
||||||
</form>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% bootstrap_form form layout='checkout' %}
|
{% bootstrap_form form layout='checkout' %}
|
||||||
|
|||||||
Reference in New Issue
Block a user