forked from brmlab/brmbar-github
introduce db, some changes to UI
This commit is contained in:
parent
57f8f51b4f
commit
e3c99305cc
17 changed files with 151 additions and 18 deletions
15
server/templates/items.html
Normal file
15
server/templates/items.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %}Items{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<form action="" method="post">
|
||||
<table>
|
||||
<tr><th>image</th><th>code</th><th>item</th><th>price</th><th>action</th></tr>
|
||||
<tr><td></td><td><input name="code" size="14"/></td><td><input name="name" size="30"/></td><td><input name="price" size="2"/></td><td><input type="submit" name="action" value="add"/></tr>
|
||||
{% for item in items %}
|
||||
<tr><td><img src="/static/items/{{ item.code|safe }}.jpg" width="64" height="64"/></td><td>{{ item.code|safe }}</td><td>{{ item.name|safe }}</td><td>{{ item.price }}</td><td><input type="submit" name="action" value="delete:{{ item.id }}"/></tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue