summaryrefslogtreecommitdiff
path: root/web/kbn_templates/inverter.j2
blob: 26491f312b77f542c10d40990c6ab7574b7144ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{% extends "base.j2" %}

{% block content %}
{{ breadcrumbs([{'text': 'Инвертор'}]) }}

<h6 class="text-primary">Статус</h6>
<div id="inverter_status">
  {{ html|safe }}
</div>

<div class="pt-3">
  <a href="/inverter.cgi?do=set-osp&amp;value={{ 'sub' if rated.output_source_priority == 'Solar-Battery-Utility' else 'sbu' }}">
    <button type="button" class="btn btn-primary">Переключить на <b>{{ 'Solar-Utility-Battery' if rated.output_source_priority == 'Solar-Battery-Utility' else 'Solar-Battery-Utility' }}</b></button>
  </a>
</div>
{% endblock %}

{% block js %}
Inverter.poll();
{% endblock %}