You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
989 B
35 lines
989 B
7 years ago
|
{% extends "cashonly/web/base.html" %}
|
||
11 years ago
|
{% load i18n %}
|
||
11 years ago
|
|
||
|
|
||
|
{% block content %}
|
||
|
|
||
11 years ago
|
<h1>{% trans "Buy product" %}</h1>
|
||
11 years ago
|
|
||
11 years ago
|
<div class="row">
|
||
|
<div class="col-md-offset-2 col-md-8">
|
||
|
<div class="panel panel-default">
|
||
11 years ago
|
<div class="panel-heading">{% trans "Confirm purchase." %}</div>
|
||
11 years ago
|
<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>
|
||
11 years ago
|
|
||
11 years ago
|
<p>{% blocktrans %}Do you really want to buy this product?{% endblocktrans %}</p>
|
||
10 years ago
|
<a class="btn btn-primary" href="{% url 'buy_really' product.id %}" onclick="this.style.display = 'none'; $('#dummybutton').css('display', 'inline');">{% trans "Yes" %}</a>
|
||
|
<button class="btn btn-default" style="display: none" id="dummybutton">{% trans "Yes" %}</button>
|
||
11 years ago
|
<a class="btn btn-default" href="{% url 'products' %}">{% trans "No" %}</a>
|
||
11 years ago
|
|
||
|
|
||
11 years ago
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
11 years ago
|
|
||
|
{% endblock %}
|