summaryrefslogtreecommitdiff
path: root/web/kbn_templates/pump.j2
diff options
context:
space:
mode:
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 %}