summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2016-01-25 14:06:21 -0500
committerStephen Beaver <sbeaver@netgate.com>2016-01-25 14:06:21 -0500
commita85fcfdb3eae56aa096b514ed7fc415a21bc6beb (patch)
tree098ae4d9e6033fee8fa17ec84ff0e72c2816066c /src
parent4db1f21109ec4774fb8a8ceed5cc70e07af2352f (diff)
downloadpfsense-a85fcfdb3eae56aa096b514ed7fc415a21bc6beb.zip
pfsense-a85fcfdb3eae56aa096b514ed7fc415a21bc6beb.tar.gz
Added some some comments to hte print_info_box area so package developers will know what happeded
Diffstat (limited to 'src')
-rw-r--r--src/usr/local/www/guiconfig.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/usr/local/www/guiconfig.inc b/src/usr/local/www/guiconfig.inc
index feb2c1d..2a55405 100644
--- a/src/usr/local/www/guiconfig.inc
+++ b/src/usr/local/www/guiconfig.inc
@@ -307,6 +307,11 @@ function verify_gzip_file($fname) {
}
}
+// print_info_box() has been updated so that any required button is explicitly created, rather than relying on the detection of certain
+// strings in the message (such as "apply"). print_info_box_np() has been exterminated
+// $class = the botstrap style class (default, info, warning, success, danger)
+// $btnname and btntext describe the optional button and its display text
+// Note that there is a shortcut function 26 lines south of here that creats a standard "apply" box for you. In may cases just substitute that for print_info_box_np()
function print_info_box($msg, $class="alert-warning", $btnname = "close", $btntext = "") {
if (strpos($class, "alert-") !== 0) {
OpenPOWER on IntegriCloud