From 1b4aed7fd8efd3920fb7da0ce322ff79df49868c Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Fri, 16 Nov 2018 23:39:44 +0000 Subject: Honing some rough edges --- web/templates/contact.html.j2.tmpl | 36 +++++++++++++++++++----------------- web/templates/include/styles.css | 1 + 2 files changed, 20 insertions(+), 17 deletions(-) diff --git a/web/templates/contact.html.j2.tmpl b/web/templates/contact.html.j2.tmpl index 045ab81..b351fdb 100644 --- a/web/templates/contact.html.j2.tmpl +++ b/web/templates/contact.html.j2.tmpl @@ -5,9 +5,10 @@ norder = '-1' %] [%- PROCESS 'constants.tt' -%] -{% if page.get %} +{% if page.get and page.form %}

All the fields have to be filled in ...

-
+
{{ page|pprint }}
+ @@ -15,11 +16,11 @@
- Who should receive the message?: + Who should receive the message: - - +
- Your email address (max. 100 chars): + Your email address: - +
- Subject (max. 100 chars): + Subject line: - +
Here goes your text (barring technical issues it will be transmitted as encrypted email!):
- +
NB: As a matter of courtesy you should consider adding your name (or even a pseudonym) in the message to us. You know our names as well. Besides, it makes it easier to address you in a response. Thank you.
- +
@@ -82,8 +83,7 @@ establish whether PGP/MIME can be used in future communication. [%- END -%] [%- END -%] -{% else %} -{% if page.success %} +{% elif page.success %}

Success / Erfolg

Your email was sent successfully (delivery may still fail, though)

@@ -91,17 +91,19 @@ establish whether PGP/MIME can be used in future communication.

Ihre Email wurde erfolgreich verschickt (die Zustellung kann dennoch fehlschlagen)

-
\n{{ page.message }}\n
+
{{ page.message|e }}
{% else %} -

Error / Fehler {{ page.status }}

+

Error / Fehler {{ page.status.code|default("-1")|e }}

An error occurred when processing your request.

-

Status code {{ page.status }}: {{ page.status_description }}

+

Status code {{ page.status.code|default("-1")|e }}: {{ page.status.description|default("Unspecified error")|e }}

Während der Verarbeitung Ihrer Anfrage kam es zu einem Fehler.

-

Statuscode {{ page.status }}: {{ page.status_description }} (Beschreibung auf Englisch)

+

Statuscode {{ page.status.code|default("-1")|e }}: {{ page.status.description|default("Unspecified error")|e }} (Beschreibung auf Englisch)

+{% if page.message is defined %} +
{{ page.message|e }}
{% endif %} {% endif %} [% END %] diff --git a/web/templates/include/styles.css b/web/templates/include/styles.css index 8653bba..3cf4654 100644 --- a/web/templates/include/styles.css +++ b/web/templates/include/styles.css @@ -157,6 +157,7 @@ td.bordleft { .feld3 { border : 1px solid #cccccc; width : 100%; + height: 25ex; } ul.download { -- cgit v1.2.3