# HG changeset patch # User Goffi # Date 1493852429 -7200 # Node ID 48b831ab4238e4e20bb414f498a6ad9a7d358941 # Parent 8cdcbe0d7dee0611083dba37d8a65ddb16f2cf87 event: design improvment diff -r 8cdcbe0d7dee -r 48b831ab4238 default/event/attendance.html --- a/default/event/attendance.html Thu May 04 01:00:23 2017 +0200 +++ b/default/event/attendance.html Thu May 04 01:00:29 2017 +0200 @@ -1,8 +1,8 @@ {% import 'input/form.html' as form %} -{% import 'input/field.html' as field %} +{% import 'input/field.html' as field with context %} -
-

Please indicate if you plan to attend the event.

+
+

Please indicate if you plan to attend the event:

{% call form.form() %} {{ field.meta("type", "attendance") }} {{ field.meta("service", event_service) }} @@ -10,7 +10,11 @@
{{ 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() }} +
+ {{ field.int("guests", label="How many people will come (including you)?", init=event.get("guests", 1)) }} +
+
+ {{ field.submit() }} +
{% endcall %}
diff -r 8cdcbe0d7dee -r 48b831ab4238 default/event/invitation.html --- a/default/event/invitation.html Thu May 04 01:00:23 2017 +0200 +++ b/default/event/invitation.html Thu May 04 01:00:29 2017 +0200 @@ -1,9 +1,12 @@ {% extends 'base/base.html' %} {% block body %} -
+

Welcome {{name}}

You have been invited to participate to an event

+ {% if event.picture is defined %} +

+ {% endif %}
{% include 'event/attendance.html' %} diff -r 8cdcbe0d7dee -r 48b831ab4238 default/static/event.css --- a/default/static/event.css Thu May 04 01:00:23 2017 +0200 +++ b/default/static/event.css Thu May 04 01:00:29 2017 +0200 @@ -1,1 +1,81 @@ -@import 'blog.css'; /* needed as blog/articles.html is included %/ +@import 'blog.css'; /* needed as blog/articles.html is included */ + +.invitation_header { + text-align: center; + font-variant: small-caps; + border: none; +} + +.instructions { + font-style: italic; + margin: 0; +} + +#event_picture { + max-width: 100%; + border-radius: 2em; +} + +.attendance { + background-color: #9ca0a8; + padding: 0 0.3em; + max-width: 580px; + margin: 0 auto; + color: #3A3A3A; +} + +.attending { + width: 5em; + margin: 0 auto; +} + +.attending label { + /* display: inline; */ + margin: 0.8em 0; +} + +.guests label { + display: block; + margin: 1em 0; +} + +.guests input { + width: 2.5em; + margin: 0 1em; +} + +.poll_instructions { + font-weight: bold; + font-size: 0.9em; + font-size: 1.1em; + text-align: center; +} + +.guests label{ + text-align: center; + /* font-style: italic */ +} + +.guests input { + display: block; + margin: 0 auto; +} + +.submit { + width: 15em; + margin: 0 auto; + padding: 1em 0; +} + +.submit input { + width: 100%; +} + +@media (min-width: 500px) { + .invitation_header { + width: 94%; + margin: 0 auto; + border: solid 1px; + border-color: #9ca0a8; + } +}