SM2Gen/Targets/Userpanels/_usp_PANELTABLE.html.ep

52 lines
1.7 KiB
Plaintext
Raw Normal View History

%#
%# 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-PANELTABLE" class="partial Userpanels-PANELTABLE">
<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_Select_panels_for_user')%></h2>
<br /><table class="sme-border TableSort sme-table tabl2 ">
<thead class='tabl2'>
<tr table-head-row>
<th class='sme-border table-head-col table-head-col-Panel '><%=l('Panel')%></th>
<th class='sme-border table-head-col table-head-col-Description '><%=l('usp_Description')%></th>
<th class='sme-border table-head-col table-head-col-Select '><%=l('usp_Select')%></th>
</tr>
</thead>
<tbody class='tabl2'>
% my $control_data = $c->stash('panels');
% foreach my $row (@$control_data) {
<tr class='table-row'>
<td class='sme-border table-col table-col-Panel'><%=$c->render_to_string(inline=>$row->{'Panel'})%></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-Select'><%=$c->render_to_string(inline=>$row->{'Select'})%></td>
</tr>
%}
</tbody>
</table>
<span class='data'>
%= submit_button l('usp_Save'), class => 'action subm'
</span>
%# Probably finally by a submit.
%end
</div>