2024-03-22 14:54:28 +11:00
|
|
|
% layout 'default', title => "Sme server 2 - useraccounts";
|
|
|
|
|
|
|
|
% content_for 'module' => begin
|
2025-08-12 06:20:31 +01:00
|
|
|
<div id='module' class='module useraccounts-panel'>
|
2024-03-22 14:54:28 +11:00
|
|
|
|
2025-01-22 11:53:21 +00:00
|
|
|
% if (config->{debug} == 1) {
|
2025-08-12 06:20:31 +01:00
|
|
|
<p>
|
|
|
|
%= dumper $c->current_route
|
|
|
|
%= dumper $usr_datas
|
|
|
|
</p>
|
2024-03-22 14:54:28 +11:00
|
|
|
% }
|
|
|
|
|
2025-08-12 06:20:31 +01:00
|
|
|
<h1><%= $title %></h1>
|
2024-03-22 14:54:28 +11:00
|
|
|
|
2025-08-12 06:20:31 +01:00
|
|
|
% if ( $notif ) {
|
|
|
|
<br>
|
|
|
|
<span class=sme-error>
|
|
|
|
<%= $c->render_to_string( inline => $notif ) %>
|
|
|
|
</span>
|
|
|
|
% }
|
|
|
|
|
|
|
|
% if ($usr_datas->{trt} eq 'ADD' or $usr_datas->{trt} eq 'UPD') {
|
|
|
|
%= include 'partials/_usr_upd'
|
|
|
|
% } elsif ($usr_datas->{trt} eq 'DEL') {
|
|
|
|
%= include 'partials/_usr_del'
|
|
|
|
% } elsif ($usr_datas->{trt} eq 'LCK') {
|
|
|
|
%= include 'partials/_usr_lock'
|
|
|
|
% } elsif ($usr_datas->{trt} eq 'PWD') {
|
|
|
|
%= include 'partials/_usr_pwd'
|
|
|
|
% } elsif ($usr_datas->{trt} eq 'PWS') {
|
|
|
|
%= include 'partials/_usr_pwds'
|
|
|
|
% } elsif ($usr_datas->{trt} eq 'UPS') {
|
|
|
|
%= include 'partials/_usr_upds'
|
|
|
|
% } else {
|
|
|
|
%= include 'partials/_usr_list'
|
|
|
|
% }
|
2024-03-22 14:54:28 +11:00
|
|
|
|
|
|
|
</div>
|
2025-08-12 06:20:31 +01:00
|
|
|
% end
|
2024-03-22 14:54:28 +11:00
|
|
|
|