blob: 7e1e2b3441ca6698949e8c725c18c00436070aed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
{# -*- mode: web; -*- #}
{% extends "base.html" %}
{% block title %}
Logger
{% endblock %}
{% block actions %}
<li><a href="{{ url_for('common.add_item', module='ferti', table='FertiLog') }}" class="button">Add log</a></li>
<li><a href="{{ url_for('common.add_item', module='ferti', table='FertiTarget') }}" class="button">Add target</a></li>
{% endblock %}
{% block content %}
<i>Track operating logs.</i>
<table>
<thead>
<tr>
<th colspan=2><i>Actions</i></th>
<th>ID</th>
<th>Updated</th>
<th>NNO3</th>
<th>P</th>
<th>K</th>
<th>Ca</th>
<th>Mg</th>
<th>S</th>
<th>Na</th>
<th>Cl</th>
<th>Fe</th>
<th>Zn</th>
<th>B</th>
<th>Mn</th>
<th>Cu</th>
<th>Mo</th>
<th>Si</th>
<th>NNH4</th>
</tr>
</thead>
<tbody>
{% if target %}
<tr class="latest-target">
<td></td>
<td></td>
<td>{{ target.primary_key }}</td>
<td>{{ target.date_time_updated }}</td>
<td>{{ target.nno3 }}</td>
<td>{{ target.p }}</td>
<td>{{ target.k }}</td>
<td>{{ target.ca }}</td>
<td>{{ target.mg }}</td>
<td>{{ target.s }}</td>
<td>{{ target.na }}</td>
<td>{{ target.cl }}</td>
<td>{{ target.fe }}</td>
<td>{{ target.zn }}</td>
<td>{{ target.b }}</td>
<td>{{ target.mn }}</td>
<td>{{ target.cu }}</td>
<td>{{ target.mo }}</td>
<td>{{ target.si }}</td>
<td>{{ target.nnh4 }}</td>
</tr>
{% endif %}
{% for log in logs %}
<tr>
<td>
<form method="post" action="{{ url_for('common.edit_item', module='ferti', table='FertiLog', pk=log.primary_key) }}">
<button>edit</button>
</form>
</td>
<td>
<form method="post" action="{{ url_for('common.delete_item', module='ferti', table='FertiLog', pk=log.primary_key) }}">
<button>delete</button>
</form>
</td>
<td>{{ log.primary_key }}</td>
<td>{{ log.date_time_updated }}</td>
<td>{{ log.nno3 }}</td>
<td>{{ log.p }}</td>
<td>{{ log.k }}</td>
<td>{{ log.ca }}</td>
<td>{{ log.mg }}</td>
<td>{{ log.s }}</td>
<td>{{ log.na }}</td>
<td>{{ log.cl }}</td>
<td>{{ log.fe }}</td>
<td>{{ log.zn }}</td>
<td>{{ log.b }}</td>
<td>{{ log.mn }}</td>
<td>{{ log.cu }}</td>
<td>{{ log.mo }}</td>
<td>{{ log.si }}</td>
<td>{{ log.nnh4 }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}
|