summaryrefslogtreecommitdiffstats
path: root/ogcp/templates
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp/templates')
-rw-r--r--ogcp/templates/actions/partition_report.html46
1 files changed, 46 insertions, 0 deletions
diff --git a/ogcp/templates/actions/partition_report.html b/ogcp/templates/actions/partition_report.html
new file mode 100644
index 0000000..80a241e
--- /dev/null
+++ b/ogcp/templates/actions/partition_report.html
@@ -0,0 +1,46 @@
+{% extends 'commands.html' %}
+{% import "bootstrap/wtf.html" as wtf %}
+{% import "macros.html" as macros %}
+
+{% set sidebar_state = 'disabled' %}
+{% set btn_back = true %}
+
+{% block content %}
+
+<h2 class="mx-5 subhead-heading">
+ {{ _('Partition scheme mismatch') }}
+</h2>
+
+{{ macros.cmd_selected_clients(selected_clients) }}
+</br>
+
+<div class="container mx-5">
+ <b>{{ _('Cannot proceed with this command, selected clients have non-uniform or valid partition scheme') }}</b>
+</div>
+<table class="table table-bordered table-hover">
+ <thead class="text-center">
+ <tr>
+ <th style="min-width: 15em;">{{ _('Partitions') }}</th>
+ <th>{{ _('Clients') }}</th>
+ </tr>
+ </thead>
+
+ <tbody>
+ {% for idx in range(part_data | length) %}
+ <tr>
+ <td>
+ {% for disk_id, part_id, part_type, fs_type, part_size in part_data.get_partition_setup(idx) %}
+ <div>Part {{ part_id }} | {{ fs_type }} | {{ (part_size / 1024) | int}} MiB</div>
+ {% else %}
+ {{ _('Empty') }}
+ {% endfor %}
+ </td>
+ <td>
+ {% for ip in part_data.get_clients(idx) %}<div class="card d-inline-block" style="padding: 5px; margin: 3px;">{{ ip }}</div>{% endfor %}
+ </td>
+ </tr>
+ {% endfor %}
+ </tbody>
+</table>
+
+{% endblock %}