{% comment "rst" %} SemanticUI forms ================ For most form display, we use Cripsy. This might be an old artifact, so probably don't use this unless you find a reason to. This is a helper to display forms in SemanticUI markup. We don't use as_p here as the output does not style things like error listings. Inputs: form The Form object to iterate over error_title (optional) The title for the form {% endcomment %} {% load i18n %}
{% if form.non_field_errors %}
{% trans "There were problems with your submission" as error_title_default %} {% with title=error_title|default:error_title_default %}
{{ error_title }}
{% endwith %}
{% endif %} {% for field in form %}
{{ field.label_tag }} {{ field }} {% if field.errors %}
{% for error in field.errors %}
{{ error }}
{% endfor %}
{% endif %} {% if field.help_text %}

{{ field.help_text|safe }}

{% endif %}
{% endfor %} {% trans "Save" as submit_text_default %}