move error message on top of help text

according to twitter bootstrap, error message should be inline
This commit is contained in:
tzangms 2011-11-22 00:45:39 +08:00
parent cb87f07096
commit 5518ac1c2e

View File

@ -16,15 +16,15 @@
{{ field }} <span>{{ field.label }}</span>
</label>
{% for error in field.errors %}
<span class="help-inline">{{ error }}</span>
{% endfor %}
{% if field.help_text %}
<span class="help-block">
{{ field.help_text }}
</span>
{% endif %}
{% for error in field.errors %}
<span class="help-inline">{{ error }}</span>
{% endfor %}
</div>
</li>
</ul>
@ -33,15 +33,16 @@
<div class="input">
{{ field }}
{% for error in field.errors %}
<span class="help-inline">{{ error }}</span>
{% endfor %}
{% if field.help_text %}
<span class="help-block">
{{ field.help_text }}
</span>
{% endif %}
{% for error in field.errors %}
<span class="help-inline">{{ error }}</span>
{% endfor %}
</div>
{% endif %}
</div>