34 lines
809 B
HTML
34 lines
809 B
HTML
{% extends "base.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block content %}
|
|
<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>
|
|
<button type="submit">{% trans "Modify" %}</button>
|
|
</form>
|
|
{% endblock %}
|