{% extends "vendor/base.html" %} {% load static %} {% block extra_css %} {% endblock %} {% block extra_head_js %} {% endblock %} {% block content %}
# | Item | Price | Quantity | Total |
---|---|---|---|---|
{{ forloop.counter }} | {{item.name}} | ${{item.price|floatformat:2}} | {{item.quantity}} | ${{item.total|floatformat:2}} |
Subtotal | ${{ object.subtotal|floatformat:2 }} | |||
Sales Tax | {% if object.tax == None %}TBD{% else %}${{ object.tax|floatformat:2 }}{% endif %} | |||
Shipping | {% if object.shipping == None %}TBD{% else %}${{ object.shipping|floatformat:2 }}{% endif %} | |||
Total | {% if object.total == None %}TBD{% else %}${{ object.total|floatformat:2 }}{% endif %} |
Below is an example form built entirely with Bootstrap’s form controls. Each required form group has a validation state that can be triggered by attempting to submit the form without completing it.