Addressbook
- location field.. has to be refactored
This commit is contained in:
20
blechreiz/templates/field.html
Normal file
20
blechreiz/templates/field.html
Normal file
@@ -0,0 +1,20 @@
|
||||
{% 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 %}
|
||||
Reference in New Issue
Block a user