mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-23 14:49:31 +00:00
Move the useful formfield tools out into a app to reuse elsewhere
This commit is contained in:
12
app/formtools/templates/formtools/formfield.html
Normal file
12
app/formtools/templates/formtools/formfield.html
Normal 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>
|
||||
|
||||
Reference in New Issue
Block a user