changed various html templates to include notification boxes, spelling
This commit is contained in:
@@ -24,6 +24,26 @@ div.loggedin { background-color:#009966;
|
|||||||
border:0px solid black;
|
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 */
|
/* BORDER AND PADDING FOR MAIN CONTENT */
|
||||||
div.mainblock { background-color:white;
|
div.mainblock { background-color:white;
|
||||||
color:black;
|
color:black;
|
||||||
@@ -156,4 +176,4 @@ div.fridge_sensor { background-color:#E3E6FF; /*#CCEFFF;*/
|
|||||||
border:1px;
|
border:1px;
|
||||||
border-color:#CCCCCC;
|
border-color:#CCCCCC;
|
||||||
margin: 3px
|
margin: 3px
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
{% set title = "Rechnungen versenden" %}
|
{% set title = "Rechnungen versenden" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% if success %}
|
{% if success %}
|
||||||
<p>{{ success }}</p>
|
<div class="somethinggood">{{ success }}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<h1>Abrechnung</h1>
|
<h1>Abrechnung</h1>
|
||||||
<p>An alle User Rechnungen <a href="/billing/send_all_bills"> versenden</a>.</p>
|
<p>An alle User Rechnungen <a href="/billing/send_all_bills"> versenden</a>.</p>
|
||||||
@@ -29,4 +29,4 @@
|
|||||||
</table>
|
</table>
|
||||||
<input type="submit" value="Änderungen übernehmen">
|
<input type="submit" value="Änderungen übernehmen">
|
||||||
</form>
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -1,14 +1,8 @@
|
|||||||
{% extends "base.html"%}
|
{% extends "base.html"%}
|
||||||
{% set title = "An alle User Rechnungen versenden" %}
|
{% set title = "An alle User Rechnungen versenden" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h3>TODO: </h3>
|
|
||||||
<ul>
|
|
||||||
<li>actual send emails</li>
|
|
||||||
<li>save default text somewhere and make it configureable</li>
|
|
||||||
<li>insert the right ammount of dept</li>
|
|
||||||
</ul>
|
|
||||||
{% if success %}
|
{% if success %}
|
||||||
<p>{{ success }}</p>
|
<div class="somethinggood">{{ success }}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<h1>Rechnung an alle verschicken</h1>
|
<h1>Rechnung an alle verschicken</h1>
|
||||||
<form name="billing" method="post" action="/billing/send_all_bills">
|
<form name="billing" method="post" action="/billing/send_all_bills">
|
||||||
@@ -27,4 +21,4 @@
|
|||||||
<li> <b>%%dept%%</b> fügt die Höhe der Schulden des Benutzers ein. </li>
|
<li> <b>%%dept%%</b> fügt die Höhe der Schulden des Benutzers ein. </li>
|
||||||
<li> <b>%%if_is_black%% TEXT %%end_if_is_black%%</b> fügt den TEXT ein, falls der user geschwärzt ist.</li>
|
<li> <b>%%if_is_black%% TEXT %%end_if_is_black%%</b> fügt den TEXT ein, falls der user geschwärzt ist.</li>
|
||||||
</ul>
|
</ul>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
{% set title = "Persönliche Rechnung versenden" %}
|
{% set title = "Persönliche Rechnung versenden" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% if success %}
|
{% if success %}
|
||||||
<p>{{ success }}</p>
|
<div class="somethinggood">{{ success }}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<h1>Rechnung an {{user_to_bill.longname}} verschicken</h1>
|
<h1>Rechnung an {{user_to_bill.longname}} verschicken</h1>
|
||||||
<form name="billing" method="post" action="/billing/send_personal_bill/{{user_to_bill.name}}">
|
<form name="billing" method="post" action="/billing/send_personal_bill/{{user_to_bill.name}}">
|
||||||
@@ -14,4 +14,4 @@
|
|||||||
</form>
|
</form>
|
||||||
<p>An alle User Rechnungen <a href="/billing/send_all_bills"> versenden</a>.</p>
|
<p>An alle User Rechnungen <a href="/billing/send_all_bills"> versenden</a>.</p>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -3,11 +3,11 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
<h1> Konsumieren </h1>
|
<h1> Konsumieren </h1>
|
||||||
{% if message %}
|
{% if message %}
|
||||||
<div class="loggedin"> {{ message }} </div>
|
<div class="somethinggood"> {{ message }} </div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div>
|
<div>
|
||||||
{% if user.isblack %}
|
{% if user.isblack %}
|
||||||
Sorry, du bist geschwärzt!
|
<div class="somethingbad">Sorry, du bist geschwärzt!</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<h2>Möchtest du etwas konsumieren?</h2>
|
<h2>Möchtest du etwas konsumieren?</h2>
|
||||||
{% for product in products %}
|
{% for product in products %}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
<h1> Login </h1>
|
<h1> Login </h1>
|
||||||
{% if error %}
|
{% if error %}
|
||||||
<p>{{ error }}</p>
|
<div class="somethingbad">{{ error }}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<form name="login" method="post" action="/login">
|
<form name="login" method="post" action="/login">
|
||||||
Username:<br><input type="text" name=username required placeholder="Username"><br>
|
Username:<br><input type="text" name=username required placeholder="Username"><br>
|
||||||
|
|||||||
@@ -3,12 +3,11 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>Konsumat hinzufügen</h1>
|
<h1>Konsumat hinzufügen</h1>
|
||||||
{% if error %}
|
{% if error %}
|
||||||
<p>Fehler: {{ error }}</p>
|
<div class="somethingbad">Fehler: {{ error }}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if success %}
|
{% if success %}
|
||||||
<p>{{ success }}</p>
|
<div class="somethinggood">{{ success }}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<p> TODO: many </p>
|
|
||||||
<form name="user" method="post" action="/manage_beverages/add" enctype="multipart/form-data">
|
<form name="user" method="post" action="/manage_beverages/add" enctype="multipart/form-data">
|
||||||
Produktname:<br><input type="text" name="name" required><br>
|
Produktname:<br><input type="text" name="name" required><br>
|
||||||
Preis:<br><input type="number" name="price" step="any" required value="0.0" /> € <br>
|
Preis:<br><input type="number" name="price" step="any" required value="0.0" /> € <br>
|
||||||
@@ -16,4 +15,4 @@
|
|||||||
Bild: <input type="file" name="file"><br>
|
Bild: <input type="file" name="file"><br>
|
||||||
<input type="submit" value="Hinzufügen">
|
<input type="submit" value="Hinzufügen">
|
||||||
</form>
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -3,10 +3,10 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>Konsumat {{product_to_edit.name}} bearbeiten</h1>
|
<h1>Konsumat {{product_to_edit.name}} bearbeiten</h1>
|
||||||
{% if error %}
|
{% if error %}
|
||||||
<p>Fehler: {{ error }}</p>
|
<div class="somethingbad">Fehler: {{ error }}</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if success %}
|
{% if success %}
|
||||||
<p>{{ success }}</p>
|
<div class="somethinggood">{{ success }}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<form name="product" method="post" action="/manage_beverages/edit" enctype="multipart/form-data">
|
<form name="product" method="post" action="/manage_beverages/edit" enctype="multipart/form-data">
|
||||||
ProduktID:<br><input type="text" name="id" required value="{{product_to_edit.id}}" readonly="readonly" /> <br>
|
ProduktID:<br><input type="text" name="id" required value="{{product_to_edit.id}}" readonly="readonly" /> <br>
|
||||||
@@ -17,4 +17,4 @@
|
|||||||
<input type="submit" value="Übernehmen" />
|
<input type="submit" value="Übernehmen" />
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -3,12 +3,11 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>Konsumentin hinzufügen</h1>
|
<h1>Konsumentin hinzufügen</h1>
|
||||||
{% if error %}
|
{% if error %}
|
||||||
<p>Fehler: {{ error }}</p>
|
<div class="somethingbad">Fehler: {{ error }}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if success %}
|
{% if success %}
|
||||||
<p>{{ success }}</p>
|
<div class="somethinggood">{{ success }}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<p> TODO: many </p>
|
|
||||||
<form name="user" method="post" action="/manage_users/add">
|
<form name="user" method="post" action="/manage_users/add">
|
||||||
Username:<br><input type="text" name=username required placeholder="Username"><br>
|
Username:<br><input type="text" name=username required placeholder="Username"><br>
|
||||||
Passwort:<br><input type="password" name=password1 required placeholder="Password"><br>
|
Passwort:<br><input type="password" name=password1 required placeholder="Password"><br>
|
||||||
|
|||||||
@@ -3,10 +3,10 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>Konsumentin {{user_to_edit.name}} bearbeiten</h1>
|
<h1>Konsumentin {{user_to_edit.name}} bearbeiten</h1>
|
||||||
{% if error %}
|
{% if error %}
|
||||||
<p>Fehler: {{ error }}</p>
|
<div class="somethingbad">Fehler: {{ error }}</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if success %}
|
{% if success %}
|
||||||
<p>{{ success }}</p>
|
<div class="somethinggood">{{ success }}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<form name="user" method="post" action="/manage_users/edit">
|
<form name="user" method="post" action="/manage_users/edit">
|
||||||
Userid:<br><input type="text" name="id" required value="{{user_to_edit.id}}" readonly="readonly" /> <br>
|
Userid:<br><input type="text" name="id" required value="{{user_to_edit.id}}" readonly="readonly" /> <br>
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
{% set title = "Fehler 401" %}
|
{% set title = "Fehler 401" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1> Fehler 401 </h1>
|
<h1> Fehler 401 </h1>
|
||||||
<p>Du musst Baron sein um auf diese Seite zugreifen zu könnnen.</p>
|
<div class="somethingbad">Du musst Baron sein um auf diese Seite zugreifen zu könnnen.</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
{% set title = "Fehler 401" %}
|
{% set title = "Fehler 401" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1> Fehler 401 </h1>
|
<h1> Fehler 401 </h1>
|
||||||
<p>Du musst eingeloggt sein um auf diese Seite zugerreifen zu können.</p>
|
<div class="somethingbad">Du musst eingeloggt sein um auf diese Seite zugerreifen zu können.</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -3,22 +3,28 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
<h1> Einstellungen ändern </h1>
|
<h1> Einstellungen ändern </h1>
|
||||||
{% if success %}
|
{% if success %}
|
||||||
<p>{{ success }}</p>
|
<div class="somethinggood"> {{ success }} </div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<form name="user" method="post" action="/selfmanagement">
|
<form name="user" method="post" action="/selfmanagement">
|
||||||
|
<fieldset><legend>Euml IDs</legend>
|
||||||
Die Euml ID wird angezeigt wenn du ein unbekanntes RFID Tag an den RFID reader hältst.
|
Die Euml ID wird angezeigt wenn du ein unbekanntes RFID Tag an den RFID reader hältst.
|
||||||
<br>Euml ID (falls mehrere durch ; trennen):<br><input type="text" name=rfid_id value="{{ user.rfid_id }}"><br>
|
<br><b>Euml ID</b> (falls mehrere durch ; trennen):<br><input type="text" name=rfid_id value="{{ user.rfid_id }}"><br>
|
||||||
<br>
|
</fieldset>
|
||||||
Falls du nicht in der Liste am touchscreen angezeigt werden willst, musst du hier ein Kreuz setzen.
|
|
||||||
<br>Nur RFID-kreuzen <input type="checkbox" name="onlyrfid" {% if user.onlyrfid %} checked {% endif %} /><br>
|
|
||||||
|
|
||||||
<br>
|
<br><fieldset><legend>RFID Kreuzen</legend>
|
||||||
Falls du ein neues Passwort eingibts wird dieses geändert.
|
Falls du nicht in der Liste am Touchscreen angezeigt werden willst, musst du hier ein Kreuz setzen.
|
||||||
Neues Passwort:<br><input type="password" name=password1 placeholder="Password"><br>
|
<br><b>Nur RFID-kreuzen</b><input type="checkbox" name="onlyrfid" {% if user.onlyrfid %} checked {% endif %} /><br>
|
||||||
Neues Passwort wiederholen:<br><input type="password" name=password2 placeholder="Password"><br>
|
</fieldset>
|
||||||
<br>
|
|
||||||
Du musst für jede Änderung dein aktuelles Passwort eingeben.
|
<br><fieldset><legend>Passwort ändern</legend>
|
||||||
Neues Passwort wiederholen:<br><input type="password" name=password_old required placeholder="Password"><br>
|
Falls du ein neues Passwort eingibst wird dieses geändert.<br>
|
||||||
<input type="submit" value="Hinzufügen">
|
<b>Neues Passwort:</b><br><input type="password" name=password1 placeholder="Password"><br>
|
||||||
|
<b>Neues Passwort wiederholen:</b><br><input type="password" name=password2 placeholder="Password"><br>
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
Du musst für jede Änderung dein <b>aktuelles Passwort</b> eingeben.
|
||||||
|
<br><input type="password" name=password_old required placeholder="Password"><br>
|
||||||
|
<input type="submit" value="Übernehmen">
|
||||||
</form>
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user