Mercurial > libervia-website
comparison templates/default/association/membership.html @ 21:67487063f421
fix membership following changes with new theme
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 30 Nov 2021 17:39:46 +0100 |
parents | 09d66acc7c73 |
children |
comparison
equal
deleted
inserted
replaced
20:a24d362796be | 21:67487063f421 |
---|---|
1 {% if not embedded %}{% extends 'base/base.html' %}{% endif %} | 1 {% if not embedded %}{% extends 'base/base.html' %}{% endif %} |
2 {% import 'input/form.html' as form with context %} | 2 {% import 'input/form.html' as form with context %} |
3 {% import 'input/field.html' as field with context %} | 3 {% import 'input/field.html' as field with context %} |
4 | 4 |
5 {% block body %} | 5 {% block body %} |
6 <h1 class='heading__subtitle'>{% trans %}Salut à Toi association membership request{% endtrans %}</h1> | 6 <h1 class='title is-4'>{% trans %}Salut à Toi association membership request{% endtrans %}</h1> |
7 <p class='instructions--head'>{% trans %}Please fill the form below if you're willing to join the Salut à Toi association.{% endtrans %}</p> | 7 <article class="message is-info"> |
8 <div class="message-body">{% trans %}Please fill the form below if you're willing to join the Salut à Toi association.{% endtrans %}</div> | |
9 </article> | |
8 <div> | 10 <div> |
9 {% call form.form(class="form--paper form__panel--center") %} | 11 {% call form.form() %} |
10 <h3 class="center">{% trans %}Identity{% endtrans %}</h3 class="center"> | |
11 {{ field.text("firstname", | 12 {{ field.text("firstname", |
12 _("firstname"), | 13 _("firstname"), |
13 placeholder=_("Given name"), | 14 placeholder=_("Given name"), |
14 required=true, | 15 required=true, |
15 class="form__field--big") }} | 16 ) }} |
16 {{ field.text("name", | 17 {{ field.text("name", |
17 _("name"), | 18 _("name"), |
18 placeholder=_("Family name"), | 19 placeholder=_("Family name"), |
19 required=true, | 20 required=true, |
20 class="form__field--big") }} | 21 ) }} |
21 {{ field.textarea("address", | 22 {{ field.textarea("address", |
22 _("address"), | 23 _("address"), |
23 placeholder=_("Address, post code, city"), | 24 placeholder=_("Address, post code, city"), |
24 required=true, | 25 required=true, |
25 class="form__field--big") }} | 26 ) }} |
26 <h3 class="center">{% trans %}Contacts{% endtrans %}</h3 class="center"> | |
27 {{ field.email("email", | 27 {{ field.email("email", |
28 _("email address"), | 28 _("email address"), |
29 placeholder=_("please double check your email address"), | 29 placeholder=_("please double check your email address"), |
30 required=true, | 30 required=true, |
31 class="form__field--big") }} | 31 ) }} |
32 {{ field.text("jid", | 32 {{ field.text("jid", |
33 "Jabber ID", | 33 "Jabber ID", |
34 placeholder=_("XMPP identifier (may be your SàT login)"), | 34 placeholder=_("XMPP identifier (may be your SàT login)"), |
35 class="form__field--big") }} | 35 ) }} |
36 <h3 class="center">{% trans %}Subscription{% endtrans %}</h3 class="center"> | 36 <label class="has-text-weight-bold"> |
37 {{ field.select("subscription", | 37 {% trans %}Subscription{% endtrans %} |
38 (("0", _("0€")), | 38 {{ field.select("subscription", |
39 ("10", _("10€")), | 39 (("0", _("0€")), |
40 ("20", _("20€")), | 40 ("10", _("10€")), |
41 ("30", _("30€")), | 41 ("20", _("20€")), |
42 ("50", _("50€")), | 42 ("30", _("30€")), |
43 ("80", _("80€")), | 43 ("50", _("50€")), |
44 ("100", _("100€"))), | 44 ("80", _("80€")), |
45 selected=["10"], | 45 ("100", _("100€"))), |
46 required=true, | 46 selected=["10"], |
47 class="form__field--big", | 47 required=true, |
48 ) }} | 48 ) }} |
49 <h3 class="center">{% trans %}Reference{% endtrans %}</h3 class="center"> | 49 </label> |
50 {{ field.text("reference", | 50 {{ field.text("reference", |
51 _("reference (in case of renewal)"), | 51 _("reference (in case of renewal)"), |
52 placeholder=_("Your adherent number. You may let empty if you don't know it."), | 52 placeholder=_("Your adherent number. You may let empty if you don't know it."), |
53 class="form__field--big") }} | 53 ) }} |
54 <h3 class="center">{% trans %}Comment{% endtrans %}</h3 class="center"> | |
55 {{ field.textarea("comment", | 54 {{ field.textarea("comment", |
56 _("comment"), | 55 _("comment"), |
57 placeholder=_("This is a free field if you have anything to say or request."), | 56 placeholder=_("This is a free field if you have anything to say or request."), |
58 class="form__field--big") }} | 57 ) }} |
59 | |
60 {{ field.checkbox("mailing_list", | 58 {{ field.checkbox("mailing_list", |
61 _("I would like to subscribe to the adherents' mailing list (low traffic)."), | |
62 checked=true) }} | 59 checked=true) }} |
60 {% trans %}I would like to subscribe to the adherents' mailing list (low traffic).{% endtrans %} | |
63 {{ field.checkbox("documents_read", | 61 {{ field.checkbox("documents_read", |
64 _("I have read the %(statutes)s and %(rules)s and I agree with both of them", | |
65 statutes='<a href="https://repos.goffi.org/sat_docs/raw-file/tip/association/statuts.pdf">'|safe + _("statutes") + '</a>'|safe, | |
66 rules='<a href="https://repos.goffi.org/sat_docs/raw-file/tip/association/r%C3%A8glement%20int%C3%A9rieur.pdf">'|safe + _("rules") + '</a>'|safe, | |
67 ), | |
68 checked=false, | 62 checked=false, |
69 required=true) }} | 63 required=true) }} |
70 {{ field.submit(_("join the association"), id="membership_submit") }} | 64 {% trans statutes='<a href="https://repos.goffi.org/sat_docs/raw-file/tip/association/statuts.pdf">'|safe + _("statutes") + '</a>'|safe, rules='<a href="https://repos.goffi.org/sat_docs/raw-file/tip/association/r%C3%A8glement%20int%C3%A9rieur.pdf">'|safe + _("rules") + '</a>'|safe %}I have read the {{statutes}} and {{rules}} and I agree with both of them{% endtrans %} |
65 {{ field.submit(_("join the association"), id="membership_submit", class="mt-3") }} | |
71 {% endcall %} | 66 {% endcall %} |
72 </div> | 67 </div> |
73 | 68 |
74 <script> | 69 <script> |
75 /* Q&D way to have form submit disabled if documents_read is not checked | 70 /* Q&D way to have form submit disabled if documents_read is not checked |