diff options
Diffstat (limited to 'localwebsite/templates-web/inverter_page.twig')
-rw-r--r-- | localwebsite/templates-web/inverter_page.twig | 6 |
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 |