From c7dc45ccb57e0cac68ab24fa6422cd199ef027a2 Mon Sep 17 00:00:00 2001
From: Brian Read
+ %=l('nut_Nut_status')
+
+ % my @status_options = [['Disabled' => 'disabled'], ['Enabled' => 'enabled']];
+ % param 'status' => $nut_data->{status} unless param 'status';
+ %= select_field 'status' => @status_options, class => 'input'
+
+ %=l('nut_Nut_mode')
+
+ % my @Nutmode_options = [['Standalone' => 'standalone'], ['Net Server' => 'netserver'], ['Net Client ' => 'netclient']];
+ % param 'Nutmode' => $nut_data->{Nutmode} unless param 'Nutmode';
+ %= select_field 'Nutmode' => @Nutmode_options, class => 'input'
+
+ %=l('nut_SlaveUPS_UPSNAME@IP')
+
+ % param 'SlaveUPS_Name' => $nut_data->{SlaveUPS_Name} unless param 'SlaveUPS_Name';
+ %= text_field 'SlaveUPS_Name', size => '50', class => 'textinput SlaveUPS_Name' , pattern=>'.*' , placeholder=>'SlaveUPS_Name'
+
+ %=l('nut_SlaveUPS_Password')
+
+ % param 'SlaveUPS_Password' => $nut_data->{SlaveUPS_Password} unless param 'SlaveUPS_Password';
+ %=password_field 'SlaveUPS_Password', class => 'pass4 sme-password'
+ span>
+ %=l('nut_UPS_Model')
+
+ % param 'UPS_Model' => $nut_data->{UPS_Model} unless param 'UPS_Model';
+ %= text_field 'UPS_Model', size => '50', class => 'textinput UPS_Model' , pattern=>'.*' , placeholder=>'UPS_Model'
+
+ %=l('nut_UPS_Device')
+
+ % param 'UPS_Device' => $nut_data->{UPS_Device} unless param 'UPS_Device';
+ %= text_field 'UPS_Device', size => '50', class => 'textinput UPS_Device' , pattern=>'.*' , placeholder=>'UPS_Device'
+
+ %=l('nut_UPS_Generic_Type')
+
+ % param 'UPS_gen_Type' => $nut_data->{UPS_gen_Type} unless param 'UPS_gen_Type';
+ %= text_field 'UPS_gen_Type', size => '50', class => 'textinput UPS_gen_Type' , pattern=>'.*' , placeholder=>'UPS_gen_Type'
+
+ %=l('nut_UPS_Generic_Manufacturer')
+
+ % param 'UPS_gen_Mfr' => $nut_data->{UPS_gen_Mfr} unless param 'UPS_gen_Mfr';
+ %= text_field 'UPS_gen_Mfr', size => '50', class => 'textinput UPS_gen_Mfr' , pattern=>'.*' , placeholder=>'UPS_gen_Mfr'
+
+ %=l('nut_UPS_Generic_Model')
+
+ % param 'UPS_gen_Model' => $nut_data->{UPS_gen_Model} unless param 'UPS_gen_Model';
+ %= text_field 'UPS_gen_Model', size => '50', class => 'textinput UPS_gen_Model' , pattern=>'.*' , placeholder=>'UPS_gen_Model'
+
+ %=l('nut_Descriptive_paragraph')
+
+ %=$c->render_to_string(inline =>$c->l($c->stash('first')))
+
+ %= $c->l($c->stash('success'));
+
+ %= $c->l($c->stash('error'));
+
+ %= dumper $nut_data
+
+ % }
+ % my $btn = l('nut_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.
+
+ <%=l('nut_Manage_Nutups-config_settings:')%>
+
+
<%=l('nut_if_Net_Client')%>
+
+ <%=l('nut_if_genericups')%>
+
+
+ %= dumper $nut_data
+
+ % }
+ % my $btn = l('nut_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.
+
+
+
+
+ <%=l('nut_Status_of_the_controlled_UPS')%>
+
+
+
+ %# Probably finally by a submit.
+ %end
+
+ %= dumper $c->current_route
+ %= dumper $nut_data->{trt}
+
+ % }
+
+ <%=$title%>
+
+ % if ( stash('modul')) {
+ %= $c->render_to_string(inline => stash('modul') );
+ % }
+
+ %if ($c->stash('first')) {
+ <%=$c->l('nut_Status_Report') %>
<%=$c->l('nut_Error_Status_Report') %>