Permalink
Browse files

Changing classnames for format_field filter

  • Loading branch information...
1 parent d030e8a commit 61953b3eeb89dcb2aececc9b2def8b65964c4e9a @nathanborror committed Apr 10, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 basic/tools/templatetags/stringutils.py
View
8 basic/tools/templatetags/stringutils.py
@@ -36,12 +36,12 @@ def format_text(value):
@register.filter
def format_field(field):
t = Template("""
- <p{% if field.is_hidden %} style="display:none;"{% endif %}>
+ <p class="ui-form-field" {% if field.is_hidden %} style="display:none;"{% endif %}>
{{ field.label_tag }}
- <span class="field">
+ <span class="ui-field">
{{ field }}
- {% if field.help_text %}<span class="help_text">{{ field.help_text }}</span>{% endif %}
- {% if field.errors %}<span class="errors">{{ field.errors|join:", " }}</span>{% endif %}
+ {% if field.help_text %}<span class="ui-field-help">{{ field.help_text }}</span>{% endif %}
+ {% if field.errors %}<span class="ui-field-error">{{ field.errors|join:", " }}</span>{% endif %}
</span>
</p>
""")

0 comments on commit 61953b3

Please sign in to comment.