Source

dvd-collection / templates / bootstrap_form.html

{% for field in form %}
<div class="control-group{% if field.errors %} error{% endif %}">
  <label class="control-label" for="{{field.id_for_label}}">{{field.label}}</label>
  <div class="controls">
    {{field}}
    {% if field.errors %}<span class="help-inline">{% for err in field.errors %}{{err}}{% endfor %}</span>
    {% else %}{% if field.help_text %}<span class="help-inline">{{field.help_text}}</span>{% endif %}{% endif %}
  </div>
</div>
{% endfor %}