subscriptions page template

This commit is contained in:
Serghei Mihai 2015-04-06 13:51:11 +02:00
parent 99ed051f83
commit 8ae3eb9eec
1 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{% load i18n %}
<div id="passerelle-register-plugin-{{ instance_id }}" class="passerelle-register-plugin">
<h2>{% trans "Mes abonnements" %}</h2>
<div id="passerelle-register-plugin-{{ instance.id }}" class="passerelle-register-plugin">
{{ form.non_field_errors }}
{% for field in form %}
{{ field.errors }}
@ -8,14 +8,14 @@
<form method="post">
{% csrf_token %}
<table id="passerelle-register-plugin-table-{{ instance_id }}">
<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.html_name}}_0">{{ field.label }}</label></td>
<td>{{ checkbox.tag }}<label for="id_{{field.html_name}}_0">{{ field.label }}</label></td>
{% endif %}
{% endfor %}
{% endfor %}
@ -23,6 +23,6 @@
{% endfor %}
</tbody>
</table>
<input type="submit" name="{{ submit_name }}" value="{{ submit_value }}"/>
<input type="submit" value="{% trans "Modify" %}"/>
</form>
</div>