aktueller stand
This commit is contained in:
13
inventorysystem/templates/delete_inventory.html
Normal file
13
inventorysystem/templates/delete_inventory.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<h1>Inventareintrag löschen</h1>
|
||||
|
||||
{% for key,value in dbresult %}
|
||||
{{key}}: {{value}} <br>
|
||||
{% endfor %}
|
||||
|
||||
<form method=post>
|
||||
<input type=submit value=Löschen>
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
||||
@@ -8,6 +8,7 @@
|
||||
{% for entry in table.headers %}
|
||||
<th>{{entry}}</th>
|
||||
{% endfor %}
|
||||
<th>Actions<th>
|
||||
</tr>
|
||||
|
||||
{% for entry in table.rows %}
|
||||
@@ -15,6 +16,7 @@
|
||||
{% for x in entry %}
|
||||
<td>{{x}}</td>
|
||||
{% endfor %}
|
||||
<td><a href={{url_for("delete_inventory", id=entry[0])}}>Löschen</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user