summaryrefslogtreecommitdiff
path: root/localwebsite/templates-web/pump.twig
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-05-21 01:45:56 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-05-21 01:45:56 +0300
commit6f53e6e997c9f4647a667bd58b11bc622fa3b47f (patch)
tree226bd65a04576de4f41bf8396af97cd43ca27829 /localwebsite/templates-web/pump.twig
parent902a3bfbe2c4645e6725fb7583500d1a28026fad (diff)
move local website to homekit's tree
Diffstat (limited to 'localwebsite/templates-web/pump.twig')
-rw-r--r--localwebsite/templates-web/pump.twig18
1 files changed, 18 insertions, 0 deletions
diff --git a/localwebsite/templates-web/pump.twig b/localwebsite/templates-web/pump.twig
new file mode 100644
index 0000000..4a8cad5
--- /dev/null
+++ b/localwebsite/templates-web/pump.twig
@@ -0,0 +1,18 @@
+<nav aria-label="breadcrumb">
+ <ol class="breadcrumb">
+ <li class="breadcrumb-item"><a href="/">Главная</a></li>
+ <li class="breadcrumb-item active" aria-current="page">Насос</li>
+ </ol>
+</nav>
+
+<form action="/pump/" method="get">
+ <input type="hidden" name="set" value="{{ status == 'on' ? 'off' : '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> \ No newline at end of file