diff sat_templates/templates/default/event/attendance.html @ 164:e9f0a4215e46

multi-sites handling (moved templates to "templates" sub-directory) + noscript styles handling.
author Goffi <goffi@goffi.org>
date Mon, 10 Sep 2018 08:53:33 +0200
parents sat_templates/default/event/attendance.html@33c7ce833d3f
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sat_templates/templates/default/event/attendance.html	Mon Sep 10 08:53:33 2018 +0200
@@ -0,0 +1,20 @@
+{% import 'input/form.html' as form with context %}
+{% import 'input/field.html' as field with context %}
+
+<div class="attendance box">
+    <p class="poll_instructions">{% trans %}Please indicate if you plan to attend the event:{% endtrans %}</p>
+    {% call form.form() %}
+        {{ field.meta("type", "attendance") }}
+        {{ field.meta("service", event.invitees_service) }}
+        {{ field.meta("node", event.invitees_node) }}
+        <div class="attending">
+            {{ field.choices("attend", (("yes", _("yes")), ("no", _("no")), ("maybe", _("maybe"))), checked=invitee.attend) }}
+        </div>
+        <div class="guests">
+            {{ field.int("guests", label=_("How many people will come (including you)?"), init=invitee.get("guests", 1)) }}
+        </div>
+        <div class="submit">
+            {{ field.submit() }}
+        </div>
+    {% endcall %}
+</div>