海岸志愿登记

{% csrf_token %} {% if mode == "paragraphs" %} {{ form.as_p }} {% else %} {{ form.non_field_errors }} {% if mode == "manual" %}

{{ form.name.errors }}

{{ form.age.errors }}

{{ form.credit.errors }}

{{ form.confirmation.errors }}

{% elif mode == "fields" %}

{{ form.name.label_tag }} {{ form.name }} {{ form.name.errors }}

{{ form.age.label_tag }} {{ form.age }} {{ form.age.errors }}

{{ form.credit.label_tag }} {{ form.credit }} {{ form.credit.errors }}

{{ form.confirmation.label_tag }} {{ form.confirmation }} {{ form.confirmation.errors }}

{% else %} {% for field in form %}
{{ field.label_tag }} {{ field }} {{ field.errors }}
{% endfor %} {% endif %} {% endif %}