update_module_fieldset.html 771 B

1234567891011121314151617181920
  1. {% load i18n jet_tags %}
  2. <fieldset class="module aligned">
  3. {% for field in form %}
  4. <div class="form-row{% if field.errors %} errors{% endif %}">
  5. {{ field.errors }}
  6. {% if field|is_checkbox %}
  7. {{ field }} <label{% if field.field.required %} class="required"{% endif %} for="{{ field.id_for_label }}">{{ field.label }}</label>
  8. {% else %}
  9. <label{% if field.field.required %} class="required"{% endif %} for="{{ field.id_for_label }}">{{ field.label }}:</label>
  10. {{ field }}
  11. {% endif %}
  12. {% if field.field.help_text %}
  13. <p class="help">{{ field.field.help_text|safe }}</p>
  14. {% endif %}
  15. </div>
  16. {% endfor %}
  17. </fieldset>