summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www
diff options
context:
space:
mode:
authork-paulius <k.dash.paulius@gmail.com>2016-02-14 21:59:20 -0600
committerk-paulius <k.dash.paulius@gmail.com>2016-02-14 21:59:20 -0600
commit067c53d5e8d194977b062b665e0f8df2fb1087ba (patch)
tree9c1c5e1e9006aae7274d9b1be2bd6df71fcbf668 /src/usr/local/www
parentd2d4c23eb88975f2eece5a4b76c2ae3b9f8f8a44 (diff)
downloadpfsense-067c53d5e8d194977b062b665e0f8df2fb1087ba.zip
pfsense-067c53d5e8d194977b062b665e0f8df2fb1087ba.tar.gz
Change form submit button text to 'Test'. Use alert box classes instead of text color to indicate success or failure.
Diffstat (limited to 'src/usr/local/www')
-rw-r--r--src/usr/local/www/status_captiveportal_test.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/usr/local/www/status_captiveportal_test.php b/src/usr/local/www/status_captiveportal_test.php
index b0cd714..eade69c 100644
--- a/src/usr/local/www/status_captiveportal_test.php
+++ b/src/usr/local/www/status_captiveportal_test.php
@@ -92,15 +92,16 @@ if ($_POST) {
if ($_POST['vouchers']) {
$test_results = voucher_auth($_POST['vouchers'], 1);
$output = "";
+ $class = 'warning';
foreach ($test_results as $result) {
+ $output .= htmlspecialchars($result) . '<br />';
+
if (strpos($result, " good ") || strpos($result, " granted ")) {
- $output .= '<span class="text-success">' . htmlspecialchars($result) . '</span>' . '<br />';
- } else {
- $output .= '<span class="text-danger">' . htmlspecialchars($result) . '</span>' . '<br />';
+ $class = 'success';
}
}
- print_info_box($output);
+ print_info_box($output, $class, false);
}
}
@@ -112,7 +113,7 @@ $tab_array[] = array(gettext("Test Vouchers"), true, "status_captiveportal_test.
$tab_array[] = array(gettext("Expire Vouchers"), false, "status_captiveportal_expire.php?zone={$cpzone}");
display_top_tabs($tab_array);
-$form = new Form;
+$form = new Form('Test');
$section = new Form_Section('Test Vouchers');
OpenPOWER on IntegriCloud