{% extends "base.j2" %}

{% block content %}
{{ breadcrumbs([{'text': 'pump'|lang}]) }}

<form action="pump.cgi" method="get">
  <input type="hidden" name="set" value="{{ 'off' if status == 'on' else 'on' }}" />
  {{ "pump_now_is"|lang }}
  {% if status == 'on' %}
    <span class="text-success"><b>{{ "pump_now_on"|lang }}</b></span>.<br><br>
    <button type="submit" class="btn btn-primary">{{ "pump_turn_off"|lang }}</button>
  {% else %}
    <span class="text-danger"><b>{{ "pump_now_off"|lang }}</b></span>.<br><br>
    <button type="submit" class="btn btn-primary">{{ "pump_turn_on"|lang }}</button>
  {% endif %}
</form>
{% endblock %}
