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.
2013-06-21 13:43:57 +02:00
{% load i18n %}
2014-01-07 19:19:16 +01:00
< div id = "passerelle-register-plugin-{{ instance.id }}" class = "passerelle-register-plugin" >
2013-06-21 13:43:57 +02:00
{{ form.non_field_errors }}
{% for field in form %}
{{ field.errors }}
{% endfor %}
< form method = "post" >
{% csrf_token %}
2014-01-07 19:19:16 +01:00
< table id = "passerelle-register-plugin-table-{{ instance.id }}" >
2013-06-21 13:43:57 +02:00
< thead >
< tr >
< td > {% trans "Name" %}< / td >
{% for choice in form.all_choices %}
2014-01-07 19:19:16 +01:00
< td id = "passerelle-register-plugin-header-{{choice|slugify}}-{{instance.id}}" class = "passerelle-register-plugin-header-{{choice|slugify}}" >
2013-06-21 13:43:57 +02:00
{{ choice }}
< / td >
{% endfor %}
< / tr >
< / thead >
< 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 %}" >
< td > < label > {{ field.label }}< / label > < / td >
{% for choice in form.all_choices %}
{% for checkbox in field %}
{% if checkbox.choice_value == choice %}
< td > {{ checkbox.tag }}< / td >
{% endif %}
{% endfor %}
{% endfor %}
< / tr >
{% endfor %}
< / tbody >
< / table >
2014-04-29 16:42:12 +02:00
< input type = "submit" name = "{{ submit_name }}" value = "{{ submit_value }}" / >
2013-06-21 13:43:57 +02:00
< / form >
< / div >