mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
firewall: Don't show rule activation checkbox when creating a rule.
Almost certainly, the user wants the new rule to be active when it is created. We should put as few input elements as possible on the rule creation page.
This commit is contained in:
@@ -1917,9 +1917,34 @@ END
|
||||
}
|
||||
|
||||
print<<END;
|
||||
</table><table width='100%'>
|
||||
<tr><td width='1%'><input type='checkbox' name='ACTIVE' value='ON' $checked{'ACTIVE'}{'ON'}></td><td>$Lang::tr{'fwdfw rule activate'}</td></tr>
|
||||
<tr><td width='1%'><input type='checkbox' name='LOG' value='ON' $checked{'LOG'}{'ON'} ></td><td>$Lang::tr{'fwdfw log rule'}</td></tr>
|
||||
</table>
|
||||
<table width='100%'>
|
||||
<tr>
|
||||
END
|
||||
|
||||
if ($fwdfwsettings{'updatefwrule'} eq 'on') {
|
||||
print <<END;
|
||||
<td>
|
||||
<input type='checkbox' name='ACTIVE' $checked{'ACTIVE'}{'ON'}>
|
||||
</td>
|
||||
<td>$Lang::tr{'fwdfw rule activate'}</td>
|
||||
END
|
||||
} else {
|
||||
print <<END;
|
||||
<td colspan="2">
|
||||
<input type="hidden" name="ACTIVE" value="ON">
|
||||
</td>
|
||||
END
|
||||
}
|
||||
|
||||
print <<END;
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type='checkbox' name='LOG' value='ON' $checked{'LOG'}{'ON'}>
|
||||
</td>
|
||||
<td>$Lang::tr{'fwdfw log rule'}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='1%'>
|
||||
<input type='checkbox' name='TIME' id="USE_TIME_CONSTRAINTS" value='ON' $checked{'TIME'}{'ON'}>
|
||||
|
||||
Reference in New Issue
Block a user