2025-04-15 16:30:33 +02:00
|
|
|
% layout 'AdminLTE', title => "Sme server 2 - groups";
|
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-15 20:32:05 +02:00
|
|
|
<div>
|
|
|
|
%= dumper $c->current_route
|
|
|
|
%= dumper $grp_datas
|
|
|
|
</div>
|
2025-03-25 17:40:59 +00:00
|
|
|
% }
|
|
|
|
|
2025-05-16 11:57:27 +02:00
|
|
|
<!-- reetp error here -->
|
|
|
|
|
2025-03-25 17:40:59 +00:00
|
|
|
% if ( stash 'error' ) {
|
2025-05-15 20:32:05 +02:00
|
|
|
<div class="text-danger">
|
|
|
|
<%= $c->render_to_string(inline => stash 'error') %>
|
|
|
|
</div>
|
|
|
|
% }
|
|
|
|
|
2025-03-25 17:40:59 +00:00
|
|
|
<h1><%= $title%></h1>
|
|
|
|
|
|
|
|
% if ($grp_datas->{trt} eq 'ADD') {
|
2025-05-15 20:32:05 +02:00
|
|
|
%= include 'partials/_grp_add'
|
|
|
|
% } elsif ($grp_datas->{trt} eq 'DEL') {
|
2025-04-15 16:30:33 +02:00
|
|
|
%= include 'partials/_grp_del'
|
2025-05-15 20:32:05 +02:00
|
|
|
% } elsif ($grp_datas->{trt} eq 'UPD') {
|
2025-04-15 16:30:33 +02:00
|
|
|
%= include 'partials/_grp_upd'
|
2025-05-15 20:32:05 +02:00
|
|
|
% } else {
|
2025-04-15 16:30:33 +02:00
|
|
|
%= include 'partials/_grp_list'
|
2025-05-15 20:32:05 +02:00
|
|
|
% }
|
2025-03-25 17:40:59 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
%end
|
|
|
|
|