comparison templates/sat_website/adhesion_form.html @ 34:9d553570cc61

add adhesion_form.html and thank_you.html
author souliane <souliane@mailoo.org>
date Tue, 27 Jan 2015 08:20:30 +0100
parents
children dfe7139dae0a
comparison
equal deleted inserted replaced
33:73c6333fd124 34:9d553570cc61
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="adhesion_form" 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{% 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 {{ field }}{{ field.label }} <span class="glyphicon glyphicon-asterisk"></span>
56 </label>
57 </div>
58 {% else %}
59 {% if field.field.required %}
60 <div class="input-group">
61 {% endif %}
62 {{ field }}
63 {% if field.field.required %}
64 <span class="input-group-addon"><span class="glyphicon glyphicon-asterisk"></span></span>
65 </div>
66 {% endif %}
67 {% endif %}
68 {% if field.errors %}
69 <div class="alert alert-danger" role="alert">{{ field.errors }}</div>
70 {% endif %}
71 {% endfor %}
72 </div>
73 {% endfor %}
74 </fieldset>
75 <button class="btn btn-lg btn-primary btn-block" type="submit">{% trans "Confirm" %}</button>
76 </form>
77
78 {% endblock %}