Created
July 14, 2012 20:35
-
-
Save alexanderjulo/3113251 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="control-group {% if input.errors %}error{% endif %}"> | |
{% if input.type == 'BooleanField' %} | |
<div class="controls"> | |
<label for="{{ input.name }}" class="checkbox"> | |
{{ input }} | |
{{ input.label.text }} | |
</label> | |
</div> | |
{% else %} | |
<label for="{{ input.name }}" class="control-label">{{ input.label.text }}</label> | |
<div class="controls"> | |
{{ input }} | |
{% if input.errors %} | |
<div> | |
{% for error in input.errors %} | |
<span class="help-inline"> | |
{{ error }} | |
</span> | |
{% endfor %} | |
</div> | |
{% endif %} | |
</div> | |
{% endif %} | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment