summaryrefslogtreecommitdiff
path: root/localwebsite/templates-web/pump.twig
blob: 3bce0e2a1d9f20fbb028c59e8e415e71a38457f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{% include 'bc.twig' with {
  history: [
    {text: "Насос" }
  ]
} %}

<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>