% layout 'AdminLTE', title => "Sme server 2 - useraccounts";

% content_for 'module' => begin

<div class="card-body">

    % if (config->{debug} == 1) {
        <div>
            %= dumper $c->current_route
            %= dumper $usr_datas
        </div>
    % }

    % if ( $notif ) {
        <div class="text-danger">
            <%= $c->render_to_string(inline => $notif) %>
        </div>
    % }

    <h1><%= $title%></h1>

    % 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'
    %}

</div>

%end

