smeserver-manager-panels/root/usr/share/smanager/themes/default/templates/yumconfig.html.ep

91 lines
2.6 KiB
Plaintext
Raw Normal View History

% layout 'default', title => "Sme server 2 - yum_config";
% content_for 'module' => begin
<div id='module' class='module yumconfig-panel'>
% if ($config->{debug} == 1) {
<p>
%= dumper $c->current_route
%= dumper $yum_datas
</p>
% }
<h1><%= $title%></h1>
% if ( $notif ) {
<br><div class=sme-error>
%= $notif
</div>
%}
%= form_for 'yumd' => (method => 'POST') => begin
<p><span class=label>
%=l 'yum_LABEL_YUM_STATUS'
</span><span class=data>
% 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=label>
%=l 'yum_LABEL_YUM_PACKAGEFUNCTIONS'
</span><span class=data>
% 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=label>
%=l 'yum_LABEL_ENABLED_REPOSITORIES'
</span><span class=data>
% param 'SelectedRepositories' => $c->get_repository_current_options() unless param 'SelectedRepositories';
%= select_field 'SelectedRepositories' => $c->get_repository_options2(), class => 'input', multiple => '1'
</span></p>
<br>
%=l 'yum_DESC_YUM_DELTARPMPROCESS'
<p><span class=label>
%=l 'yum_LABEL_YUM_DELTARPMPROCESS'
</span><span class=data>
% 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=label>
%=l 'yum_LABEL_YUM_DOWNLOADONLY'
</span><span class=data>
% 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=label>
%=l 'yum_LABEL_YUM_AUTOINSTALLUPDATES'
</span><span class=data>
% 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='center'>
%= submit_button $c->l('SAVE'), class => 'action'
</div>
% end
</div>
% end