summaryrefslogtreecommitdiffstats
path: root/ogcp/templates
diff options
context:
space:
mode:
authorJavier Hernandez <jhernandez@soleta.eu>2023-12-22 12:08:49 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2023-12-22 12:21:26 +0100
commit1497e500cb0a11689796cfb2fd4aabeb89f72b58 (patch)
treeb46bb9476b27c99225b9e4917af3916e4e8ad537 /ogcp/templates
parent01977dcd669d7eedc4fde45f8e9a07e991acf72e (diff)
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.
Diffstat (limited to 'ogcp/templates')
-rw-r--r--ogcp/templates/actions/mode.html26
1 files changed, 26 insertions, 0 deletions
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) }}
</h1>
+{% if modes_set|length > 1 %}
+ <h3 class="text-danger">WARNING</h3>
+ <p>Selected clients have different boot modes set</p>
+
+ <table class="table table-hover">
+ <thead class="thead-light">
+ <tr>
+ <th>Boot modes</th>
+ <th>Clients</th>
+ </tr>
+ </thead>
+ <tbody class="text-left">
+ {% for mode, clients in modes_set.items() %}
+ <tr>
+ <th>{{mode}}</th>
+ <td>
+ {% for client in clients %}
+ {{client}}
+ {% endfor %}
+ </td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+{% endif %}
+
{{ macros.cmd_selected_clients(selected_clients) }}
{{ wtf.quick_form(form,