Permalink
Browse files

Added "required" class to vertical form label.

  • Loading branch information...
1 parent 9dd74fc commit 9e0d595f349aed8e5138f8e4b284124829bd2ad7 @fengsi fengsi committed Mar 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 bootstrap_toolkit/templates/bootstrap_toolkit/field_vertical.html
@@ -8,7 +8,7 @@
{% include "bootstrap_toolkit/field_help.html" with inline=False %}
{% include "bootstrap_toolkit/field_errors.html" with inline=False %}
{% else %}
- <label{% if field.auto_id %} for="{{ field.auto_id }}"{% endif %}>{{ field.label }}</label>
+ <label{% if field.auto_id %} for="{{ field.auto_id }}"{% endif %}{% if field.field.required %} class="required"{% endif %}>{{ field.label }}</label>
{% if input_type == "radioset" %}
{% include "bootstrap_toolkit/field_choices.html" with type="radio" %}
{% include "bootstrap_toolkit/field_help.html" with inline=False %}

0 comments on commit 9e0d595

Please sign in to comment.