annotate templates/default/association/membership.html @ 35:347d32030451 default tip

presentation (docker): add info on how to connect
author Goffi <goffi@goffi.org>
date Tue, 12 Dec 2023 17:01:20 +0100
parents 67487063f421
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
1 {% if not embedded %}{% extends 'base/base.html' %}{% endif %}
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
2 {% import 'input/form.html' as form with context %}
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
3 {% import 'input/field.html' as field with context %}
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
4
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
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
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
10 <div>
21
67487063f421 fix membership following changes with new theme
Goffi <goffi@goffi.org>
parents: 0
diff changeset
11 {% call form.form() %}
0
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
12 {{ field.text("firstname",
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
13 _("firstname"),
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
14 placeholder=_("Given name"),
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
15 required=true,
21
67487063f421 fix membership following changes with new theme
Goffi <goffi@goffi.org>
parents: 0
diff changeset
16 ) }}
0
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
17 {{ field.text("name",
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
18 _("name"),
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
19 placeholder=_("Family name"),
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
20 required=true,
21
67487063f421 fix membership following changes with new theme
Goffi <goffi@goffi.org>
parents: 0
diff changeset
21 ) }}
0
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
22 {{ field.textarea("address",
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
23 _("address"),
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
24 placeholder=_("Address, post code, city"),
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
25 required=true,
21
67487063f421 fix membership following changes with new theme
Goffi <goffi@goffi.org>
parents: 0
diff changeset
26 ) }}
0
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
27 {{ field.email("email",
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
28 _("email address"),
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
29 placeholder=_("please double check your email address"),
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
30 required=true,
21
67487063f421 fix membership following changes with new theme
Goffi <goffi@goffi.org>
parents: 0
diff changeset
31 ) }}
0
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
32 {{ field.text("jid",
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
33 "Jabber ID",
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
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
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
50 {{ field.text("reference",
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
51 _("reference (in case of renewal)"),
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
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
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
54 {{ field.textarea("comment",
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
55 _("comment"),
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
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
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
58 {{ field.checkbox("mailing_list",
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
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
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
61 {{ field.checkbox("documents_read",
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
62 checked=false,
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
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
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
66 {% endcall %}
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
67 </div>
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
68
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
69 <script>
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
70 /* Q&D way to have form submit disabled if documents_read is not checked
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
71
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
72 TODO: do this in a cleaner way
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
73 */
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
74 let membership_submit = document.getElementById("membership_submit");
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
75 let documents_read = document.getElementById("documents_read")
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
76
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
77 documents_read.addEventListener(
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
78 "click",
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
79 function() {
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
80 membership_submit.disabled = !documents_read.checked;
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
81 }
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
82 );
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
83
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
84 membership_submit.disabled=true;
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
85 </script>
09d66acc7c73 initial commit, website first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
86 {% endblock body %}