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

% content_for 'module' => begin

<div class="card-body">

    %if (config->{debug} == 1) {
    <p>(DBG)route: <%= $c->current_route %><br>
    (DBG)FsS stat: <%= $clm_datas->{FilesystemScan}%> <br>
    (DBG)Quar stat: <%=$clm_datas->{Quarantine} %>
    </p>
    %}
    <h1><%= $title %></h1>
    <br>
    <%= $modul %>
    <%  my $btn = l('SAVE'); %>

    %= form_for 'clamav' => (method => 'POST') => begin
    <p>
        <span class="">
        %=l 'clm_LABEL_FILESYSTEM_SCAN_PERIOD'
        </span>
        <span class="">
        % param 'FilesystemScan' => $clm_datas->{FilesystemScan} unless param 'FilesystemScan';
        %= select_field 'FilesystemScan' =>  [[ (l 'clm_DAILY') => 'daily'], [ (l 'clm_NEVER') => 'disabled'], [ (l 'clm_WEEKLY') => 'weekly']], class => ""
        </span>
    </p>
    <p>
        <span class="">
        %=l 'clm_LABEL_QUARANTINE'
        </span>
        <span class="">
        % param 'Quarantine' => $clm_datas->{Quarantine} unless param 'Quarantine';
        %= select_field 'Quarantine' => [[ (l 'ENABLED') => 'enabled'], [ (l 'DISABLED') => 'disabled']], class => ""
        <br>
        </span>
    </p>
    <p>
        <span class="">
        %=l 'clm_LABEL_CLAM_VERSIONS'
        </span>
        <span class="">
        %= $clm_datas->{clam_versions}
        <br>
        </span>
    </p>
    %= submit_button "$btn", class => ""
    % end
</div>
%end
