Files
@ c56c7498700b
Branch filter:
Location: CopyleftConf/copyleftconf-website/pinaxcon/templates/registrasion/product_category.html - annotation
c56c7498700b
1.0 KiB
text/html
Prepares registrasion-demo to match the 0.1 release of registrasion.
6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee 6c94eb9e91ee | {% extends "registrasion/base.html" %}
{% load bootstrap %}
{% load registrasion_tags %}
{% block body %}
<h1>Product Category: {{ category.name }}</h1>
<form method="post" action="">
{% csrf_token %}
<table>
{{ voucher_form | bootstrap }}
</table>
<div class="form-actions">
<input class="btn btn-primary" type="submit" value="Add voucher" />
</div>
{% items_purchased category as items %}
{% if items %}
<h3>Paid items</h3>
<p>You have already paid for the following items:</p>
{% include "registrasion/items_list.html" with items=items %}
{% endif %}
{% if discounts %}
<h3>Available Discounts</h3>
{% include "registrasion/discount_list.html" with discounts=discounts %}
{% endif %}
<h3>Available Products</h3>
<p>{{ category.description }}</p>
<table>
{{ form | bootstrap }}
</table>
<div class="form-actions">
<input class="btn btn-primary" type="submit" value="Add to cart" />
</div>
</form>
{% endblock %}
|