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:
Michael Tremer
2013-10-17 17:58:45 +02:00
parent ba338177a0
commit d8d7dd3bd8

View File

@@ -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'}>