Brian Read 8a1922f932 * Tue Mar 25 2025 Brian Read <brianr@koozali.org> 0.1.4-4.sme
- New version for AdminLTE integration with no class or ids
2025-03-25 17:40:59 +00:00

91 lines
2.5 KiB
Plaintext

% layout 'default', title => "Sme server 2 - yum_config";
% content_for 'module' => begin
<div id="" class="">
% if (config->{debug} == 1) {
<p>
%= dumper $c->current_route
%= dumper $yum_datas
</p>
% }
<h1><%= $title%></h1>
% if ( $notif ) {
<br><div class="">
%= $notif
</div>
%}
%= form_for 'yumd' => (method => 'POST') => begin
<p><span class="">
%=l 'yum_LABEL_YUM_STATUS'
</span><span class="">
% param 'yum_check4updates' => $c->get_status('check4updates') unless param 'yum_check4updates';
%= select_field 'yum_check4updates' => $c->get_check_freq_opt()
</span></p>
<br>
%=l 'yum_DESC_YUM_PACKAGEFUNCTIONS'
<p><span class="">
%=l 'yum_LABEL_YUM_PACKAGEFUNCTIONS'
</span><span class="">
% param 'yum_PackageFunctions' => $c->get_status('PackageFunctions') unless param 'yum_PackageFunctions';
%= select_field 'yum_PackageFunctions' => [[ $c->l('DISABLED') => 'disabled'], [ $c->l('ENABLED') => 'enabled']]
</span></p>
<br>
%=l 'yum_DESC_ENABLED_REPOSITORIES'
<p><span class="">
%=l 'yum_LABEL_ENABLED_REPOSITORIES'
</span><span class="">
% param 'SelectedRepositories' => $c->get_repository_current_options() unless param 'SelectedRepositories';
%= select_field 'SelectedRepositories' => $c->get_repository_options2(), class => "", multiple => '1'
</span></p>
<br>
%=l 'yum_DESC_YUM_DELTARPMPROCESS'
<p><span class="">
%=l 'yum_LABEL_YUM_DELTARPMPROCESS'
</span><span class="">
% param 'yum_DeltaRpmProcess' => $c->get_status('DeltaRpmProcess') unless param 'yum_DeltaRpmProcess';
%= select_field 'yum_DeltaRpmProcess' => [[ $c->l('DISABLED') => 'disabled'], [ $c->l('ENABLED') => 'enabled']]
</span></p>
<br>
%=l 'yum_DESC_YUM_DOWNLOADONLY'
<p><span class="">
%=l 'yum_LABEL_YUM_DOWNLOADONLY'
</span><span class="">
% param 'yum_DownloadOnly' => $c->get_status('DownloadOnly') unless param 'yum_DownloadOnly';
%= select_field 'yum_DownloadOnly' => [[ $c->l('DISABLED') => 'disabled'], [ $c->l('ENABLED') => 'enabled']]
</span></p>
<br>
%=l 'yum_DESC_YUM_AUTOINSTALLUPDATES'
<p><span class="">
%=l 'yum_LABEL_YUM_AUTOINSTALLUPDATES'
</span><span class="">
% param 'yum_AutoInstallUpdates' => $c->get_status('AutoInstallUpdates') unless param 'yum_AutoInstallUpdates';
%= select_field 'yum_AutoInstallUpdates' => [[ $c->l('DISABLED') => 'disabled'], [ $c->l('ENABLED') => 'enabled']]
</span></p>
%= hidden_field 'trt' => 'CONF'
<br>
<!--<div class="">-->
%= submit_button $c->l('SAVE'), class => ""
<!--</div>-->
% end
</div>
% end