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

% content_for 'module' => begin

<div class="card-body">

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

    % if ( stash 'error' ) {
        <br>
        <div>
            <%= $c->render_to_string(inline => stash 'error') %>
        </div>
    % }

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

    % if ($prt_datas->{trt} eq 'ADD') {
        %= include 'partials/_prt_add'
    % } elsif ($prt_datas->{trt} eq 'DEL') {
        %= include 'partials/_prt_del'
    % } elsif ($prt_datas->{trt} eq 'NET') {
        %= include 'partials/_prt_net'
    % } else {
        %= include 'partials/_prt_list'
    % }

</div>
%end