[Flask] Simple ERP for a farm.
1
{# -*- mode: web; -*- #}
2
3
{% extends "base.html" %}
4
{% block title %}
5
Orders
6
{% endblock %}
7
8
{% block actions %}
9
<ahref="{{ url_for('common.add_item', module='orders', table='Order') }}"class="button">Add order</a>
10
{% endblock %}
11
12
{% block content %}
13
<i>Track your orders and their payment status here.</i>
14
15
<table>
16
<thead>
17
<tr>
18
<th>ID</th>
19
<th>Date</th>
20
<th>Customer</th>
21
<th>Content</th>
22
<th>Updated</th>
23
</tr>
24
</thead>
25
<tbody>
26
{% for order in orders %}
27
<tr>
28
<td>{{ order.id }}</td>
29
<td>{{ order.date }}</td>
30
<td>{{ order.customer }}</td>
31
<td>{{ order.content }}</td>
32
<td>{{ order.updated }}</td>
33
</tr>
34
{% endfor %}
35
</tbody>
36
</table>
37
{% endblock %}
38