Guest User

Untitled

a guest
Apr 21st, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. <div class="form_row{% if field.errors %} has_errors{% endif %}{% if class %} {{ class }}{% endif %}{% if field.field.required %} required{% endif %}">
  2. <label for="{{ field.auto_id }}">
  3. {% if label %}{{ label }}{% else %}{{ field.label }}{% endif %}
  4. {% if field.field.required %}<span>(required)</span>{% endif %}
  5. </label>
  6. {{ field }}
  7. {% if field.errors %}
  8. <p class="error">{{ field.errors|join('<br>') }}</p>
  9. {% endif %}
  10. {% if help_text %}
  11. <p class="helptext">{{ help_text }}</p>
  12. {% elif field.help_text %}
  13. <p class="helptext">{{ field.help_text }}</p>
  14. {% endif %}
  15. </div>
Add Comment
Please, Sign In to add comment