2024-09-12 20:48:08 +02:00
|
|
|
%#
|
2024-09-20 18:31:09 +02:00
|
|
|
%# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-19 12:30:21
|
2024-09-12 20:48:08 +02:00
|
|
|
%#
|
2024-09-15 13:06:34 +02:00
|
|
|
<div id="DiskUsage-PARAMS" class="partial DiskUsage-PARAMS">
|
2024-09-12 20:48:08 +02:00
|
|
|
<script>
|
|
|
|
window.onload = function() {
|
|
|
|
SelectInput();
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
<h2>
|
2024-09-14 12:39:26 +02:00
|
|
|
%= l('du_Hello_PARAMS');
|
2024-09-12 20:48:08 +02:00
|
|
|
</h2>
|
2024-09-14 12:39:26 +02:00
|
|
|
% my $btn = l('du_APPLY');
|
2024-09-15 13:06:34 +02:00
|
|
|
%= form_for "DiskUsaged" => (method => 'POST') => begin
|
2024-09-12 20:48:08 +02:00
|
|
|
|
2024-09-14 12:39:26 +02:00
|
|
|
% param 'trt' => $du_data->{trt} unless param 'trt';
|
|
|
|
%= hidden_field 'trt' => $du_data->{trt}
|
2024-09-12 20:48:08 +02:00
|
|
|
%# Inputs etc in here.
|
|
|
|
|
2024-09-16 15:01:17 +02:00
|
|
|
<h1><%=l('du_Disk_usage')%></h1>
|
2024-09-12 20:48:08 +02:00
|
|
|
|
2024-09-16 15:01:17 +02:00
|
|
|
<h2><%=l('du_Manage_DiskUsage_settings:')%></h2>
|
2024-09-12 20:48:08 +02:00
|
|
|
|
2024-09-20 18:31:09 +02:00
|
|
|
<p class='paragraph para1'>
|
2024-09-15 13:06:34 +02:00
|
|
|
%=l('du_Wed_Sep_11_19:01:00_BST')
|
2024-09-12 20:48:08 +02:00
|
|
|
</p>
|
|
|
|
|
2024-09-20 18:31:09 +02:00
|
|
|
<pre class='preformatted pref1'>
|
2024-09-13 17:36:57 +02:00
|
|
|
Filesystem Size Used Avail Use% Mounted on
|
2024-09-12 20:48:08 +02:00
|
|
|
/dev/mapper/main-root 29G 4.8G 24G 17% /
|
|
|
|
devtmpfs 2.0G 0 2.0G 0% /dev
|
|
|
|
tmpfs 2.0G 12K 2.0G 1% /dev/shm
|
|
|
|
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
|
|
|
|
tmpfs 2.0G 648K 2.0G 1% /run
|
|
|
|
/dev/sda1 497M 111M 386M 23% /boot'
|
2024-09-13 17:36:57 +02:00
|
|
|
</pre>
|
2024-09-12 20:48:08 +02:00
|
|
|
|
|
|
|
|
2024-09-20 18:31:09 +02:00
|
|
|
<br /><table class="sme-border TableSort sme-table tabl1 ">
|
|
|
|
<thead class='tabl1'>
|
2024-09-12 20:48:08 +02:00
|
|
|
<tr table-head-row>
|
2024-09-14 12:39:26 +02:00
|
|
|
<th class='sme-border table-head-col table-head-col-I-bays '><%=l('du_I-bays')%></th>
|
|
|
|
<th class='sme-border table-head-col table-head-col-Usage '><%=l('du_Usage')%></th>
|
|
|
|
<th class='sme-border table-head-col table-head-col-Path '><%=l('du_Path')%></th>
|
2024-09-12 20:48:08 +02:00
|
|
|
</tr>
|
|
|
|
</thead>
|
2024-09-20 18:31:09 +02:00
|
|
|
<tbody class='tabl1'>
|
2024-09-12 20:48:08 +02:00
|
|
|
% my $control_data = $self->stash('Table1');
|
|
|
|
% foreach my $row (@$control_data) {
|
|
|
|
<tr class='table-row'>
|
2024-09-14 12:39:26 +02:00
|
|
|
<td class='sme-border table-col table-col-Table1-I-bays'><%=$c->render_to_string(inline=>$row->{'Table1-I-bays'})%></td>
|
|
|
|
<td class='sme-border table-col table-col-Table1-Usage'><%=$c->render_to_string(inline=>$row->{'Table1-Usage'})%></td>
|
|
|
|
<td class='sme-border table-col table-col-Table1-Path'><%=$c->render_to_string(inline=>$row->{'Table1-Path'})%></td>
|
2024-09-12 20:48:08 +02:00
|
|
|
</tr>
|
|
|
|
%}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
2024-09-20 18:31:09 +02:00
|
|
|
<br /><table class="sme-border TableSort sme-table tabl2 ">
|
|
|
|
<thead class='tabl2'>
|
2024-09-12 20:48:08 +02:00
|
|
|
<tr table-head-row>
|
2024-09-14 12:39:26 +02:00
|
|
|
<th class='sme-border table-head-col table-head-col-Users '><%=l('du_Users')%></th>
|
|
|
|
<th class='sme-border table-head-col table-head-col-Usage '><%=l('du_Usage')%></th>
|
|
|
|
<th class='sme-border table-head-col table-head-col-Path '><%=l('du_Path')%></th>
|
2024-09-12 20:48:08 +02:00
|
|
|
</tr>
|
|
|
|
</thead>
|
2024-09-20 18:31:09 +02:00
|
|
|
<tbody class='tabl2'>
|
2024-09-12 20:48:08 +02:00
|
|
|
% my $control_data = $self->stash('Table2');
|
|
|
|
% foreach my $row (@$control_data) {
|
|
|
|
<tr class='table-row'>
|
2024-09-14 19:08:48 +02:00
|
|
|
<td class='sme-border table-col table-col-Table2-Users'><%=$c->render_to_string(inline=>$row->{'Table2-Users'})%></td>
|
|
|
|
<td class='sme-border table-col table-col-Table2-Usage'><%=$c->render_to_string(inline=>$row->{'Table2-Usage'})%></td>
|
|
|
|
<td class='sme-border table-col table-col-Table2-Path'><%=$c->render_to_string(inline=>$row->{'Table2-Path'})%></td>
|
2024-09-12 20:48:08 +02:00
|
|
|
</tr>
|
|
|
|
%}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
%# Probably finally by a submit.
|
|
|
|
%end
|
|
|
|
</div>
|