%# %# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2025-01-20 12:01:10 %# % layout 'default', title => "Sme server 2 - NutUPS configuration", share_dir => './'; %# css specific to this panel: % content_for 'module' => begin %= stylesheet '/css/nutups.css'
% if ($config->{debug} == 1) {
		%= dumper $c->current_route
		%= dumper $nut_data->{trt}
	
% }

<%=$title%>

% if ( stash('modul')) { %= $c->render_to_string(inline => stash('modul') ); % } %if ($c->stash('first')) {

%=$c->render_to_string(inline =>$c->l($c->stash('first')))

%} elsif ($c->stash('success')) {

<%=$c->l('nut_Status_Report') %>

%= $c->l($c->stash('success'));

%} elsif ($c->stash('error')) {

<%=$c->l('nut_Error_Status_Report') %>

%= $c->l($c->stash('error'));

%} %#Routing to partials according to trt parameter. %#This ought to be cascading if/then/elsif, but is easier to just stack the if/then's rather like a case statement' % if ($nut_data->{trt} eq "STATUS") { %= include 'partials/_nut_STATUS' %} % if ($nut_data->{trt} eq "CONFIG") { %= include 'partials/_nut_CONFIG' %}
%end