annotate default/event/attendance.html @ 17:48b831ab4238

event: design improvment
author Goffi <goffi@goffi.org>
date Thu, 04 May 2017 01:00:29 +0200
parents 6f13b25f1ecf
children 422c54e0204a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11
6f13b25f1ecf event: event page first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
1 {% import 'input/form.html' as form %}
17
48b831ab4238 event: design improvment
Goffi <goffi@goffi.org>
parents: 11
diff changeset
2 {% import 'input/field.html' as field with context %}
11
6f13b25f1ecf event: event page first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
3
17
48b831ab4238 event: design improvment
Goffi <goffi@goffi.org>
parents: 11
diff changeset
4 <div class="attendance box">
48b831ab4238 event: design improvment
Goffi <goffi@goffi.org>
parents: 11
diff changeset
5 <p class="poll_instructions">Please indicate if you plan to attend the event:</p>
11
6f13b25f1ecf event: event page first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
6 {% call form.form() %}
6f13b25f1ecf event: event page first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
7 {{ field.meta("type", "attendance") }}
6f13b25f1ecf event: event page first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
8 {{ field.meta("service", event_service) }}
6f13b25f1ecf event: event page first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
9 {{ field.meta("node", event_node) }}
6f13b25f1ecf event: event page first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
10 <div class="attending">
6f13b25f1ecf event: event page first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
11 {{ field.choices("attend", ("yes", "no", "maybe"), checked=event.attend) }}
6f13b25f1ecf event: event page first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
12 </div>
17
48b831ab4238 event: design improvment
Goffi <goffi@goffi.org>
parents: 11
diff changeset
13 <div class="guests">
48b831ab4238 event: design improvment
Goffi <goffi@goffi.org>
parents: 11
diff changeset
14 {{ field.int("guests", label="How many people will come (including you)?", init=event.get("guests", 1)) }}
48b831ab4238 event: design improvment
Goffi <goffi@goffi.org>
parents: 11
diff changeset
15 </div>
48b831ab4238 event: design improvment
Goffi <goffi@goffi.org>
parents: 11
diff changeset
16 <div class="submit">
48b831ab4238 event: design improvment
Goffi <goffi@goffi.org>
parents: 11
diff changeset
17 {{ field.submit() }}
48b831ab4238 event: design improvment
Goffi <goffi@goffi.org>
parents: 11
diff changeset
18 </div>
11
6f13b25f1ecf event: event page first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
19 {% endcall %}
6f13b25f1ecf event: event page first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
20 </div>