|
|
|
@ -7,16 +7,28 @@
@@ -7,16 +7,28 @@
|
|
|
|
|
|
|
|
|
|
<h1>{% trans "Buy product" %}</h1> |
|
|
|
|
|
|
|
|
|
<table> |
|
|
|
|
<tr><th>{% trans "Name" %}:</th><td>{{ product.name }}</td></tr> |
|
|
|
|
<tr><th>{% trans "Price" %}:</th><td>{{ product.price }}</td></tr> |
|
|
|
|
<tr><th>{% trans "Category" %}:</th><td>{{ product.category }}</td></tr> |
|
|
|
|
</table> |
|
|
|
|
<div class="row"> |
|
|
|
|
<div class="col-md-offset-2 col-md-8"> |
|
|
|
|
<div class="panel panel-default"> |
|
|
|
|
<div class="panel-heading">Confirm purchase.</div> |
|
|
|
|
<div class="panel-body"> |
|
|
|
|
|
|
|
|
|
<dl class="dl-horizontal"> |
|
|
|
|
<dt>{% trans "Name" %}:</dt><dd>{{ product.name }}</dd> |
|
|
|
|
<dt>{% trans "Price" %}:</dt><dd>{{ product.price }} €</dd> |
|
|
|
|
<dt>{% trans "Category" %}:</dt><dd>{{ product.category }}</dd> |
|
|
|
|
</dl> |
|
|
|
|
|
|
|
|
|
<p>{% blocktrans %}Do you really want to buy this product?{% endblocktrans %}</p> |
|
|
|
|
<a class="btn btn-default" href="{% url 'buy_really' product.id %}">{% trans "Yes" %}</a> |
|
|
|
|
<a class="btn btn-primary" href="{% url 'buy_really' product.id %}">{% trans "Yes" %}</a> |
|
|
|
|
<a class="btn btn-default" href="{% url 'products' %}">{% trans "No" %}</a> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% endblock %} |
|
|
|
|