11.0.0-42.sme Update Nut Letsenc Datetime

This commit is contained in:
John Crisp
2025-06-19 17:58:31 +02:00
parent 4d47e099a6
commit 4204273b79
21 changed files with 754 additions and 828 deletions

View File

@@ -1,5 +1,5 @@
%#
%# Generated by SM2Gen version:0.9(20Jan2025) Chameleon version:4.5.4 On Python:3.12.3 at 2025-01-20 16:21:33
%# Generated by SM2Gen version:0.9(20Jan2025) Chameleon version:4.5.4 On Python:3.12.3 at 2025-01-20 16:21:33
%#
% layout 'AdminLTE', title => "Sme server 2 - NutUPS configuration", share_dir => './';
%# css specific to this panel:
@@ -9,52 +9,59 @@
<div class="card-body">
% if (config->{debug} == 1) {
<pre>
%= dumper $c->current_route
%= dumper $nut_data->{trt}
</pre>
<pre>
%= dumper $c->current_route
%= dumper $nut_data->{trt}
</pre>
% }
<h1><%=$title%></h1>
% if ( stash('modul')) {
%= $c->render_to_string(inline => stash('modul') );
<%= $c->render_to_string(inline => stash('modul') ); %>
% }
%if ($c->stash('first')) {
<br><p>
%=$c->render_to_string(inline =>$c->l($c->stash('first')))
<%=$c->render_to_string(inline =>$c->l($c->stash('first'))) %>
</p>
%} elsif ($c->stash('success')) {
<div class="">
<h2><%=$c->l('nut_Status_Report') %></h2><p>
%= $c->l($c->stash('success'));
</p>
<div class="text-success">
<h2><%=$c->l('nut_Status_Report') %></h2>
<div>
<%= $c->l($c->stash('success')); %>
</div>
</div>
<br />
<br>
%} elsif ($c->stash('error')) {
<div class="">
<h2><%=$c->l('nut_Error_Status_Report') %></h2><p>
%= $c->l($c->stash('error'));
</p>
%} elsif ($c->stash('error')) {
<div class="text-danger">
<h2><%=$c->l('nut_Error_Status_Report') %></h2>
<div>
<%= $c->l($c->stash('error')); %>
</div>
</div>
<br />
<br>
%}
%#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'
<br>
% if ($nut_data->{trt} eq "STATUS") {
%= include 'partials/_nut_STATUS'
<%= include 'partials/_nut_STATUS' %>
%}
<br>
% if ($nut_data->{trt} eq "CONFIG") {
%= include 'partials/_nut_CONFIG'
<%= include 'partials/_nut_CONFIG' %>
%}
</div>
%end