Django 1.8
[prawokultury.git] / shop / templates / shop / snippets / order_form.html
1 {% load i18n staticfiles %}
2
3 <form class="submit-form" action="{% url 'shop_buy' form.offer.entry.slug %}" method="post">
4     <table>
5         {{ form.as_table }}
6
7         <tr><th>{% trans "Payment and shipping costs" %}:</th><td style="font-size:1.2em;" id="cost-costs">
8                 {{ form.offer.cost_const|floatformat:"-2" }} zł
9                 + {{ form.offer.cost_per_item|floatformat:"-2" }} zł {% trans "for each copy" %}
10             </td></tr>
11         <tr><th>{% trans "Final cost" %}:</th><td id="cost-final" style="font-size:1.5em;">
12                 {{ form.offer.total_per_item|floatformat:"-2" }} zł {% trans "for each copy" %}
13                 + {{ form.offer.cost_const|floatformat:"-2" }} zł
14             </td></tr>
15         <tr><td></td><td>
16             <button type="submit" style="border: none; background: none; cursor: pointer">
17             <img alt="{% trans 'Donate!' %}" src="{% static 'img/payu.png' %}" />
18             </button>
19         </td></tr>
20     </table>
21 </form>