Changeset - 98fe4258671d
[Not reviewed]
0 1 0
James Polley - 6 years ago 2017-12-23 10:52:58
jp@jamezpolley.com
Tidy presentation of discounts list
1 file changed with 17 insertions and 16 deletions:
0 comments (0 inline, 0 general)
pinaxcon/templates/registrasion/discount_list.html
Show inline comments
 
{% if discounts %}
 
<div class="alert-success">
 
<h3 class="label-success">Discounts and Complimentary Items</h3>
 
<div class="vertical-small"></div>
 

	
 
<blockquote>The following discounts and complimentary items are available to you. If you wish to take advantage of this offer, you must choose your items below. This discounts will be applied automatically when you check out.</blockquote>
 
  {% regroup discounts by discount.description as discounts_grouped %}
 
  {% for discount_type in discounts_grouped %}
 
  <h4>{{ discount_type.grouper }}</h4>
 
  <ul>
 
    {% for discount in discount_type.list %}
 
      <li>{{ discount.quantity }} &times; {{ discount.clause }}</li>
 
    {% endfor %}
 
  </ul>
 
  {% endfor %}
 

	
 
  <hr />
 
<div class="panel-success">
 
  <h3 class="panel-heading">Discounts and Complimentary Items</h3>
 
    <div class="panel-body">
 
      <blockquote>
 
        <p>The following discounts and complimentary items are available to you. If you wish to take advantage of this offer, you must choose your items below. This discounts will be applied automatically when you check out.</p>
 
        {% regroup discounts by discount.description as discounts_grouped %}
 
        {% for discount_type in discounts_grouped %}
 
        <h4>{{ discount_type.grouper }}</h4>
 
        <ul>
 
          {% for discount in discount_type.list %}
 
            <li>{{ discount.quantity }} &times; {{ discount.clause }}</li>
 
          {% endfor %}
 
        </ul>
 
      {% endfor %}
 
    </blockquote>
 
    <hr />
 
  </div>
 
</div>
 

	
 
{% endif %}
0 comments (0 inline, 0 general)