36 lines
843 B
Plaintext
Raw Permalink Normal View History

2025-04-15 16:30:33 +02:00
% layout 'AdminLTE', title => "Sme server 2 - hostentries";
% content_for 'module' => begin
2025-04-15 16:30:33 +02:00
<div>
% if (config->{debug} == 1) {
2025-04-15 16:30:33 +02:00
<p>
%= dumper $c->current_route
%= dumper $hos_datas
</p>
% }
<h1><%= $title%></h1>
% if ( $notif ) {
2025-04-15 16:30:33 +02:00
<br>
<span class="">
<%= $c->render_to_string(inline => $notif) %>
</span>
%}
% if ($hos_datas->{trt} eq 'ADD' or $hos_datas->{trt} eq 'UPD') {
2025-04-15 16:30:33 +02:00
%= include 'partials/_hos_upd'
%} elsif ($hos_datas->{trt} eq 'DEL') {
2025-04-15 16:30:33 +02:00
%= include 'partials/_hos_del'
%} elsif ( $hos_datas->{trt} eq 'ALC' or $hos_datas->{trt} eq 'ULC') {
2025-04-15 16:30:33 +02:00
%= include 'partials/_hos_ulc'
%} elsif ( $hos_datas->{trt} eq 'ARM' or $hos_datas->{trt} eq 'URM') {
2025-04-15 16:30:33 +02:00
%= include 'partials/_hos_urm'
%} else {
2025-04-15 16:30:33 +02:00
%= include 'partials/_hos_list'
%}
</div>
%end