diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-09-30 10:02:00 +0200 |
---|---|---|
committer | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-10-02 10:14:04 +0200 |
commit | 6af4330016f2e70abd79f08b73bf54aa85f8e591 (patch) | |
tree | 52401f89f45ed76eecf1ed15fb36e36ef734a09c /ogcp/templates | |
parent | d6a896628f1e196acb4479e3ab55655c4f4c1008 (diff) |
ogcp: add view to identify clients setup diferences before restore
Add view to provide information before a restore operation where
the selected clients have a not uniform partition setup.
Show the view if only clients with not partition valid for a
restore operation are selected.
Diffstat (limited to 'ogcp/templates')
-rw-r--r-- | ogcp/templates/actions/partition_report.html | 46 |
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 %} |