Move the useful formfield tools out into a app to reuse elsewhere

This commit is contained in:
2011-12-04 15:59:13 +00:00
parent 6616fefbab
commit 8e85ace60d
7 changed files with 7 additions and 6 deletions

View File

@@ -0,0 +1,12 @@
{% load add_class %}
<div class="clearfix">
{{ field.label_tag }}
<div class="input">
{% if class %}{{ field|add_class:class }}{% else %}{{ field }}{% endif %}
{% if field.help_text %}
<span class="help-block">{{ field.help_text }}</span>
{% endif %}
</div>
</div>