2025-04-15 16:30:33 +02:00
|
|
|
% layout 'AdminLTE', title => "Sme server 2 - printers";
|
2025-03-25 17:40:59 +00:00
|
|
|
|
|
|
|
% content_for 'module' => begin
|
|
|
|
<div id="" class="">
|
|
|
|
|
|
|
|
%if (config->{debug} == 1) {
|
2025-04-15 16:30:33 +02:00
|
|
|
<p>
|
|
|
|
%= dumper $c->current_route
|
|
|
|
%= dumper $prt_datas
|
|
|
|
</p>
|
2025-03-25 17:40:59 +00:00
|
|
|
%}
|
|
|
|
|
|
|
|
% if ( stash 'error' ) {
|
2025-04-15 16:30:33 +02:00
|
|
|
<br><div class="">
|
|
|
|
%= $c->render_to_string(inline => stash 'error')
|
|
|
|
</div>
|
2025-03-25 17:40:59 +00:00
|
|
|
%}
|
|
|
|
|
|
|
|
<h1><%= $title%></h1>
|
|
|
|
|
|
|
|
% if ($prt_datas->{trt} eq 'ADD') {
|
2025-04-15 16:30:33 +02:00
|
|
|
%= include 'partials/_prt_add'
|
2025-03-25 17:40:59 +00:00
|
|
|
%} elsif ($prt_datas->{trt} eq 'DEL') {
|
2025-04-15 16:30:33 +02:00
|
|
|
%= include 'partials/_prt_del'
|
|
|
|
%} elsif ($prt_datas->{trt} eq 'NET') {
|
|
|
|
%= include 'partials/_prt_net'
|
|
|
|
%} else {
|
|
|
|
%= include 'partials/_prt_list'
|
|
|
|
%}
|
2025-03-25 17:40:59 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
%end
|