- add billing pages without function

only the blank html pages were added and the path was set in views.py
 the actual email functionality has to be added
This commit is contained in:
Ulrich Knechtelsdorfer
2016-02-24 00:15:13 +01:00
parent 0dd059d627
commit c241e4d244
4 changed files with 100 additions and 5 deletions

View File

@@ -1,10 +1,34 @@
{% extends "base.html"%}
{% set title = "Konsumatverwaltung" %}
{% set title = "Rechnungen versenden" %}
{% block content %}
<h3>TODO: </h3>
<ul>
<li>everything</li>
<li>implement paying</li>
</ul>
{% if success %}
<p>{{ success }}</p>
{% endif %}
<h1>Abrechnung</h1>
<form name="billing" method="post" action="/billing">
<table>
<tr>
<th>Name</th>
<th>Geschwärzt</th>
<th>Schulden</th>
<th>Bezahlt</th>
<th></th>
</tr>
{% for user in users %}
<tr>
<td>{{user.longname}}</td>
<td>{% if user.isblack %} &#9745; {% else %} &#9744; {% endif %}</td>
<td>{{dept}} € </td>
<td> <input type="number" name="{{user.name}}_payed" step="any" required value="0" /></td>
<td>Einzelne Rechnung <a href="/billing/send_personal_bill/{{user.name}}">versenden</a></td>
</tr>
{% endfor %}
</table>
<input type="submit" value="Änderungen übernehmen">
</form>
<p>An alle User Rechnungen <a href="/billing/send_all_bills"> versenden</a>.</p>
{% endblock %}