Edit template for controller - Refine params copy and bring DB opens up to spec with UTF8
This commit is contained in:
83
output/Nutups/default/_nut_STATUS.html.new.ep
Normal file
83
output/Nutups/default/_nut_STATUS.html.new.ep
Normal file
@@ -0,0 +1,83 @@
|
||||
%#
|
||||
%# Generated by SM2Gen version:0.9(20Jan2025) Chameleon version:4.5.4 On Python:3.12.3 at 2025-01-20 16:21:33
|
||||
%#
|
||||
<div id="Nutups-STATUS" class="partial Nutups-STATUS">
|
||||
<script>
|
||||
window.onload = function() {
|
||||
SelectInput();
|
||||
};
|
||||
</script>
|
||||
% if (config->{debug} == 1) {
|
||||
<pre>
|
||||
%= dumper $nut_data
|
||||
</pre>
|
||||
% }
|
||||
% my $btn = l("Apply");
|
||||
%= form_for "nutupsu" => (method => "POST") => begin
|
||||
% param "trt" => $nut_data->{trt} unless param "trt";
|
||||
%= hidden_field "trt" => $nut_data->{trt}
|
||||
%# Inputs etc in here.
|
||||
|
||||
<div class=inline-buttons>
|
||||
|
||||
|
||||
<a href="nutupsd?trt=CONFIG" class="link link1">
|
||||
%= l("nut_Configure_NutUPS")
|
||||
</a>
|
||||
%#= link_to l("nut_Configure_NutUPS"), "nutupsd?trt=CONFIG" , class=>"link link1"
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<h2 class="subh1"><%=l("nut_Status_of_the_controlled_UPS")%></h2>
|
||||
|
||||
<p class="paragraph para1">
|
||||
%=l("nut_Descriptive_paragraph")
|
||||
</p>
|
||||
<br />
|
||||
|
||||
|
||||
<!--
|
||||
<span class=label>
|
||||
%=l("nut_Status_(from_upsc)")
|
||||
</span><span class=data>
|
||||
% param "UPSStatus" => $nut_data->{UPSStatus} unless param "UPSStatus";
|
||||
%= text_area "UPSStatus", cols=>55, rows=>35, Readonly=>"true"
|
||||
</span><br>
|
||||
-->
|
||||
|
||||
<span class=label>
|
||||
%=l("nut_Nut_mode")
|
||||
</span><span class=data>
|
||||
%= $nut_data->{Nutmode}
|
||||
</span><br>
|
||||
|
||||
% if ($nut_data->{Nutmode} eq "nutserver") {
|
||||
<div class=secondaryups>
|
||||
<p><span class=label>
|
||||
%=l("nut_MasterUPS_UPSNAME@IP")
|
||||
</span><span class=data>
|
||||
% param "MasterUPS_Name" => $nut_data->{MasterUPS_Name} unless param "MasterUPS_Name";
|
||||
%= "ups@". $nut_data->{"localip"}
|
||||
<br></span></p>
|
||||
|
||||
<p><span class="label">
|
||||
%=l("nut_SlaveUPS_User")
|
||||
</span><span class=data>
|
||||
%= "upssecondary"
|
||||
</span></p>
|
||||
|
||||
<p><span class="label">
|
||||
%=l("nut_SlaveUPS_Password")
|
||||
</span><span class=data>
|
||||
<%= $nut_data->{"SlaveUPS_Pass"}%>
|
||||
</span></p>
|
||||
</div>
|
||||
% }
|
||||
|
||||
%= include "partials/_nut_UPS_STATUS"
|
||||
|
||||
%# Probably finally by a submit.
|
||||
%end
|
||||
</div>
|
Reference in New Issue
Block a user