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