SM2Gen/Targets/Remoteuseraccess/_rua_USERTABLE.html.ep

61 lines
2.8 KiB
Plaintext

%#
%# Generated by SM2Gen version:0.9(20Jan2025) Chameleon version:4.5.4 On Python:3.12.3 at 2025-05-15 12:40:04
%#
<div id="Remoteuseraccess-USERTABLE" class="partial Remoteuseraccess-USERTABLE">
<script>
window.onload = function() {
SelectInput();
};
</script>
% if (config->{debug} == 1) {
<pre>
%= dumper $rua_data
</pre>
% }
% my $btn = l('rua_APPLY');
% $c->param(Selected => undef);
%= form_for "remoteuseraccessu" => (method => 'POST') => begin
% param 'trt' => $rua_data->{trt} unless param 'trt';
%= hidden_field 'trt' => $rua_data->{trt}
%# Inputs etc in here.
<h1 class='head'><%=l('rua_Change_user_remote_access_settings')%></h1>
<h2 class='subh'><%=l('rua_Current_list_of_users')%></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-Account '><%=l('rua_Account')%></th>
<th class='sme-border table-head-col table-head-col-User Name '><%=l('rua_User_Name')%></th>
<th class='sme-border table-head-col table-head-col-Shell Access '><%=l('rua_Shell_Access')%></th>
<th class='sme-border table-head-col table-head-col-Sudo '><%=l('rua_Sudo')%></th>
<th class='sme-border table-head-col table-head-col-SSH Keys '><%=l('rua_SSH_Keys')%></th>
<th class='sme-border table-head-col table-head-col-Chroot Path '><%=l('rua_Chroot_Path')%></th>
<th class='sme-border table-head-col table-head-col-RSSH + VPN Access '><%=l('rua_RSSH_+_VPN_Access')%></th>
<th class='sme-border table-head-col table-head-col-Modify '><%=l('rua_Modify')%></th>
</tr>
</thead>
<tbody class='tabl1'>
% my $control_data = $c->stash('getAllUsers');
% 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-User_Name'><%=$c->render_to_string(inline=>$row->{'User_Name'})%></td>
<td class='sme-border table-col table-col-Shell_Access'><%=$c->render_to_string(inline=>$row->{'Shell_Access'})%></td>
<td class='sme-border table-col table-col-Sudo'><%=$c->render_to_string(inline=>$row->{'Sudo'})%></td>
<td class='sme-border table-col table-col-SSH_Keys'><%=$c->render_to_string(inline=>$row->{'SSH_Keys'})%></td>
<td class='sme-border table-col table-col-Chroot_Path'><%=$c->render_to_string(inline=>$row->{'Chroot_Path'})%></td>
<td class='sme-border table-col table-col-RSSH_+_VPN_Access'><%=$c->render_to_string(inline=>$row->{'RSSH_+_VPN_Access'})%></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>