changeset 11:6f13b25f1ecf

event: event page first draft
author Goffi <goffi@goffi.org>
date Thu, 27 Apr 2017 01:08:41 +0200
parents 8b5615a1bf3d
children 03f19ba21c12
files default/event/attendance.html default/event/invitation.html default/static/event.css
diffstat 3 files changed, 32 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/default/event/attendance.html	Thu Apr 27 01:08:41 2017 +0200
@@ -0,0 +1,16 @@
+{% import 'input/form.html' as form %}
+{% import 'input/field.html' as field %}
+
+<div class="attendance">
+    <p class="poll_instructions">Please indicate if you plan to attend the event.</p>
+    {% call form.form() %}
+        {{ field.meta("type", "attendance") }}
+        {{ field.meta("service", event_service) }}
+        {{ field.meta("node", event_node) }}
+        <div class="attending">
+            {{ field.choices("attend", ("yes", "no", "maybe"), checked=event.attend) }}
+        </div>
+        {{ field.int("guests", label="how many people will come (including you)?", init=event.get("guests", 1)) }}
+        {{ field.submit() }}
+    {% endcall %}
+</div>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/default/event/invitation.html	Thu Apr 27 01:08:41 2017 +0200
@@ -0,0 +1,15 @@
+{% extends 'base/base.html' %}
+
+{% block body %}
+<div class='invitation_header'>
+    <h1>Welcome {{name}}</h1>
+    <p class='instructions'>You have been invited to participate to an event</p>
+</div>
+
+{% include 'event/attendance.html' %}
+
+{% if items is defined %}
+    {% include 'blog/articles.html' %}
+{% endif %}
+
+{% endblock body %}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/default/static/event.css	Thu Apr 27 01:08:41 2017 +0200
@@ -0,0 +1,1 @@
+@import 'blog.css'; /* needed as blog/articles.html is included %/