summaryrefslogtreecommitdiff
path: root/localwebsite/templates-web
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-12-11 01:25:29 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-12-11 01:25:29 +0300
commit16d47968b4938f3b60b97f374d45ad39bb0071b1 (patch)
treeaca9209fc72c4a662822b8a53e7b04db67e30715 /localwebsite/templates-web
parent769a66f21d6d701dc72c849e98494a77adcf8024 (diff)
lws: inverter: allow changing osp
Diffstat (limited to 'localwebsite/templates-web')
-rw-r--r--localwebsite/templates-web/inverter_page.twig6
1 files changed, 6 insertions, 0 deletions
diff --git a/localwebsite/templates-web/inverter_page.twig b/localwebsite/templates-web/inverter_page.twig
index 2c3f8dd..c51e1bf 100644
--- a/localwebsite/templates-web/inverter_page.twig
+++ b/localwebsite/templates-web/inverter_page.twig
@@ -9,6 +9,12 @@
{{ html|raw }}
</div>
+<div class="pt-3">
+ <a href="/inverter/set-osp/?value={{ rated.output_source_priority == 'Solar-Battery-Utility' ? 'sub' : 'sbu' }}">
+ <button type="button" class="btn btn-primary">Переключить на <b>{{ rated.output_source_priority == 'Solar-Battery-Utility' ? 'Solar-Utility-Battery' : 'Solar-Battery-Utility' }}</b></button>
+ </a>
+</div>
+
{% js %}
Inverter.poll();
{% endjs %} \ No newline at end of file