{% extends "base.html" %} {% load bootstrap_toolkit %} {% block content %}

This form uses templates

The disabled field gets a $ appended using a template.

 

{% csrf_token %} {% for field in form %} {% if field.name == 'disabled' %} {% include "bootstrap_toolkit/field.html" with append='$' %} {% else %} {% if field.name != 'color' %} {% include "bootstrap_toolkit/field.html" %} {% endif %} {% endif %} {% endfor %} {% bootstrap_field form.color layout=layout %} {% if layout == "horizontal" %}

{% else %} {% endif %}

Submit the form to see error messages styled into it.

{% endblock %}