structure for adding items
This commit is contained in:
60
inventorysystem/templates/new_inventory.html
Normal file
60
inventorysystem/templates/new_inventory.html
Normal file
@@ -0,0 +1,60 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<h1>Neuer Inventareintrag</h1>
|
||||
<h2>{{oe.name}}</h2>
|
||||
|
||||
<form method=post>
|
||||
|
||||
<label>
|
||||
Beschreibung
|
||||
<textarea name=description></textarea>
|
||||
</label>
|
||||
|
||||
<br>
|
||||
|
||||
<label>
|
||||
IA-Nummer
|
||||
<input type=text name=innenauftrag>
|
||||
<label>
|
||||
|
||||
<br>
|
||||
|
||||
<label>
|
||||
Seriennummer
|
||||
<input type=text name=serial>
|
||||
<label>
|
||||
|
||||
<br>
|
||||
|
||||
<label>
|
||||
Ort
|
||||
<input type=text name=location>
|
||||
<label>
|
||||
|
||||
<br>
|
||||
|
||||
<label>
|
||||
Legacy-Inventarnummer
|
||||
<input type=text name=old_inventory_id>
|
||||
<label>
|
||||
|
||||
<br>
|
||||
|
||||
<label>
|
||||
Kaufdatum
|
||||
<input type=date name=purchase_date>
|
||||
<label>
|
||||
|
||||
<br>
|
||||
|
||||
<label>
|
||||
Kaufpreis
|
||||
<input type=number step=0.01 name=purchase_price>
|
||||
<label>
|
||||
|
||||
<br>
|
||||
|
||||
<input type=submit>
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<h1>Inventar</h1>
|
||||
<h2>{{oe_name}}</h2>
|
||||
<h2>{{oe.name}}</h2>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
@@ -20,4 +20,6 @@
|
||||
|
||||
</table>
|
||||
|
||||
<a href={{url_for("new_inventory", oe=oe.id)}}>Neuer Eintrag</a>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user