modify the adv config layout (#247)

This commit is contained in:
dman776 2018-10-26 00:27:15 -05:00 committed by GitHub
parent 4a50ee2382
commit 750cba55a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 9 deletions

View File

@ -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 "&nbsp;ON" if($setting[$scount]->{'type'} eq "boolean" and $sval);
print "&nbsp;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>