mirror of https://github.com/aredn/aredn.git
modify the adv config layout (#247)
This commit is contained in:
parent
4a50ee2382
commit
750cba55a7
|
@ -169,7 +169,7 @@ print <<EOF;
|
||||||
<tr>
|
<tr>
|
||||||
<th>Help<br><small>(hover)</small></th>
|
<th>Help<br><small>(hover)</small></th>
|
||||||
<th>Config Setting</th>
|
<th>Config Setting</th>
|
||||||
<th>Current/New Value</th>
|
<th>Value</th>
|
||||||
<th>Actions</th>
|
<th>Actions</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -186,14 +186,12 @@ foreach(@setting)
|
||||||
<td>$sconfig</td>
|
<td>$sconfig</td>
|
||||||
<td>
|
<td>
|
||||||
EOF
|
EOF
|
||||||
print "$sval" if($setting[$scount]->{'type'} eq "string");
|
|
||||||
print "ON" if($setting[$scount]->{'type'} eq "boolean" and $sval);
|
print "<input type='text' id='field_$scount' name='newval_$scount' size='65' value='$sval'>" if($setting[$scount]->{'type'} eq "string");
|
||||||
print "OFF" if($setting[$scount]->{'type'} eq "boolean" and !$sval);
|
print "<input type='checkbox' id='field_$scount' name='newval_$scount' value='1' checked >" if($setting[$scount]->{'type'} eq "boolean" and $sval );
|
||||||
|
print "<input type='checkbox' id='field_$scount' name='newval_$scount' value='1'>" if($setting[$scount]->{'type'} eq "boolean" and !$sval );
|
||||||
print "<br />";
|
print " ON" if($setting[$scount]->{'type'} eq "boolean" and $sval);
|
||||||
|
print " OFF" if($setting[$scount]->{'type'} eq "boolean" and !$sval);
|
||||||
print "<input type='text' id='field_$scount' name='newval_$scount' size='65'>" if($setting[$scount]->{'type'} eq "string");
|
|
||||||
print "<input type='checkbox' id='field_$scount' name='newval_$scount' value='1' >" if($setting[$scount]->{'type'} eq "boolean");
|
|
||||||
|
|
||||||
print <<EOF;
|
print <<EOF;
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Reference in New Issue