From 4514db257fa0cbd53bbdac7494fd686f28feb358 Mon Sep 17 00:00:00 2001 From: bernis Date: Fri, 3 Mar 2017 17:48:25 +0100 Subject: [PATCH] changed various html templates to include notification boxes, spelling --- app/static/style.css | 22 +++++++++++++++- app/templates/billing.html | 4 +-- app/templates/billing_mass_mail.html | 10 ++------ app/templates/billing_personal.html | 4 +-- app/templates/consume.html | 4 +-- app/templates/login.html | 2 +- app/templates/manage_beverages_add.html | 7 +++--- app/templates/manage_beverages_edit.html | 6 ++--- app/templates/manage_users_add.html | 5 ++-- app/templates/manage_users_edit.html | 4 +-- app/templates/not_baron.html | 4 +-- app/templates/not_logged_in.html | 4 +-- app/templates/selfmanagement.html | 32 ++++++++++++++---------- 13 files changed, 63 insertions(+), 45 deletions(-) diff --git a/app/static/style.css b/app/static/style.css index 53d25c9..d7bb14d 100644 --- a/app/static/style.css +++ b/app/static/style.css @@ -24,6 +24,26 @@ div.loggedin { background-color:#009966; border:0px solid black; } +/* NOTICE WHEN SOMETHING BAD HAPPENEND */ +div.somethingbad { background-color:#996600; + color:white; + padding:5px; + padding-left:20px; + overflow:hidden; + border-radius:5px; + border:0px solid black; +} + +/* NOTICE WHEN USER IS LOGGED IN */ +div.somethinggood { background-color:#009966; + color:white; + padding:5px; + padding-left:20px; + overflow:hidden; + border-radius:5px; + border:0px solid black; +} + /* BORDER AND PADDING FOR MAIN CONTENT */ div.mainblock { background-color:white; color:black; @@ -156,4 +176,4 @@ div.fridge_sensor { background-color:#E3E6FF; /*#CCEFFF;*/ border:1px; border-color:#CCCCCC; margin: 3px -} \ No newline at end of file +} diff --git a/app/templates/billing.html b/app/templates/billing.html index 4fed4f7..b744564 100644 --- a/app/templates/billing.html +++ b/app/templates/billing.html @@ -2,7 +2,7 @@ {% set title = "Rechnungen versenden" %} {% block content %} {% if success %} -

{{ success }}

+
{{ success }}
{% endif %}

Abrechnung

An alle User Rechnungen versenden.

@@ -29,4 +29,4 @@ -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/templates/billing_mass_mail.html b/app/templates/billing_mass_mail.html index dd90d77..e093d77 100644 --- a/app/templates/billing_mass_mail.html +++ b/app/templates/billing_mass_mail.html @@ -1,14 +1,8 @@ {% extends "base.html"%} {% set title = "An alle User Rechnungen versenden" %} {% block content %} -

TODO:

- {% if success %} -

{{ success }}

+
{{ success }}
{% endif %}

Rechnung an alle verschicken

@@ -27,4 +21,4 @@
  • %%dept%% fügt die Höhe der Schulden des Benutzers ein.
  • %%if_is_black%% TEXT %%end_if_is_black%% fügt den TEXT ein, falls der user geschwärzt ist.
  • -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/templates/billing_personal.html b/app/templates/billing_personal.html index 69da9d6..f01298c 100644 --- a/app/templates/billing_personal.html +++ b/app/templates/billing_personal.html @@ -2,7 +2,7 @@ {% set title = "Persönliche Rechnung versenden" %} {% block content %} {% if success %} -

    {{ success }}

    +
    {{ success }}
    {% endif %}

    Rechnung an {{user_to_bill.longname}} verschicken

    @@ -14,4 +14,4 @@

    An alle User Rechnungen versenden.

    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/templates/consume.html b/app/templates/consume.html index d9e553a..352be0d 100644 --- a/app/templates/consume.html +++ b/app/templates/consume.html @@ -3,11 +3,11 @@ {% block content %}

    Konsumieren

    {% if message %} -
    {{ message }}
    +
    {{ message }}
    {% endif %}
    {% if user.isblack %} - Sorry, du bist geschwärzt! +
    Sorry, du bist geschwärzt!
    {% else %}

    Möchtest du etwas konsumieren?

    {% for product in products %} diff --git a/app/templates/login.html b/app/templates/login.html index 5ebf93b..54e8e43 100644 --- a/app/templates/login.html +++ b/app/templates/login.html @@ -3,7 +3,7 @@ {% block content %}

    Login

    {% if error %} -

    {{ error }}

    +
    {{ error }}
    {% endif %}
    Username:

    diff --git a/app/templates/manage_beverages_add.html b/app/templates/manage_beverages_add.html index 8555409..1297fe4 100644 --- a/app/templates/manage_beverages_add.html +++ b/app/templates/manage_beverages_add.html @@ -3,12 +3,11 @@ {% block content %}

    Konsumat hinzufügen

    {% if error %} -

    Fehler: {{ error }}

    +
    Fehler: {{ error }}
    {% endif %} {% if success %} -

    {{ success }}

    +
    {{ success }}
    {% endif %} -

    TODO: many

    Produktname:

    Preis:

    @@ -16,4 +15,4 @@ Bild:
    -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/templates/manage_beverages_edit.html b/app/templates/manage_beverages_edit.html index 7343c25..9e4e6a2 100644 --- a/app/templates/manage_beverages_edit.html +++ b/app/templates/manage_beverages_edit.html @@ -3,10 +3,10 @@ {% block content %}

    Konsumat {{product_to_edit.name}} bearbeiten

    {% if error %} -

    Fehler: {{ error }}

    +
    Fehler: {{ error }}
    {% else %} {% if success %} -

    {{ success }}

    +
    {{ success }}
    {% endif %}
    ProduktID:

    @@ -17,4 +17,4 @@
    {% endif %} -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/templates/manage_users_add.html b/app/templates/manage_users_add.html index 9b7761e..dad8763 100644 --- a/app/templates/manage_users_add.html +++ b/app/templates/manage_users_add.html @@ -3,12 +3,11 @@ {% block content %}

    Konsumentin hinzufügen

    {% if error %} -

    Fehler: {{ error }}

    +
    Fehler: {{ error }}
    {% endif %} {% if success %} -

    {{ success }}

    +
    {{ success }}
    {% endif %} -

    TODO: many

    Username:

    Passwort:

    diff --git a/app/templates/manage_users_edit.html b/app/templates/manage_users_edit.html index 4958d46..032a54f 100644 --- a/app/templates/manage_users_edit.html +++ b/app/templates/manage_users_edit.html @@ -3,10 +3,10 @@ {% block content %}

    Konsumentin {{user_to_edit.name}} bearbeiten

    {% if error %} -

    Fehler: {{ error }}

    +
    Fehler: {{ error }}
    {% else %} {% if success %} -

    {{ success }}

    +
    {{ success }}
    {% endif %} Userid:

    diff --git a/app/templates/not_baron.html b/app/templates/not_baron.html index eaedddc..9d9c06f 100644 --- a/app/templates/not_baron.html +++ b/app/templates/not_baron.html @@ -2,5 +2,5 @@ {% set title = "Fehler 401" %} {% block content %}

    Fehler 401

    -

    Du musst Baron sein um auf diese Seite zugreifen zu könnnen.

    -{% endblock %} \ No newline at end of file +
    Du musst Baron sein um auf diese Seite zugreifen zu könnnen.
    +{% endblock %} diff --git a/app/templates/not_logged_in.html b/app/templates/not_logged_in.html index 96038a8..dd3a8c7 100644 --- a/app/templates/not_logged_in.html +++ b/app/templates/not_logged_in.html @@ -2,5 +2,5 @@ {% set title = "Fehler 401" %} {% block content %}

    Fehler 401

    -

    Du musst eingeloggt sein um auf diese Seite zugerreifen zu können.

    -{% endblock %} \ No newline at end of file +
    Du musst eingeloggt sein um auf diese Seite zugerreifen zu können.
    +{% endblock %} diff --git a/app/templates/selfmanagement.html b/app/templates/selfmanagement.html index 1af5931..8b4eef7 100644 --- a/app/templates/selfmanagement.html +++ b/app/templates/selfmanagement.html @@ -3,22 +3,28 @@ {% block content %}

    Einstellungen ändern

    {% if success %} -

    {{ success }}

    +
    {{ success }}
    {% endif %} +
    Euml IDs Die Euml ID wird angezeigt wenn du ein unbekanntes RFID Tag an den RFID reader hältst. -
    Euml ID (falls mehrere durch ; trennen):

    -
    - Falls du nicht in der Liste am touchscreen angezeigt werden willst, musst du hier ein Kreuz setzen. -
    Nur RFID-kreuzen
    +
    Euml ID (falls mehrere durch ; trennen):

    +
    -
    - Falls du ein neues Passwort eingibts wird dieses geändert. - Neues Passwort:

    - Neues Passwort wiederholen:

    -
    - Du musst für jede Änderung dein aktuelles Passwort eingeben. - Neues Passwort wiederholen:

    - +
    RFID Kreuzen + Falls du nicht in der Liste am Touchscreen angezeigt werden willst, musst du hier ein Kreuz setzen. +
    Nur RFID-kreuzen
    +
    + +
    Passwort ändern + Falls du ein neues Passwort eingibst wird dieses geändert.
    + Neues Passwort:

    + Neues Passwort wiederholen:

    +
    + +
    + Du musst für jede Änderung dein aktuelles Passwort eingeben. +

    +
    {% endblock %}