summaryrefslogtreecommitdiff
path: root/app/templates/modules/ferti.html
diff options
context:
space:
mode:
Diffstat (limited to 'app/templates/modules/ferti.html')
-rw-r--r--app/templates/modules/ferti.html99
1 files changed, 99 insertions, 0 deletions
diff --git a/app/templates/modules/ferti.html b/app/templates/modules/ferti.html
new file mode 100644
index 0000000..549059b
--- /dev/null
+++ b/app/templates/modules/ferti.html
@@ -0,0 +1,99 @@
+{# -*- 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>
+ <button>edit</button>
+ </td>
+ <td>
+ <form method="post" action="{{ url_for('modules.delete_item', pk=log.primary_key, table='Fertilog' ) }}">
+ <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 %}
Copyright 2019--2024 Marius PETER