should work

This commit is contained in:
q
2016-07-03 23:47:54 +03:00
commit ca7ce92a04
11 changed files with 930 additions and 0 deletions

17
templates/list_shops.html Normal file
View File

@@ -0,0 +1,17 @@
{% extends "layout.html" %}
{% block body %}
<table class="sortable" id="shoplist">
<tr><th>Shop</th><th>Last edited</th><th>Owner</th></tr>
{% for entry in entries %}
<tr><td><a href="{{ url_for('show_shop',shopid=entry.shopid) }}">{{ entry.shop }}</a></td><td>{{ entry.date }}</td><td>{{ entry.owner }}</td>
{% else %}
<tr><td><em>Unbelievable. You dont have any shops</em>
{% endfor %}
</table>
<form action="{{ url_for('add_shop') }}" method=post class=add-entry>
<h2>Add new shop:</h2>
<input class=submit type=text size=30 name=shop> <input class=submit type=submit>
</form>
{% endblock %}