34 lines
826 B
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 %}
|