move error message on top of help text
according to twitter bootstrap, error message should be inline
This commit is contained in:
parent
cb87f07096
commit
5518ac1c2e
@ -16,15 +16,15 @@
|
|||||||
{{ field }} <span>{{ field.label }}</span>
|
{{ field }} <span>{{ field.label }}</span>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
|
{% for error in field.errors %}
|
||||||
|
<span class="help-inline">{{ error }}</span>
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
{% if field.help_text %}
|
{% if field.help_text %}
|
||||||
<span class="help-block">
|
<span class="help-block">
|
||||||
{{ field.help_text }}
|
{{ field.help_text }}
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% for error in field.errors %}
|
|
||||||
<span class="help-inline">{{ error }}</span>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -33,15 +33,16 @@
|
|||||||
<div class="input">
|
<div class="input">
|
||||||
{{ field }}
|
{{ field }}
|
||||||
|
|
||||||
|
{% for error in field.errors %}
|
||||||
|
<span class="help-inline">{{ error }}</span>
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
{% if field.help_text %}
|
{% if field.help_text %}
|
||||||
<span class="help-block">
|
<span class="help-block">
|
||||||
{{ field.help_text }}
|
{{ field.help_text }}
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% for error in field.errors %}
|
|
||||||
<span class="help-inline">{{ error }}</span>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user