summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_rules.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-05-11 21:57:02 +0545
committerPhil Davis <phil.davis@inf.org>2015-05-11 21:57:02 +0545
commit0c4690444107bef9e2d5dc1f85e8ab6d48abcb88 (patch)
tree20a04167185b7cee27d9e0b175f24712736626d1 /usr/local/www/firewall_rules.php
parenta9741c0cea7f11926dd9ec0a0809e42c07b2f44b (diff)
downloadpfsense-0c4690444107bef9e2d5dc1f85e8ab6d48abcb88.zip
pfsense-0c4690444107bef9e2d5dc1f85e8ab6d48abcb88.tar.gz
Handle extra column on floating rules tab
when there are no floating rules to display. The box needs to span 11 columns.
Diffstat (limited to 'usr/local/www/firewall_rules.php')
-rw-r--r--usr/local/www/firewall_rules.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr/local/www/firewall_rules.php b/usr/local/www/firewall_rules.php
index 565abb0..f66ac10 100644
--- a/usr/local/www/firewall_rules.php
+++ b/usr/local/www/firewall_rules.php
@@ -817,7 +817,14 @@ include("head.inc");
<tr>
<td class="listt"></td>
<td class="listt"></td>
- <td class="listlr" colspan="10" align="center" valign="middle">
+ <?php
+ if ($_REQUEST['if'] == "FloatingRules") {
+ $ncolumns = "11";
+ } else {
+ $ncolumns = "10";
+ }
+ ?>
+ <td class="listlr" colspan=<?=$ncolumns;?> align="center" valign="middle">
<span class="gray">
<?php if ($_REQUEST['if'] == "FloatingRules"): ?>
<?=gettext("No floating rules are currently defined."); ?><br /><br />
OpenPOWER on IntegriCloud