summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/actions/mode.html
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp/templates/actions/mode.html')
-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,