Files @ 3562772c13cc
Branch filter:

Location: symposion_app/registrasion/templates/product_category.html

Christopher Neugebauer
Adds RadioBoxProductsForm
<!--- 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 %}