2025-04-15 16:30:33 +02:00
|
|
|
% layout 'AdminLTE', title => "Sme server 2 - ibays";
|
2025-03-25 17:40:59 +00:00
|
|
|
|
|
|
|
% content_for 'module' => begin
|
2025-04-18 15:11:03 +02:00
|
|
|
|
|
|
|
<div class="card-body">
|
2025-03-25 17:40:59 +00:00
|
|
|
|
|
|
|
% if (config->{debug} == 1) {
|
2025-05-28 11:54:36 -04:00
|
|
|
<pre>
|
|
|
|
<%= dumper $c->current_route %>
|
|
|
|
<%= dumper $iba_datas %>
|
|
|
|
</pre>
|
2025-03-25 17:40:59 +00:00
|
|
|
% }
|
|
|
|
|
|
|
|
% if ( stash 'error' ) {
|
2025-05-14 09:33:36 -04:00
|
|
|
<br>
|
2025-05-28 11:54:36 -04:00
|
|
|
<div class="text-danger">
|
2025-05-14 09:33:36 -04:00
|
|
|
<%= $c->render_to_string(inline => stash 'error') %>
|
|
|
|
</div>
|
2025-05-18 12:18:20 +02:00
|
|
|
% }
|
2025-03-25 17:40:59 +00:00
|
|
|
|
|
|
|
<h1><%= $title%></h1>
|
|
|
|
|
|
|
|
% if ( stash 'modul' ) {
|
2025-05-14 09:33:36 -04:00
|
|
|
%= $c->render_to_string(inline => stash 'modul' );
|
2025-03-25 17:40:59 +00:00
|
|
|
% }
|
|
|
|
|
|
|
|
% if ($iba_datas->{trt} eq 'ADD') {
|
2025-04-15 16:30:33 +02:00
|
|
|
%= include 'partials/_iba_upd'
|
2025-03-25 17:40:59 +00:00
|
|
|
%} elsif ($iba_datas->{trt} eq 'DEL') {
|
2025-04-15 16:30:33 +02:00
|
|
|
%= include 'partials/_iba_del'
|
|
|
|
%} elsif ($iba_datas->{trt} eq 'UPD') {
|
|
|
|
%= include 'partials/_iba_upd'
|
|
|
|
%} elsif ($iba_datas->{trt} eq 'PWD') {
|
|
|
|
%= include 'partials/_iba_pwd'
|
|
|
|
%} else {
|
|
|
|
%= include 'partials/_iba_list'
|
|
|
|
%}
|
2025-03-25 17:40:59 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
%end
|
|
|
|
|