diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2024-02-17 02:48:57 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2024-02-17 02:48:57 +0300 |
commit | b7f1d55c9b4de4d21b11e5615a5dc8be0d4e883c (patch) | |
tree | df3cba57518e21590d579b014867611002d92de5 /web/kbn_templates/pump.j2 | |
parent | c4ace358182d1f58724336714490e3caac6b60df (diff) | |
parent | 05c85757b8e2340441057d9ddfde2e9649ae8676 (diff) |
Merge branch 'website-python-rewrite'
Diffstat (limited to 'web/kbn_templates/pump.j2')
-rw-r--r-- | web/kbn_templates/pump.j2 | 17 |
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 %} |