summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authork-paulius <k.dash.paulius@gmail.com>2016-02-14 21:07:15 -0600
committerk-paulius <k.dash.paulius@gmail.com>2016-02-14 21:07:15 -0600
commita328bc5ffcd970b00420176de50ba37a1452ee17 (patch)
tree9018b0fff15123661674454a89250a05c1706c74
parentf9f86b7fe05a91c8820bc6d38f37f003b1591593 (diff)
downloadpfsense-a328bc5ffcd970b00420176de50ba37a1452ee17.zip
pfsense-a328bc5ffcd970b00420176de50ba37a1452ee17.tar.gz
Fix when "No Captive Portal zones" message is displayed and do not display it inside the panel.
-rw-r--r--src/usr/local/www/status_captiveportal.php15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/usr/local/www/status_captiveportal.php b/src/usr/local/www/status_captiveportal.php
index fcd6152..7ec135e 100644
--- a/src/usr/local/www/status_captiveportal.php
+++ b/src/usr/local/www/status_captiveportal.php
@@ -257,17 +257,10 @@ if (!empty($cpzone)): ?>
</div>
<?php
else:
- // If no zones have been defined . .
-?>
-<div class="panel panel-default">
- <div class="panel-heading"><h2 class="panel-title"><?=gettext("Captive Portal Status")?></h2></div>
- <div class="panel-body"><br />
-<?php
- print_info_box(sprintf(gettext('No captive portal zones have been configured. You may add new zones here: %1$sServices->Captive Portal%2$s.'), '<a href="services_captiveportal_zones.php">', '</a>'));
-?>
- </div>
-</div>
-<?php
+ if (empty($a_cp)) {
+ // If no zones have been defined
+ print_info_box(sprintf(gettext('No Captive Portal zones have been configured. You may add new zones here: %1$sServices > Captive Portal%2$s.'), '<a href="services_captiveportal_zones.php">', '</a>'), 'warning', false);
+ }
endif;
?>
OpenPOWER on IntegriCloud