{% extends 'base.html' %} {% load static %} {% load crispy_forms_tags %} {% block content %}

Checkout form

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.

Billing address

{% csrf_token %}
{{ form.street_address }}
{{ form.apartment_address }}
{{ form.country }}
Please select a valid country.
Please provide a valid state.
{{ form.zip }}
Zip code required.


Payment

{% for value, name in form.fields.payment_option.choices %}
{% endfor %}

{% include "order_snippet.html" %}
{% endblock content %}