comparison templates/sat_website/membership_form.html @ 77:13ebb548f234

use membership instead of adhesion in English (also rename the files)
author souliane <souliane@mailoo.org>
date Tue, 09 Jun 2015 14:55:09 +0200
parents templates/sat_website/adhesion_form.html@bfa8009f0769
children
comparison
equal deleted inserted replaced
76:d2ea666fb1dd 77:13ebb548f234
1 {% extends "sat_website/category.html" %}
2
3 {% comment %}
4 SàT website: Salut à Toi's presentation website
5 Copyright (C) 2012 Jérôme Poisson (goffi@goffi.org)
6
7 This file is part of SàT website.
8
9 SàT website is free software: you can redistribute it and/or modify
10 it under the terms of the GNU Affero General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13
14 Foobar is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU Affero General Public License for more details.
18
19 You should have received a copy of the GNU Affero General Public License
20 along with Foobar. If not, see <http://www.gnu.org/licenses/>.
21 {% endcomment %}
22
23 {% load i18n %}
24 {% load staticfiles %}
25 {% load utils %}
26
27 {% block headline %}{% trans "Join the association" %}{% endblock %}
28 {% block main_container %}
29
30 <form class="form-signin" action="membership_form.html" method="post">
31 {% csrf_token %}
32 <fieldset>
33 <legend>{% trans "Please complete this form" %}</legend>
34 {% for section, fields in form.sections.items %}
35 <div class="form-group">
36 {% if section %}
37 <label for="{{ fields.0.auto_id }}">{{ section }}</label>
38 {% endif %}
39 {% for field in fields %}
40 {% if field.field.widget|is_radio %}
41 <div class="text-center" id="{{ field.auto_id }}_group" name="{{ field.name }}_group">
42 <span for="{{ field.auto_id }}">{{ field.label }}</span>
43 <div class="btn-group" data-toggle="buttons">
44 {% for radio in field %}
45 <label for="{{ radio.id_for_label }}" class="btn btn-default badge my-btn{% if field.value == radio.choice_value %} active{% endif %}">
46 {{ radio.tag }}{{ radio.choice_label }}
47 </label>
48 {% endfor %}
49 </div>
50 <div>{{ field.help_text }}</div>
51 </div>
52 {% elif field.field.widget|is_checkbox %}
53 <div class="checkbox">
54 <label>
55 {% autoescape off %}
56 {{ field }}{{ field.label }}
57 {% if field.field.required %}
58 <span class="glyphicon glyphicon-asterisk"></span>
59 {% endif %}
60 {% endautoescape %}
61 </label>
62 </div>
63 {% else %}
64 {% if field.field.required %}
65 <div class="input-group">
66 {% endif %}
67 {{ field }}
68 {% if field.field.required %}
69 <span class="input-group-addon"><span class="glyphicon glyphicon-asterisk"></span></span>
70 </div>
71 {% endif %}
72 {% endif %}
73 {% if field.errors %}
74 <div class="alert alert-danger" role="alert">{{ field.errors }}</div>
75 {% endif %}
76 {% endfor %}
77 </div>
78 {% endfor %}
79 </fieldset>
80 <button class="btn btn-lg btn-primary btn-block" type="submit">{% trans "Confirm" %}</button>
81 </form>
82
83 {% endblock %}