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