110 lines
2.7 KiB
Plaintext
Raw Permalink Normal View History

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