changed various html templates to include notification boxes, spelling

This commit is contained in:
bernis
2017-03-03 17:48:25 +01:00
parent a36df6973e
commit 4514db257f
13 changed files with 63 additions and 45 deletions

View File

@@ -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;

View File

@@ -2,7 +2,7 @@
{% set title = "Rechnungen versenden" %}
{% block content %}
{% if success %}
<p>{{ success }}</p>
<div class="somethinggood">{{ success }}</div>
{% endif %}
<h1>Abrechnung</h1>
<p>An alle User Rechnungen <a href="/billing/send_all_bills"> versenden</a>.</p>

View File

@@ -1,14 +1,8 @@
{% extends "base.html"%}
{% set title = "An alle User Rechnungen versenden" %}
{% 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 %}
<p>{{ success }}</p>
<div class="somethinggood">{{ success }}</div>
{% endif %}
<h1>Rechnung an alle verschicken</h1>
<form name="billing" method="post" action="/billing/send_all_bills">

View File

@@ -2,7 +2,7 @@
{% set title = "Persönliche Rechnung versenden" %}
{% block content %}
{% if success %}
<p>{{ success }}</p>
<div class="somethinggood">{{ success }}</div>
{% endif %}
<h1>Rechnung an {{user_to_bill.longname}} verschicken</h1>
<form name="billing" method="post" action="/billing/send_personal_bill/{{user_to_bill.name}}">

View File

@@ -3,11 +3,11 @@
{% block content %}
<h1> Konsumieren </h1>
{% if message %}
<div class="loggedin"> {{ message }} </div>
<div class="somethinggood"> {{ message }} </div>
{% endif %}
<div>
{% if user.isblack %}
Sorry, du bist geschwärzt!
<div class="somethingbad">Sorry, du bist geschwärzt!</div>
{% else %}
<h2>Möchtest du etwas konsumieren?</h2>
{% for product in products %}

View File

@@ -3,7 +3,7 @@
{% block content %}
<h1> Login </h1>
{% if error %}
<p>{{ error }}</p>
<div class="somethingbad">{{ error }}</div>
{% endif %}
<form name="login" method="post" action="/login">
Username:<br><input type="text" name=username required placeholder="Username"><br>

View File

@@ -3,12 +3,11 @@
{% block content %}
<h1>Konsumat hinzufügen</h1>
{% if error %}
<p>Fehler: {{ error }}</p>
<div class="somethingbad">Fehler: {{ error }}</div>
{% endif %}
{% if success %}
<p>{{ success }}</p>
<div class="somethinggood">{{ success }}</div>
{% endif %}
<p> TODO: many </p>
<form name="user" method="post" action="/manage_beverages/add" enctype="multipart/form-data">
Produktname:<br><input type="text" name="name" required><br>
Preis:<br><input type="number" name="price" step="any" required value="0.0" /><br>

View File

@@ -3,10 +3,10 @@
{% block content %}
<h1>Konsumat {{product_to_edit.name}} bearbeiten</h1>
{% if error %}
<p>Fehler: {{ error }}</p>
<div class="somethingbad">Fehler: {{ error }}</div>
{% else %}
{% if success %}
<p>{{ success }}</p>
<div class="somethinggood">{{ success }}</div>
{% endif %}
<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>

View File

@@ -3,12 +3,11 @@
{% block content %}
<h1>Konsumentin hinzufügen</h1>
{% if error %}
<p>Fehler: {{ error }}</p>
<div class="somethingbad">Fehler: {{ error }}</div>
{% endif %}
{% if success %}
<p>{{ success }}</p>
<div class="somethinggood">{{ success }}</div>
{% endif %}
<p> TODO: many </p>
<form name="user" method="post" action="/manage_users/add">
Username:<br><input type="text" name=username required placeholder="Username"><br>
Passwort:<br><input type="password" name=password1 required placeholder="Password"><br>

View File

@@ -3,10 +3,10 @@
{% block content %}
<h1>Konsumentin {{user_to_edit.name}} bearbeiten</h1>
{% if error %}
<p>Fehler: {{ error }}</p>
<div class="somethingbad">Fehler: {{ error }}</div>
{% else %}
{% if success %}
<p>{{ success }}</p>
<div class="somethinggood">{{ success }}</div>
{% endif %}
<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>

View File

@@ -2,5 +2,5 @@
{% set title = "Fehler 401" %}
{% block content %}
<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 %}

View File

@@ -2,5 +2,5 @@
{% set title = "Fehler 401" %}
{% block content %}
<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 %}

View File

@@ -3,22 +3,28 @@
{% block content %}
<h1> Einstellungen ändern </h1>
{% if success %}
<p>{{ success }}</p>
<div class="somethinggood"> {{ success }} </div>
{% endif %}
<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.
<br>Euml ID (falls mehrere durch ; trennen):<br><input type="text" name=rfid_id value="{{ user.rfid_id }}"><br>
<br>
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><b>Euml ID</b> (falls mehrere durch ; trennen):<br><input type="text" name=rfid_id value="{{ user.rfid_id }}"><br>
</fieldset>
<br><fieldset><legend>RFID Kreuzen</legend>
Falls du nicht in der Liste am Touchscreen angezeigt werden willst, musst du hier ein Kreuz setzen.
<br><b>Nur RFID-kreuzen</b><input type="checkbox" name="onlyrfid" {% if user.onlyrfid %} checked {% endif %} /><br>
</fieldset>
<br><fieldset><legend>Passwort ändern</legend>
Falls du ein neues Passwort eingibst wird dieses geändert.<br>
<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>
Falls du ein neues Passwort eingibts wird dieses geändert.
Neues Passwort:<br><input type="password" name=password1 placeholder="Password"><br>
Neues Passwort wiederholen:<br><input type="password" name=password2 placeholder="Password"><br>
<br>
Du musst für jede Änderung dein aktuelles Passwort eingeben.
Neues Passwort wiederholen:<br><input type="password" name=password_old required placeholder="Password"><br>
<input type="submit" value="Hinzufügen">
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>
{% endblock %}