Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="form_row{% if field.errors %} has_errors{% endif %}{% if class %} {{ class }}{% endif %}{% if field.field.required %} required{% endif %}">
- <label for="{{ field.auto_id }}">
- {% if label %}{{ label }}{% else %}{{ field.label }}{% endif %}
- {% if field.field.required %}<span>(required)</span>{% endif %}
- </label>
- {{ field }}
- {% if field.errors %}
- <p class="error">{{ field.errors|join('<br>') }}</p>
- {% endif %}
- {% if help_text %}
- <p class="helptext">{{ help_text }}</p>
- {% elif field.help_text %}
- <p class="helptext">{{ field.help_text }}</p>
- {% endif %}
- </div>
Add Comment
Please, Sign In to add comment