summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-01-26 08:20:44 -0200
committerRenato Botelho <renato@netgate.com>2016-01-26 08:20:44 -0200
commit1fc142fdd475606040dd49aa8177bb5533195c56 (patch)
treefb14a8a69a80e8051f6f9def8eed49f08e8c9927 /src
parent3951d342c7054a5be8622052df7d4802470434a7 (diff)
parent65e8424e53e88de5c2d74cc2d0cfb6f62898c596 (diff)
downloadpfsense-1fc142fdd475606040dd49aa8177bb5533195c56.zip
pfsense-1fc142fdd475606040dd49aa8177bb5533195c56.tar.gz
Merge pull request #2536 from phil-davis/patch-2
Diffstat (limited to 'src')
-rw-r--r--src/usr/local/www/guiconfig.inc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/usr/local/www/guiconfig.inc b/src/usr/local/www/guiconfig.inc
index 2a55405..175f540 100644
--- a/src/usr/local/www/guiconfig.inc
+++ b/src/usr/local/www/guiconfig.inc
@@ -308,10 +308,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()
+// strings in the message (such as "apply"). print_info_box_np() has been exterminated.
+// $class = the bootstrap style class (default, info, warning, success, danger)
+// $btnname and btntext describe the optional button and its display text, the default is an 'x' Close button.
+// Note that there is also a shortcut function print_apply_box here that creates a standard "apply" box for you.
+// In many cases just substitute that for print_info_box_np() to easily get a warning style "Apply changes" box.
function print_info_box($msg, $class="alert-warning", $btnname = "close", $btntext = "") {
if (strpos($class, "alert-") !== 0) {
OpenPOWER on IntegriCloud