From db63b6bc60c0c3c75662136e8524e274746c355b Mon Sep 17 00:00:00 2001 From: Javier Hernandez Date: Mon, 29 Jan 2024 10:38:53 +0100 Subject: views: Preselect most used oglive When setting up oglive, preselect oglive that is most used by selected clients. If only one client is selected, preselect that of the client. In the unusual scenario where a client is set with an oglive that is not in the ogserver's list of available oglives, preselect default. --- ogcp/templates/actions/oglive.html | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'ogcp/templates/actions') diff --git a/ogcp/templates/actions/oglive.html b/ogcp/templates/actions/oglive.html index 6b8e8b3..81b70dd 100644 --- a/ogcp/templates/actions/oglive.html +++ b/ogcp/templates/actions/oglive.html @@ -17,6 +17,31 @@ {{ macros.cmd_selected_clients(selected_clients) }} +{% if oglives_set|length > 1 %} +

Selected clients have different ogLive

+ + + + + + + + + + {% for oglive, clients in oglives_set.items() %} + + + + + {% endfor %} + +
ogLiveClients
{{oglive}} + {% for client in clients %} + {{client}} + {% endfor %} +
+{% endif %} + {{ wtf.quick_form(form, action=url_for('action_oglive'), method='post', -- cgit v1.2.3-18-g5258