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

% content_for 'module' => begin

<%=  dumper $c->current_route %>

<div class="card-body">

    % if (config->{debug} == 1) {
        <pre>
            <%=  dumper $c->current_route %>
        </pre>
    % }

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

    <br>

    <%= $modul %>

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

        <div class="col-md-6">
            <%= $c->render_to_string(inline => $c->l('rbo_DESCRIPTION')) %>
        </div>

        <br>

        <div class="row g-3 align-items-center">
            <div class="col-md-2">
                <%= l 'rbo_LABEL_REBOOT' %>
            </div>
            <div class="col-auto">
                <%= select_field 'function' => $c->rebootFunction_list(), class => "form-select"  %>
             </div>
        </div>

        <br>

        % my $btn = l('PERFORM');
        <%= hidden_field 'debug' => '0' %>

        <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>
%end