This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
portail-citoyen-announces/portail_citoyen_announces/templates/portail_citoyen_announces/form_plugin.html

34 lines
826 B
HTML

{% load i18n %}
<form method="post">
{% csrf_token %}
{{ form.non_field_errors }}
<table>
<thead>
<tr>
<td>{% trans "Catégorie" %}</td>
{% for choice_key, choice_name in form.choices %}
<td>{{ choice_name }}</td>
{% endfor %}
</tr>
</thead>
<tbody>
{% for field in form %}
<tr>
<td>{{ field.label }}</td>
{% for subwidget in field %}
<td>{{ subwidget.tag }}</td>
{% endfor %}
</tr>
{% if field.error %}
<tr><td colspan="{{ form.choices|length }}">{{ field.error }}</td></tr>
{% endif %}
{% endfor %}
</tbody>
</table>
<input type="submit" name="{{ submit }}" value="{% trans "Modify" %}"/>
</form>
{% if success_msg %}
<p>{{ success_msg }}</p>
{% endif %}