Files
@ 3562772c13cc
Branch filter:
Location: symposion_app/registrasion/templates/product_category.html - annotation
3562772c13cc
1.1 KiB
text/html
Adds RadioBoxProductsForm
1b7d8a60c119 1b7d8a60c119 1b7d8a60c119 1b7d8a60c119 1b7d8a60c119 1b7d8a60c119 1b7d8a60c119 1b7d8a60c119 1b7d8a60c119 745f6db444fa 2d6b28c5a6da 2d6b28c5a6da 2d6b28c5a6da 2d6b28c5a6da 941b05786554 941b05786554 941b05786554 941b05786554 941b05786554 941b05786554 941b05786554 941b05786554 941b05786554 941b05786554 941b05786554 941b05786554 941b05786554 941b05786554 941b05786554 941b05786554 941b05786554 941b05786554 941b05786554 941b05786554 941b05786554 941b05786554 941b05786554 941b05786554 941b05786554 941b05786554 1b7d8a60c119 745f6db444fa 1b7d8a60c119 1b7d8a60c119 941b05786554 1b7d8a60c119 1b7d8a60c119 1b7d8a60c119 745f6db444fa 1b7d8a60c119 | <!--- Sample template. Move elsewhere once it's ready to go. -->
{% extends "site_base.html" %}
{% block body %}
<h1>Product Category: {{ category.name }}</h1>
<form method="post" action="">
{% csrf_token %}
<table>
{{ voucher_form }}
</table>
<p><input type="submit"></p>
{% if discounts %}
<h3>Available Discounts</h3>
<ul>
{% for discount in discounts %}
<li>{{ discount.quantity }} x
{% if discount.clause.percentage %}
{{ discount.clause.percentage|floatformat:"2" }}%
{% else %}
${{ discount.clause.price|floatformat:"2" }}
{% endif %}
off
{% if discount.clause.category %}
{{ discount.clause.category }}
{% else %}
{{ discount.clause.product.category }}
- {{ discount.clause.product }}
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
<h3>Available Products</h3>
<p>{{ category.description }}</p>
<table>
{{ form }}
</table>
<p><input type="submit"></p>
</form>
{% endblock %}
|