De-dupe discount header/text

The version with the header was better, so let's use that in both
places by moving it inside the template.
This commit is contained in:
James Polley 2017-10-01 14:44:41 +11:00
parent 8d84438543
commit 7965ac4111
3 changed files with 7 additions and 14 deletions

View file

@ -1,4 +1,6 @@
{% if discounts %}
<h3>Discounts and Complimentary Items</h3>
<div class="vertical-small"></div>
{% regroup discounts by discount.description as discounts_grouped %}
{% for discount_type in discounts_grouped %}
@ -9,4 +11,9 @@
{% endfor %}
</ul>
{% endfor %}
<blockquote><small>Any applicable discounts will be applied automatically when you check out.</small></blockquote>
<hr />
{% endif %}

View file

@ -26,14 +26,6 @@
{% if section.discounts %}
{% include "registrasion/discount_list.html" with discounts=section.discounts %}
<blockquote><small>
You must select a product to receive any discounts.<br/>
Applicable discounts will be applied automatically when you check out.
</small></blockquote>
<hr />
{% endif %}
<h3>Available options</h3>

View file

@ -50,13 +50,7 @@
<fieldset>
{% if discounts %}
<h3>Discounts and Complimentary Items</h3>
<div class="vertical-small"></div>
{% include "registrasion/discount_list.html" with discounts=discounts %}
<blockquote><small>Any applicable discounts will be applied automatically when you check out.</small></blockquote>
<hr />
{% endif %}
<h3>Make a selection</h3>