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

100 lines
2.1 KiB
Plaintext

% layout 'default', title => "Sme server 2 - yum";
% 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><span class="">
%= $notif
</span>
%}
% if ( $c->is_empty('updates') ) {
<br><div class=""><h2>
%=l 'yum_TITLE_UPTODATE'
</h2>
%=l 'yum_DESC_UPTODATE'
</div><br>
%}
% if ( $c->non_empty('updates') ) {
<br><div class=""><h2>
%=l 'yum_TITLE_UPDATES_AVAILABLE'
</h2>
%=l 'yum_DESC_UPDATES_AVAILABLE'
</div><br>
%= form_for 'yum' => (method => 'POST') => begin
%= hidden_field 'trt' => 'UPDT'
%= submit_button $c->l('yum_BUTTON_INSTALL_UPDATES'), class => ""
% end
%}
% if ( $c->non_empty('available') ) {
%= form_for 'yum' => (method => 'POST') => begin
<br>
%= hidden_field 'trt' => 'INST'
%= submit_button $c->l('yum_BUTTON_INSTALL_AVAILABLE'), class => ""
% end
%}
% if ( $c->non_empty('installed') ) {
%= form_for 'yum' => (method => 'POST') => begin
<br>
%= hidden_field 'trt' => 'REMO'
%= submit_button $c->l('yum_BUTTON_REMOVE'), class => ""
% end
%}
<!--<br><hr class=""><br>-->
%= form_for 'yum' => (method => 'POST') => begin
<p><span class="">
%=l 'yum_LABEL_YUM_STATUS'
</span><span class="">
%= $c->get_status('status', 'localise')
</span></p>
<p><span class="">
%=l 'yum_LABEL_YUM_PACKAGEFUNCTIONS'
</span><span class="">
%= $c->get_status('PackageFunctions', 'localise')
</span></p>
<p><span class="">
%=l 'yum_LABEL_YUM_DELTARPMPROCESS'
</span><span class="">
%= $c->get_status('DeltaRpmProcess', 'localise')
</span></p>
<p><span class="">
%=l 'yum_LABEL_YUM_DOWNLOADONLY'
</span><span class="">
%= $c->get_status('DownloadOnly', 'localise')
</span></p>
<p><span class="">
%=l 'yum_LABEL_YUM_AUTOINSTALLUPDATES'
</span><span class="">
%= $c->get_status('AutoInstallUpdates', 'localise')
</span></p>
%= hidden_field 'trt' => 'CONF'
<br>
%= submit_button $c->l('yum_BUTTON_CONFIGURATION'), class => ""
% end
</div>
% end