mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-17 14:33:00 +02:00
firewall: Predefine value for checkboxes.
It turns out, that this is not good style, but as the rest of the CGI depends on it, we need to stick with this.
This commit is contained in:
@@ -1657,7 +1657,7 @@ END
|
||||
&Header::openbox('100%', 'left', 'NAT');
|
||||
print<<END;
|
||||
<label>
|
||||
<input type='checkbox' name='USE_NAT' id='USE_NAT' $checked{'USE_NAT'}{'ON'}>
|
||||
<input type='checkbox' name='USE_NAT' id='USE_NAT' value="ON" $checked{'USE_NAT'}{'ON'}>
|
||||
$Lang::tr{'fwdfw use nat'}
|
||||
</label>
|
||||
<div class="NAT">
|
||||
@@ -1960,7 +1960,7 @@ END
|
||||
if ($fwdfwsettings{'updatefwrule'} eq 'on') {
|
||||
print <<END;
|
||||
<td>
|
||||
<input type='checkbox' name='ACTIVE' $checked{'ACTIVE'}{'ON'}>
|
||||
<input type='checkbox' name='ACTIVE' value="ON" $checked{'ACTIVE'}{'ON'}>
|
||||
</td>
|
||||
<td>$Lang::tr{'fwdfw rule activate'}</td>
|
||||
END
|
||||
|
||||
Reference in New Issue
Block a user