Permalink
Browse files

Merge pull request #15 from devfeng/master

removed redundant "required" class in vertical form label
  • Loading branch information...
2 parents 27c1a38 + 6eb641d commit 4c945cea6dd7c40334add6774cc02ba2a830d4dc @dyve committed Mar 19, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 bootstrap_toolkit/templates/bootstrap_toolkit/field_vertical.html
@@ -7,22 +7,22 @@
</div>
{% else %}
{% if input_type == "multicheckbox" %}
- <label class="control-label{% if field.required %} required{% endif %}">{{ field.label }}</label>
+ <label class="control-label">{{ field.label }}</label>
<div class="controls">
{% include "bootstrap_toolkit/field_choices.html" with type="checkbox" %}
{% include "bootstrap_toolkit/field_help.html" with inline=False %}
{% include "bootstrap_toolkit/field_errors.html" with inline=False %}
</div>
{% else %}
{% if input_type == "radioset" %}
- <label class="control-label{% if field.required %} required{% endif %}">{{ field.label }}</label>
+ <label class="control-label">{{ field.label }}</label>
<div class="controls">
{% include "bootstrap_toolkit/field_choices.html" with type="radio" %}
{% include "bootstrap_toolkit/field_help.html" with inline=False %}
{% include "bootstrap_toolkit/field_errors.html" with inline=False %}
</div>
{% else %}
- <label class="contral-label{% if field.field.required %} required{% endif %}"{% if field.auto_id %} for="{{ field.auto_id }}"{% endif %}>{{ field.label }}</label>
+ <label class="contral-label"{% if field.auto_id %} for="{{ field.auto_id }}"{% endif %}>{{ field.label }}</label>
<div class="controls">
{% include "bootstrap_toolkit/field_default.html" %}
{% include "bootstrap_toolkit/field_help.html" with inline=True %}
@@ -31,4 +31,4 @@
{% endif %}
{% endif %}
{% endif %}
-</div>
+</div>

0 comments on commit 4c945ce

Please sign in to comment.