Skip to content
Browse files

Removed redundant "required" class in vertical form label in favor of…

… the new "control-group" markup.
  • Loading branch information...
1 parent 27c1a38 commit 6eb641dfd5918875df9e6bcc4a91eaf8e0fc76af @fenginx fenginx committed Mar 19, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 bootstrap_toolkit/templates/bootstrap_toolkit/field_vertical.html
View
8 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 6eb641d

Please sign in to comment.
Something went wrong with that request. Please try again.