neuer stand
This commit is contained in:
@@ -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 %}
|
||||
|
||||
@@ -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 %}
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user