- add: add beverages

This commit is contained in:
Ulrich Knechtelsdorfer
2016-02-13 22:05:49 +01:00
parent c84212e151
commit 79bcf2e8ca
13 changed files with 148 additions and 28 deletions

View File

@@ -7,8 +7,24 @@
</ul>
<h1> Konsumatverwaltung </h1>
{% for product in products %}
<div><p> {{ product.id }}, {{product.name}}, {{product.price}} €</p></div>
{% endfor %}
<a href=/manage_beverages/add>Getränk Hinzufügen</a></li>
{% endblock %}
<table>
<tr>
<th>ID</th>
<th>Name</th>
<th>Preis</th>
<th>Wird angezeigt</th>
<th></th>
</tr>
{% for product in products %}
<tr>
<td>{{product.id}}</td>
<td>{{product.name}}</td>
<td>{{product.price}}</td>
<td>{% if product.isshown %} &#9745; {% else %} &#9744; {% endif %} </td>
<td> <a href="/manage_beverages/edit/{{product.name}}">bearbeiten</a></td>
</tr>
{% endfor %}
</table>
<br />
<a href=/manage_beverages/add>Getränk Hinzufügen</a></li>
{% endblock %}