From 6af4330016f2e70abd79f08b73bf54aa85f8e591 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Mon, 30 Sep 2024 10:02:00 +0200 Subject: 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. --- ogcp/templates/actions/partition_report.html | 46 ++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 ogcp/templates/actions/partition_report.html (limited to 'ogcp/templates/actions') 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 %} + +

+ {{ _('Partition scheme mismatch') }} +

+ +{{ macros.cmd_selected_clients(selected_clients) }} +
+ +
+ {{ _('Cannot proceed with this command, selected clients have non-uniform or valid partition scheme') }} +
+ + + + + + + + + + {% for idx in range(part_data | length) %} + + + + + {% endfor %} + +
{{ _('Partitions') }}{{ _('Clients') }}
+ {% for disk_id, part_id, part_type, fs_type, part_size in part_data.get_partition_setup(idx) %} +
Part {{ part_id }} | {{ fs_type }} | {{ (part_size / 1024) | int}} MiB
+ {% else %} + {{ _('Empty') }} + {% endfor %} +
+ {% for ip in part_data.get_clients(idx) %}
{{ ip }}
{% endfor %} +
+ +{% endblock %} -- cgit v1.2.3-18-g5258