<div>

    % my $btn = l('REMOVE');
    % my $deletehosts = $ln_datas->{deletehosts};
    % my $subnet = $ln_datas->{subnet};
    % my $router = $ln_datas->{router};

   % if (config->{debug} == 1) {
    <pre>
        <%= dumper $c->current_route %>
        <%= dumper $c->stash("ret") %>
        <%= dumper %$ln_datas %>
        <%= dumper $deletehosts %>
    </pre>
    % }

    <form action="/smanager/localnetworkse" method="POST">

        <div>
            <h2><%= l "ln_REMOVE_TITLE" %></h2>
        </div>

        <div>
            <%= l "ln_REMOVE_DESC" %>
        </div>

        <br><br>

        <div class="row g-3 align-items-center">
            <div class="col-md-1">
              <label for="inputNetwork" class="col-form-label"><%= l "NETWORK" %></label>
            </div>
            <div class="col-auto">
              <input disabled type="text" name="networkAddress" id="inputNetwork" class="form-control" aria-describedby="inputNetwork" value="<%= $localnetwork %>" >
            </div>
        </div>

        <br>

        <div class="row g-3 align-items-center">
            <div class="col-md-1">
              <label for="inputNetworkMask" class="col-form-label"><%= l "ln_SUBNET_MASK" %></label>
            </div>
            <div class="col-auto">
              <input disabled type="text" name="networkMask" id="inputNetworkMask" class="form-control" aria-describedby="inputNetworkMask" value="<%= $subnet %>" >
            </div>
        </div>

        <br>

        <div class="row g-3 align-items-center">
            <div class="col-md-1">
              <label for="inputNetworkRouter" class="col-form-label"><%= l "ROUTER" %></label>
            </div>
            <div class="col-auto">
              <input disabled type="text" name="networkRouter" id="inputNetworkRouter" class="form-control" aria-describedby="inputNetworkRouter" value="<%= $router %>">
            </div>
        </div>

        <br>

        % if ($deletehosts) {
            <br>

            <div>
                <%= $c->l("ln_REMOVE_HOSTS_DESC") %>
            </div>
            <br>
            <div class="text-danger align-bottom">
                <%= $c->l("ln_REMOVE_HOSTS_LABEL") %>&nbsp&nbsp<input type="checkbox" name="deletehost">
            </div>
            <br><br>
        % }

        <%= hidden_field localnetwork=>$localnetwork %>

        <div class="row g-3 align-items-center">
            <div class="col-md-2">
                <button type="submit" class="btn btn-primary btn-sm"><%= $btn %></button>
            </div>
        </div>

    </form>

</div>
