summaryrefslogtreecommitdiff
path: root/web/kbn_templates/pump.j2
diff options
context:
space:
mode:
authorEvgeny Sorokin <me@ch1p.io>2024-01-17 03:35:59 +0300
committerEvgeny Sorokin <me@ch1p.io>2024-01-17 03:35:59 +0300
commita9a241ad19449c29b68cd4a5b539bcbec816e341 (patch)
tree2ebfc73b206e4cec30fd94613bd6bf42ef5b269d /web/kbn_templates/pump.j2
parent8a89dd77be03ca8eb9cdc378ba8e912292494fa9 (diff)
lws: pump page rewritten to python
Diffstat (limited to 'web/kbn_templates/pump.j2')
-rw-r--r--web/kbn_templates/pump.j217
1 files changed, 17 insertions, 0 deletions
diff --git a/web/kbn_templates/pump.j2 b/web/kbn_templates/pump.j2
new file mode 100644
index 0000000..28d5c9d
--- /dev/null
+++ b/web/kbn_templates/pump.j2
@@ -0,0 +1,17 @@
+{% extends "base.j2" %}
+
+{% block content %}
+{{ breadcrumbs([{'text': 'Насос'}]) }}
+
+<form action="/pump.cgi" method="get">
+ <input type="hidden" name="set" value="{{ 'off' if status == 'on' else 'on' }}" />
+ Сейчас насос
+ {% if status == 'on' %}
+ <span class="text-success"><b>включен</b></span>.<br><br>
+ <button type="submit" class="btn btn-primary">Выключить</button>
+ {% else %}
+ <span class="text-danger"><b>выключен</b></span>.<br><br>
+ <button type="submit" class="btn btn-primary">Включить</button>
+ {% endif %}
+</form>
+{% endblock %}