54 lines
1.9 KiB
Plaintext
54 lines
1.9 KiB
Plaintext
%#
|
|
%# Generated by SM2Gen version:0.9(20Jan2025) Chameleon version:4.5.4 On Python:3.12.3 at 2025-09-06 06:03:54
|
|
%#
|
|
<div id="Example1-TABLE" class="partial Example1-TABLE">
|
|
%# <script>
|
|
%# window.onload = function() {
|
|
%# SelectInput();
|
|
%# };
|
|
%# </script>
|
|
% if (config->{debug} == 1) {
|
|
<pre>
|
|
%= dumper $ex1_data
|
|
</pre>
|
|
% }
|
|
% my $btn = l('SAVE');
|
|
% $c->param(Selected => undef); #This may need deleting for a params panel - only needed for a table
|
|
|
|
%= form_for "example1u" => (method => 'POST') => begin
|
|
% param 'trt' => $ex1_data->{trt} unless param 'trt';
|
|
%= hidden_field 'trt' => $ex1_data->{trt}
|
|
%# Inputs etc in here.
|
|
|
|
<h1 class='head'><%=l('NFS Share Contrib')%></h1>
|
|
|
|
<h2 class='subh'><%=l('Manage NFS Ibay settings:')%></h2>
|
|
|
|
<br /><table class="sme-border TableSort sme-table tabl1 ">
|
|
<thead class='tabl1'>
|
|
<tr table-head-row>
|
|
<th class='sme-border table-head-col table-head-col-Name '><%=l('Name')%></th>
|
|
<th class='sme-border table-head-col table-head-col-Description '><%=l('Description')%></th>
|
|
<th class='sme-border table-head-col table-head-col-Status '><%=l('Status')%></th>
|
|
<th class='sme-border table-head-col table-head-col-Action '><%=l('Action')%></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class='tabl1'>
|
|
% my $control_data = $c->stash('ibays');
|
|
% foreach my $row (@$control_data) {
|
|
<tr class='table-row'>
|
|
<td class='sme-border table-col table-col-Name'><%=$c->render_to_string(inline=>$row->{'Name'})%></td>
|
|
<td class='sme-border table-col table-col-Description'><%=$c->render_to_string(inline=>$row->{'Description'})%></td>
|
|
<td class='sme-border table-col table-col-flag'><%=$c->render_to_string(inline=>$row->{'flag'})%></td>
|
|
<td class='sme-border table-col table-col-Modify'><%=$c->render_to_string(inline=>$row->{'Modify'})%></td>
|
|
</tr>
|
|
%}
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
%# ....
|
|
%# Probably finally by a submit.
|
|
%= submit_button $btn, class => 'action'
|
|
%end
|
|
</div> |