Mercurial > libervia-website
annotate templates/default/association/membership.html @ 26:0fe78d74a792
new roadmap page
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 22 May 2023 15:27:23 +0200 |
parents | 67487063f421 |
children |
rev | line source |
---|---|
0 | 1 {% if not embedded %}{% extends 'base/base.html' %}{% endif %} |
2 {% import 'input/form.html' as form with context %} | |
3 {% import 'input/field.html' as field with context %} | |
4 | |
5 {% block body %} | |
21
67487063f421
fix membership following changes with new theme
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
6 <h1 class='title is-4'>{% trans %}Salut à Toi association membership request{% endtrans %}</h1> |
67487063f421
fix membership following changes with new theme
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
7 <article class="message is-info"> |
67487063f421
fix membership following changes with new theme
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
8 <div class="message-body">{% trans %}Please fill the form below if you're willing to join the Salut à Toi association.{% endtrans %}</div> |
67487063f421
fix membership following changes with new theme
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
9 </article> |
0 | 10 <div> |
21
67487063f421
fix membership following changes with new theme
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
11 {% call form.form() %} |
0 | 12 {{ field.text("firstname", |
13 _("firstname"), | |
14 placeholder=_("Given name"), | |
15 required=true, | |
21
67487063f421
fix membership following changes with new theme
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
16 ) }} |
0 | 17 {{ field.text("name", |
18 _("name"), | |
19 placeholder=_("Family name"), | |
20 required=true, | |
21
67487063f421
fix membership following changes with new theme
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
21 ) }} |
0 | 22 {{ field.textarea("address", |
23 _("address"), | |
24 placeholder=_("Address, post code, city"), | |
25 required=true, | |
21
67487063f421
fix membership following changes with new theme
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
26 ) }} |
0 | 27 {{ field.email("email", |
28 _("email address"), | |
29 placeholder=_("please double check your email address"), | |
30 required=true, | |
21
67487063f421
fix membership following changes with new theme
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
31 ) }} |
0 | 32 {{ field.text("jid", |
33 "Jabber ID", | |
34 placeholder=_("XMPP identifier (may be your SàT login)"), | |
21
67487063f421
fix membership following changes with new theme
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
35 ) }} |
67487063f421
fix membership following changes with new theme
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
36 <label class="has-text-weight-bold"> |
67487063f421
fix membership following changes with new theme
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
37 {% trans %}Subscription{% endtrans %} |
67487063f421
fix membership following changes with new theme
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
38 {{ field.select("subscription", |
67487063f421
fix membership following changes with new theme
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
39 (("0", _("0€")), |
67487063f421
fix membership following changes with new theme
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
40 ("10", _("10€")), |
67487063f421
fix membership following changes with new theme
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
41 ("20", _("20€")), |
67487063f421
fix membership following changes with new theme
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
42 ("30", _("30€")), |
67487063f421
fix membership following changes with new theme
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
43 ("50", _("50€")), |
67487063f421
fix membership following changes with new theme
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
44 ("80", _("80€")), |
67487063f421
fix membership following changes with new theme
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
45 ("100", _("100€"))), |
67487063f421
fix membership following changes with new theme
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
46 selected=["10"], |
67487063f421
fix membership following changes with new theme
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
47 required=true, |
67487063f421
fix membership following changes with new theme
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
48 ) }} |
67487063f421
fix membership following changes with new theme
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
49 </label> |
0 | 50 {{ field.text("reference", |
51 _("reference (in case of renewal)"), | |
52 placeholder=_("Your adherent number. You may let empty if you don't know it."), | |
21
67487063f421
fix membership following changes with new theme
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
53 ) }} |
0 | 54 {{ field.textarea("comment", |
55 _("comment"), | |
56 placeholder=_("This is a free field if you have anything to say or request."), | |
21
67487063f421
fix membership following changes with new theme
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
57 ) }} |
0 | 58 {{ field.checkbox("mailing_list", |
59 checked=true) }} | |
21
67487063f421
fix membership following changes with new theme
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
60 {% trans %}I would like to subscribe to the adherents' mailing list (low traffic).{% endtrans %} |
0 | 61 {{ field.checkbox("documents_read", |
62 checked=false, | |
63 required=true) }} | |
21
67487063f421
fix membership following changes with new theme
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
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 %} |
67487063f421
fix membership following changes with new theme
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
65 {{ field.submit(_("join the association"), id="membership_submit", class="mt-3") }} |
0 | 66 {% endcall %} |
67 </div> | |
68 | |
69 <script> | |
70 /* Q&D way to have form submit disabled if documents_read is not checked | |
71 | |
72 TODO: do this in a cleaner way | |
73 */ | |
74 let membership_submit = document.getElementById("membership_submit"); | |
75 let documents_read = document.getElementById("documents_read") | |
76 | |
77 documents_read.addEventListener( | |
78 "click", | |
79 function() { | |
80 membership_submit.disabled = !documents_read.checked; | |
81 } | |
82 ); | |
83 | |
84 membership_submit.disabled=true; | |
85 </script> | |
86 {% endblock body %} |