summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/actions/client_details.html
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-08-29 11:55:52 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-09-02 15:05:45 +0200
commitd00e437b8d76bc32732643a92f0ea32fbe0b7901 (patch)
treecf8998b06022b7ca8e29eedb74c0a32b1ecea6b5 /ogcp/templates/actions/client_details.html
parent78a26f947fba1af6b339567cb58e0f852d253137 (diff)
ogcp: add support for multi-disk partition and format
Add support for selecting different disks in the disk inspector. Add disk_inspector.html as a template to show the disk contents of a client. The view can define the variable readonly_disk_inspector to make the view non editable. Use disk_inspector.html in the following views: - client details - partition and format Update code to obtain the partitions of a client to better fit the requirements of disk_inspector.html Remove code to setup the SetupForm as the contents of the disks are now dynamically loaded through javascript.
Diffstat (limited to 'ogcp/templates/actions/client_details.html')
-rw-r--r--ogcp/templates/actions/client_details.html29
1 files changed, 4 insertions, 25 deletions
diff --git a/ogcp/templates/actions/client_details.html b/ogcp/templates/actions/client_details.html
index a718450..6bccace 100644
--- a/ogcp/templates/actions/client_details.html
+++ b/ogcp/templates/actions/client_details.html
@@ -37,31 +37,10 @@
</form>
</div>
-{% if setup|length > 0 %}
-<table class="table">
- <tbody class="text-center">
- <tr>
- <th>{{_('Partition')}}</th>
- <th>{{_('Type')}}</th>
- <th>{{_('Filesystem')}}</th>
- <th>{{_('Size')}} (MiB)</th>
- <th>{{_('Image')}}</th>
- <th colspan="2"></th>
- </tr>
- </tbody>
- <tbody class="text-center">
- {% for entry in setup %}
- <tr>
- <td>{{ entry.partition }}</td>
- <td>{{ entry.code }}</td>
- <td>{{ entry.filesystem }}</td>
- <td>{{ entry.size // 1024}}</td>
- <td>{{ entry.image }}</td>
- </tr>
- {% endfor %}
- </tbody>
-</table>
-{% endif %}
+{% set show_part_images = True %}
+{% set readonly_disk_inspector = True %}
+{% include 'disk_inspector.html' %}
+
{% include 'cache_inspector.html' %}