first experiments with rocket
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<form action="/add" method="POST">
|
||||
Name: <input type="text" name="name"><br>
|
||||
Qty: <input type="number" step="1" min="0" name="quantity"><br>
|
||||
Location: <input type="text" name="location"><br>
|
||||
<button type="submit">Add</button>
|
||||
</form>
|
||||
|
||||
<ul>
|
||||
{% for record in records %}
|
||||
<li>
|
||||
{{ record.name }} x {{ record.quantity }} in {{ record.location }}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
Reference in New Issue
Block a user