From 1497e500cb0a11689796cfb2fd4aabeb89f72b58 Mon Sep 17 00:00:00 2001 From: Javier Hernandez Date: Fri, 22 Dec 2023 12:08:49 +0100 Subject: Warn if clients have different boot modes Show user, when attempting to change the bootmode of more than one client with different boot modes, a warning and a table with said bootmodes. --- ogcp/templates/actions/mode.html | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'ogcp/templates') diff --git a/ogcp/templates/actions/mode.html b/ogcp/templates/actions/mode.html index 131097a..87ce59d 100644 --- a/ogcp/templates/actions/mode.html +++ b/ogcp/templates/actions/mode.html @@ -15,6 +15,32 @@ {{ _('Changing boot mode of %(ip_count)d computer(s)', ip_count=ip_count) }} +{% if modes_set|length > 1 %} +

WARNING

+

Selected clients have different boot modes set

+ + + + + + + + + + {% for mode, clients in modes_set.items() %} + + + + + {% endfor %} + +
Boot modesClients
{{mode}} + {% for client in clients %} + {{client}} + {% endfor %} +
+{% endif %} + {{ macros.cmd_selected_clients(selected_clients) }} {{ wtf.quick_form(form, -- cgit v1.2.3-18-g5258