neuer stand

This commit is contained in:
2022-10-06 00:55:26 +02:00
parent 03a9433149
commit c6dc363c68
4 changed files with 50 additions and 29 deletions

View File

@@ -1,6 +1,12 @@
{% extends "base.html" %}
{% block content %}
Logged in as {{session.full_name}} ({{session.username}})
<h1>AStA-Inventarsystem</h1>
<h2>OEs</h2>
<ul>
{% for oe in dbresult %}
<li><a href=/inventory/{{ oe.id }}>{{oe.name}}</a></li>
{% endfor %}
</ul>
<a href=/oes>Show OEs</a>
{% endblock %}

View File

@@ -1,8 +0,0 @@
{% extends "base.html" %}
{% block content %}
<h1>OEs</h1>
{% for id,name in dbresult %}
<a href=/inventory/{{ id }}>{{name}}</a>
{% endfor %}
{% endblock %}

View File

@@ -2,7 +2,22 @@
{% block content %}
<h1>Inventar</h1>
<h2>{{oe_name}}</h2>
{% for entry in dbresult %}
{{entry}}<br>
<table>
<tr>
{% for entry in table.headers %}
<th>{{entry}}</th>
{% endfor %}
</tr>
{% for entry in table.rows %}
<tr>
{% for x in entry %}
<td>{{x}}</td>
{% endfor %}
</tr>
{% endfor %}
</table>
{% endblock %}