<span class="uk-text-bold"><span uk-icon="cart"></span> Koszyk</span><br/>
{% if app.session.get ("koszyk") is null %}
Koszyk jest pusty
{% else %}
{% if app.session.get ("koszyk").count > 0 %}
<table class="uk-table uk-table-striped uk-table-small uk-padding-remove uk-width-expand">
<thead>
<tr>
<th style="padding: 2px; font-size: 0.8em;" width="10%">lp</th>
<th style="padding: 2px; font-size: 0.8em;" width="40%">domena</th>
<th style="padding: 2px; font-size: 0.8em;" width="40%">cena netto</th>
<th style="padding: 2px; font-size: 0.8em;" width="5%"> </th>
</tr>
</thead>
<tbody>
{% set LP = 1 %}
{% for POZYCJA in app.session.get ("koszyk").positions %}
<tr data-domain='{{ POZYCJA.domain }}'>
<td style="padding: 2px; font-size: 0.8em;" width="10%">{{ LP }}</td>
<td style="padding: 2px; font-size: 0.8em;" width="40%">{{ POZYCJA.domain }}</td>
<td style="padding: 2px; font-size: 0.8em;" width="40%">{{ POZYCJA.price_str }}</td>
<td style="padding: 2px; font-size: 0.8em; cursor: pointer;" width="5%" align='center' onclick='removeFromCart ("{{ POZYCJA.domain }}");'>X</td>
</tr>
{% set LP = LP + 1 %}
{% endfor %}
</tbody>
<tfooter>
<tr>
<td></td>
<td colspan='2' class='uk-text-right uk-text-bold'>{{ app.session.get ("koszyk").totalStr }}</td>
<td></td>
</tr>
</tfooter>
</table>
<button class='uk-button uk-button-primary uk-button-small' onclick='document.location.href="{{ path("cart-view") }}";'><span uk-icon='cart'></span> Przejdź do koszyka</button>
{% else %}
Koszyk jest pusty
{% endif %}
{% endif %}