summaryrefslogtreecommitdiff
path: root/app/templates/modules/logger.html
diff options
context:
space:
mode:
Diffstat (limited to 'app/templates/modules/logger.html')
-rw-r--r--app/templates/modules/logger.html136
1 files changed, 135 insertions, 1 deletions
diff --git a/app/templates/modules/logger.html b/app/templates/modules/logger.html
index 7ba93b3..f3321e9 100644
--- a/app/templates/modules/logger.html
+++ b/app/templates/modules/logger.html
@@ -1,8 +1,142 @@
+{# -*- mode: web; -*- #}
+
{% extends "base.html" %}
+
{% block title %}
Logger
{% endblock %}
{% block content %}
-<i>insert module content here.</i>
+
+
+<div id="actions">
+ <a href="{{ url_for('add_item', item='log') }}" class="button">Add log</a>
+</div>
+
+<i>Track operating logs.</i>
+
+<p>Most recent target</p>
+<table>
+ <thead>
+ <tr>
+ <th colspan=2><i>Actions</i></th>
+ <th>ID</th>
+ <th>Type</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>
+ <tr>
+ <td>
+ <button>edit</button>
+ </td>
+ <td>
+ <form method="post" action="{{ url_for('delete_item', pk=target.primary_key, table='Log' ) }}">
+ <button>delete</button>
+ </form>
+ </td>
+ <td>{{ target.primary_key }}</td>
+ <td>Target</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>
+ </tbody>
+</table>
+
+<p>Logs</p>
+
+<table>
+ <thead>
+ <tr>
+ <th colspan=2><i>Actions</i></th>
+ <th>ID</th>
+ <th>Type</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>
+ {% for log in logs %}
+ <tr>
+ <td>
+ <button>edit</button>
+ </td>
+ <td>
+ <form method="post" action="{{ url_for('delete_item', pk=log.primary_key, table='Log' ) }}">
+ <button>delete</button>
+ </form>
+ </td>
+ <td>{{ log.primary_key }}</td>
+ {% if log.target == "True" %}
+ <td>Target</td>
+ {% else %}
+ <td>Log</td>
+ {% endif %}
+ <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