29 lines
1.0 KiB
HTML
29 lines
1.0 KiB
HTML
{% load i18n %}
|
|
|
|
<div id="passerelle-register-plugin-{{ instance_id }}" class="passerelle-register-plugin">
|
|
{{ form.non_field_errors }}
|
|
{% for field in form %}
|
|
{{ field.errors }}
|
|
{% endfor %}
|
|
|
|
<form method="post">
|
|
{% csrf_token %}
|
|
<table id="passerelle-register-plugin-table-{{ instance_id }}">
|
|
<tbody>
|
|
{% for field in form %}
|
|
<tr class="{% for checkbox in field %}{% if checkbox.is_checked %}passerelle-register-plugin-checked-{{ checkbox.choice_value|slugify }} {% endif %}{% endfor %}">
|
|
{% for choice in form.all_choices %}
|
|
{% for checkbox in field %}
|
|
{% if checkbox.choice_value == choice %}
|
|
<td>{{ checkbox.tag }}<label for="{{field.name}}_0">{{ field.label }}</label></td>
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endfor %}
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
<input type="submit" name="{{ submit }}" value="{% trans "Modify" %}"/>
|
|
</form>
|
|
</div>
|