21 lines
690 B
HTML
21 lines
690 B
HTML
{% if field.is_hidden %}
|
|
{{ field }}
|
|
{% else %}
|
|
<div class="control-group {% if field.errors %}error{% endif %}">
|
|
<label for="{{ field.auto_id }}" class="control-label">
|
|
{% if field.field.required %}<b>{% endif %}{{ field.label|safe }}{% if field.field.required %}*</b>{% endif %}
|
|
</label>
|
|
<div class="controls">
|
|
{{ field }}
|
|
{% if field.errors %}
|
|
<span class="help-inline">{% for error in field.errors %}{{ error }}<br/> {% endfor %}</span>
|
|
{% endif %}
|
|
{% if field.help_text%}
|
|
<p class="help-block">
|
|
{{ field.help_text|safe }}
|
|
</p>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|