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

% content_for 'module' => begin

<div class="card-body">

    % if (config->{debug} == 1) {
        <div>
            <%= dumper $c->current_route %>
            <%= dumper $c->stash("ret") %>
            <%= dumper $c->param("localnetwork") %>
            <%= dumper $c->stash("ln_datas") %>
            <%= dumper $c->param("deletehost") %>
        </div>
    % }

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

     %= $modul

    % if ($ln_datas->{trt} eq 'ADD') {
        %= include 'partials/_ln_add'
    %} elsif ($ln_datas->{trt} eq 'ADD1') {
        %= include 'partials/_ln_add'
    %} elsif ($ln_datas->{trt} eq 'DEL') {
        %= include 'partials/_ln_del'
    %} elsif ($ln_datas->{trt} eq 'DEL1'){
        %= include 'partials/_ln_list'
    %} else {
        %= include 'partials/_ln_list'
    %}

</div>

%end
