1<div id="cart" class="btn-group btn-block">
2  <button type="button" data-toggle="dropdown" data-loading-text="{{ text_loading }}" class="btn btn-inverse btn-block btn-lg dropdown-toggle"><i class="fa fa-shopping-cart"></i> <span id="cart-total">{{ text_items }}</span></button>
3  <ul class="dropdown-menu pull-right">
4    {% if products or vouchers %}
5    <li>
6      <table class="table table-striped">
7        {% for product in products %}
8        <tr>
9          <td class="text-center">{% if product.thumb %} <a href="{{ product.href }}"><img src="{{ product.thumb }}" alt="{{ product.name }}" title="{{ product.name }}" class="img-thumbnail" /></a> {% endif %}</td>
10          <td class="text-left"><a href="{{ product.href }}">{{ product.name }}</a> {% if product.option %}
11            {% for option in product.option %} <br />
12            - <small>{{ option.name }} {{ option.value }}</small> {% endfor %}
13            {% endif %}
14            {% if product.recurring %} <br />
15            - <small>{{ text_recurring }} {{ product.recurring }}</small> {% endif %}</td>
16          <td class="text-right">x {{ product.quantity }}</td>
17          <td class="text-right">{{ product.total }}</td>
18          <td class="text-center"><button type="button" onclick="cart.remove('{{ product.cart_id }}');" title="{{ button_remove }}" class="btn btn-danger btn-xs"><i class="fa fa-times"></i></button></td>
19        </tr>
20        {% endfor %}
21        {% for voucher in vouchers %}
22        <tr>
23          <td class="text-center"></td>
24          <td class="text-left">{{ voucher.description }}</td>
25          <td class="text-right">x&nbsp;1</td>
26          <td class="text-right">{{ voucher.amount }}</td>
27          <td class="text-center text-danger"><button type="button" onclick="voucher.remove('{{ voucher.key }}');" title="{{ button_remove }}" class="btn btn-danger btn-xs"><i class="fa fa-times"></i></button></td>
28        </tr>
29        {% endfor %}
30      </table>
31    </li>
32    <li>
33      <div>
34        <table class="table table-bordered">
35          {% for total in totals %}
36          <tr>
37            <td class="text-right"><strong>{{ total.title }}</strong></td>
38            <td class="text-right">{{ total.text }}</td>
39          </tr>
40          {% endfor %}
41        </table>
42        <p class="text-right"><a href="{{ cart }}"><strong><i class="fa fa-shopping-cart"></i> {{ text_cart }}</strong></a>&nbsp;&nbsp;&nbsp;<a href="{{ checkout }}"><strong><i class="fa fa-share"></i> {{ text_checkout }}</strong></a></p>
43      </div>
44    </li>
45    {% else %}
46    <li>
47      <p class="text-center">{{ text_empty }}</p>
48    </li>
49    {% endif %}
50  </ul>
51</div>
52