mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
firewall.cgi: Fix colouring of the rule actions
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -1987,41 +1987,28 @@ END
|
||||
&Header::closebox;
|
||||
$checked{"RULE_ACTION"}{$fwdfwsettings{'RULE_ACTION'}} = 'CHECKED';
|
||||
print <<END;
|
||||
<center>
|
||||
<table width="80%" class='tbl' id='actions'>
|
||||
<tr>
|
||||
<td width="33%" align="center" bgcolor="$color{'color17'}">
|
||||
<br>
|
||||
</td>
|
||||
<td width="33%" align="center" bgcolor="$color{'color25'}">
|
||||
<br>
|
||||
</td>
|
||||
<td width="33%" align="center" bgcolor="$color{'color16'}">
|
||||
<br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="33%" align="center">
|
||||
<label>
|
||||
<input type="radio" name="RULE_ACTION" value="ACCEPT" $checked{"RULE_ACTION"}{"ACCEPT"}>
|
||||
<strong>$Lang::tr{'fwdfw ACCEPT'}</strong>
|
||||
</label>
|
||||
</td>
|
||||
<td width="33%" align="center">
|
||||
<label>
|
||||
<input type="radio" name="RULE_ACTION" value="DROP" $checked{"RULE_ACTION"}{"DROP"}>
|
||||
<strong>$Lang::tr{'fwdfw DROP'}</strong>
|
||||
</label>
|
||||
</td>
|
||||
<td width="33%" align="center">
|
||||
<label>
|
||||
<input type="radio" name="RULE_ACTION" value="REJECT" $checked{"RULE_ACTION"}{"REJECT"}>
|
||||
<strong>$Lang::tr{'fwdfw REJECT'}</strong>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
<table class='tbl' id='actions'>
|
||||
<tr>
|
||||
<td width="33%" class="policy is-allowed">
|
||||
<label>
|
||||
<input type="radio" name="RULE_ACTION" value="ACCEPT" $checked{"RULE_ACTION"}{"ACCEPT"}>
|
||||
<strong>$Lang::tr{'fwdfw ACCEPT'}</strong>
|
||||
</label>
|
||||
</td>
|
||||
<td width="33%" class="policy is-blocked">
|
||||
<label>
|
||||
<input type="radio" name="RULE_ACTION" value="DROP" $checked{"RULE_ACTION"}{"DROP"}>
|
||||
<strong>$Lang::tr{'fwdfw DROP'}</strong>
|
||||
</label>
|
||||
</td>
|
||||
<td width="33%" class="policy is-rejected">
|
||||
<label>
|
||||
<input type="radio" name="RULE_ACTION" value="REJECT" $checked{"RULE_ACTION"}{"REJECT"}>
|
||||
<strong>$Lang::tr{'fwdfw REJECT'}</strong>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
END
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
--color-blue-invert : #ffffff;
|
||||
--color-orange : #ff9933;
|
||||
--color-orange-invert : #ffffff;
|
||||
--color-black : #000000;
|
||||
--color-black-invert : #ffffff;
|
||||
--color-grey : #d6d6d6;
|
||||
--color-light-grey : #f0f0f0;
|
||||
|
||||
@@ -458,11 +460,16 @@ table {
|
||||
color: var(--color-red-invert);
|
||||
}
|
||||
|
||||
.tbl .policy.is-allowed{
|
||||
.tbl .policy.is-allowed {
|
||||
background-color: var(--color-green);
|
||||
color: var(--color-green-invert);
|
||||
}
|
||||
|
||||
.tbl .policy.is-rejected {
|
||||
background-color: var(--color-black);
|
||||
color: var(--color-black-invert);
|
||||
}
|
||||
|
||||
/* Notes */
|
||||
|
||||
.notes .is-warning {
|
||||
|
||||
Reference in New Issue
Block a user