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

% content_for 'module' => begin

<div class="card-body">

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

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

    % if ( $notif ) {
    <br>
    <div>
    %= $notif
    </div>
    %}

    <br>
    <div>
    <% my $btn = l('NEXT'); %>
    %= $c->render_to_string( inline => l 'yum_UPDATE_SUCCESS' )
    % if ( $yum_datas->{reconf} eq 'yes' ) {
    %= $c->render_to_string( inline => l 'yum_HEADER_POSTUPGRADE_REQUIRED' )
    <% $btn = l('RECONFIGURE'); %>
    % }
    </div>
    <br>

    %= form_for 'yumd' => (method => 'POST') => begin

    <%= $c->render_to_string(inline => $c->show_yum_log()) %>

        %=  hidden_field 'trt' => 'PSTU'
        %=  hidden_field 'reconf' => $yum_datas->{reconf}
    <br>
    <!-- <div class="">-->
    %= submit_button "$btn", class => ""
    <!--</div>-->

    % end

</div>

% end
