summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/actions/partition_report.html
blob: 80a241e316a4416e9e171591ab092b19401d21de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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 %}