52 lines
1.7 KiB
Plaintext
52 lines
1.7 KiB
Plaintext
%#
|
|
%# Generated by SM2Gen version:0.9(20Jan2025) Chameleon version:4.5.4 On Python:3.12.3 at 2025-04-23 10:18:18
|
|
%#
|
|
<div id="Userpanels-USERTABLE" class="partial Userpanels-USERTABLE">
|
|
<script>
|
|
window.onload = function() {
|
|
SelectInput();
|
|
};
|
|
</script>
|
|
% if (config->{debug} == 1) {
|
|
<pre>
|
|
%= dumper $usp_data
|
|
</pre>
|
|
% }
|
|
% my $btn = l('usp_APPLY');
|
|
%= form_for "userpanelsu" => (method => 'POST') => begin
|
|
% param 'trt' => $usp_data->{trt} unless param 'trt';
|
|
%= hidden_field 'trt' => $usp_data->{trt}
|
|
%# Inputs etc in here.
|
|
|
|
<h1 class='head'><%=l('usp_Allocate_panels_to_a_user')%></h1>
|
|
|
|
<h2 class='subh'><%=l('usp_Choose_a_user')%></h2>
|
|
|
|
<p class='paragraph para1'>
|
|
%=l('usp_You_can_modify_individual_users')
|
|
</p>
|
|
|
|
<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-Account '><%=l('usp_Account')%></th>
|
|
<th class='sme-border table-head-col table-head-col-Name/Description '><%=l('usp_Name/Description')%></th>
|
|
<th class='sme-border table-head-col table-head-col-Modify '><%=l('usp_Modify')%></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class='tabl1'>
|
|
% my $control_data = $c->stash('users');
|
|
% foreach my $row (@$control_data) {
|
|
<tr class='table-row'>
|
|
<td class='sme-border table-col table-col-Account'><%=$c->render_to_string(inline=>$row->{'Account'})%></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-Modify'><%=$c->render_to_string(inline=>$row->{'Modify'})%></td>
|
|
</tr>
|
|
%}
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
%# Probably finally by a submit.
|
|
%end
|
|
</div> |