# HG changeset patch # User Goffi # Date 1493248121 -7200 # Node ID 6f13b25f1ecf1c2af5e71c7c8abd1b7f5ff0890f # Parent 8b5615a1bf3dca6d9cee69bcd7758657b5c82112 event: event page first draft diff -r 8b5615a1bf3d -r 6f13b25f1ecf default/event/attendance.html --- /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 %} + +
+

Please indicate if you plan to attend the event.

+ {% call form.form() %} + {{ field.meta("type", "attendance") }} + {{ field.meta("service", event_service) }} + {{ field.meta("node", event_node) }} +
+ {{ field.choices("attend", ("yes", "no", "maybe"), checked=event.attend) }} +
+ {{ field.int("guests", label="how many people will come (including you)?", init=event.get("guests", 1)) }} + {{ field.submit() }} + {% endcall %} +
diff -r 8b5615a1bf3d -r 6f13b25f1ecf default/event/invitation.html --- /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 %} +
+

Welcome {{name}}

+

You have been invited to participate to an event

+
+ +{% include 'event/attendance.html' %} + +{% if items is defined %} + {% include 'blog/articles.html' %} +{% endif %} + +{% endblock body %} diff -r 8b5615a1bf3d -r 6f13b25f1ecf default/static/event.css --- /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 %/