Mercurial > libervia-templates
comparison default/event/attendance.html @ 20:8fa2fd2e928e
default: added i18n support
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 21 May 2017 16:10:44 +0200 |
parents | 422c54e0204a |
children | eb9a42fca6c8 |
comparison
equal
deleted
inserted
replaced
19:422c54e0204a | 20:8fa2fd2e928e |
---|---|
1 {% import 'input/form.html' as form %} | 1 {% import 'input/form.html' as form %} |
2 {% import 'input/field.html' as field with context %} | 2 {% import 'input/field.html' as field with context %} |
3 | 3 |
4 <div class="attendance box"> | 4 <div class="attendance box"> |
5 <p class="poll_instructions">Please indicate if you plan to attend the event:</p> | 5 <p class="poll_instructions">{% trans %}Please indicate if you plan to attend the event:{% endtrans %}</p> |
6 {% call form.form() %} | 6 {% call form.form() %} |
7 {{ field.meta("type", "attendance") }} | 7 {{ field.meta("type", "attendance") }} |
8 {{ field.meta("service", event.invitees_service) }} | 8 {{ field.meta("service", event.invitees_service) }} |
9 {{ field.meta("node", event.invitees_node) }} | 9 {{ field.meta("node", event.invitees_node) }} |
10 <div class="attending"> | 10 <div class="attending"> |
11 {{ field.choices("attend", ("yes", "no", "maybe"), checked=invitee.attend) }} | 11 {{ field.choices("attend", (("yes", _("yes")), ("no", _("no")), ("maybe", _("maybe"))), checked=invitee.attend) }} |
12 </div> | 12 </div> |
13 <div class="guests"> | 13 <div class="guests"> |
14 {{ field.int("guests", label="How many people will come (including you)?", init=invitee.get("guests", 1)) }} | 14 {{ field.int("guests", label=_("How many people will come (including you)?"), init=invitee.get("guests", 1)) }} |
15 </div> | 15 </div> |
16 <div class="submit"> | 16 <div class="submit"> |
17 {{ field.submit() }} | 17 {{ field.submit() }} |
18 </div> | 18 </div> |
19 {% endcall %} | 19 {% endcall %} |