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

% content_for 'module' => begin

<div class="card-body">

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

    % if ( stash 'error' ) {
        <br><div class="">
        %= $c->render_to_string(inline => stash 'error') 
    </div>
    %}

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

    %= form_for '/backupd' => (method => 'POST') => begin

    <h2>
    %=l 'bac_WORKSTN_RESTORE'
    </h2>
    <p>
    %= $c->render_to_string(inline => $bac_datas->{restore_log})
    </p><p>
    %=l 'bac_YOU_MUST_REBOOT'
    </p>
    %= hidden_field 'Function' => $bac_datas->{'function'}
    %= submit_button $c->l('bac_REBOOT'), class => ""
    % end
</div>

% end