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

% content_for 'module' => begin

<div class="card-body">

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

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

    % if ( $notif ) {
        <br>
        <div class="text-warn">
            <%= $notif %>
        </div>
        <br>
    % }

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

        <%= l 'yum_HEADER_INSTALLED_SOFTWARE' %>

        <br>

        % if ($c->non_empty('installed','group')) {

            <%=l 'yum_DESC_INSTALLED_GROUPS' %>

            <br><br>

            <div class="row g-3 align-items-center">
                <div class="col-md-1">
                    <%= l 'yum_LABEL_INSTALLED_GROUPS' %>
                </div>
                <div class="col-md-3">
                    %# param 'SelectedGroups' => $c->get_names2('updates','group') unless param 'SelectedGroups';
                    <%= select_field 'SelectedGroups' => $c->get_options2('installed', 'group'), class => "form-select", size => "10", multiple => "1" %>
                </div>
            </div>
        % }

        <br><br>

        % if ($c->non_empty('installed','packages')) {

            <%= l 'yum_DESC_INSTALLED_PACKAGES' %>

            <br><br>

            <div class="row g-3 align-items-center">
                <div class="col-md-1">
                    <%=l 'yum_LABEL_INSTALLED_PACKAGES' %>
                </div>
                <div class="col-md-3">
                    %# param 'SelectedPackages' => $c->get_names2('updates','package') unless param 'SelectedPackages';
                    %= select_field 'SelectedPackages' => $c->get_options2('installed', 'package'), class => "form-select", size => "10", multiple => "1"
                </div>
            </div>

        % }


        <!--subroutine src="print_skip_header()" /-->


        <br>
        <%=  hidden_field 'trt' => 'REMO' %>
        % my $btn = $c->l('REMOVE');

        <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

