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

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


    <h2><%=l 'bac_WORKSTN_SELECTIVE_RESTORE' %></h2>
    <br>

    %= $c->render_to_string(inline => (l 'bac_READ_COMPLETE'))

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

    <br><span class="">
    %=l 'bac_SELECT_FILES_TO_RESTORE'
    </span>
    <span class="">
    %= select_field 'Restorefiles' => $c->get_Restorefiles_options($bac_datas->{'filterexp'},$bac_datas->{'backupset'}), class => "", multiple => 1, size => 15
    </span>
    <br>
    <br>
    <span class="">
    %=l 'bac_SELECT_DATE_BEFORE'
    </span>
    <span class="">
    %= text_field 'Seldatebefore', size => 32, class => ""
    </span>
    <br>
    <br>
    %= hidden_field 'Function' => $bac_datas->{'function'}
    %= hidden_field 'Backupset' => $bac_datas->{'backupset'}
    %= hidden_field 'Filterexp' => $bac_datas->{'filterexp'}

    %= submit_button $c->l('PERFORM'), class => ""

    % end

</div>
% end