Get config panel working for nutups
This commit is contained in:
@@ -85,16 +85,16 @@
|
||||
<p><span class=label>
|
||||
%=l('nut_UPS_Model')
|
||||
</span><span class=data>
|
||||
% my @UPS_Model_options = ;
|
||||
% my @UPS_Model_options = $c->get_model_options();
|
||||
% param 'UPS_Model' => $nut_data->{UPS_Model} unless param 'UPS_Model';
|
||||
%= select_field 'UPS_Model' => @UPS_Model_options, class => 'input', id => 'UPS_Model_select'
|
||||
%= select_field 'UPS_Model' => \@UPS_Model_options, class => 'input', id => 'UPS_Model_select'
|
||||
<br></span> </p>
|
||||
|
||||
<p><span class=label>
|
||||
%=l('nut_UPS_Device')
|
||||
</span><span class=data>
|
||||
% 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'
|
||||
%= text_field 'UPS_Device', size => '50', class => 'textinput UPS_Device' , pattern=>'.*' , placeholder=>'auto (for usb)'
|
||||
<br></span></p>
|
||||
|
||||
<div class=generics>
|
||||
@@ -122,12 +122,13 @@
|
||||
% 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'
|
||||
<br></span></p>
|
||||
|
||||
</div>
|
||||
|
||||
<span class='data'>
|
||||
%= submit_button l('nut_Save'), class => 'action subm12'
|
||||
</span>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
%# Probably finally by a submit.
|
||||
|
Reference in New Issue
Block a user