From c0367cb8ad43be01a9156a8409c6024d243e3121 Mon Sep 17 00:00:00 2001 From: jim-p Date: Thu, 10 Mar 2016 16:48:21 -0500 Subject: More icon and button inconsistencies. Should be the last batch. Ticket #5965 --- src/usr/local/www/guiconfig.inc | 9 ++++++--- src/usr/local/www/head.inc | 4 ++-- src/usr/local/www/jquery/pfSense.js | 10 +++++----- src/usr/local/www/jquery/pfSenseHelpers.js | 4 ++-- src/usr/local/www/pkg.php | 2 +- src/usr/local/www/status_logs_filter_summary.php | 2 +- src/usr/local/www/system_advanced_sysctl.php | 2 +- src/usr/local/www/system_usermanager_settings_test.php | 3 ++- .../local/www/widgets/widgets/captive_portal_status.widget.php | 4 ++-- src/usr/local/www/widgets/widgets/gateways.widget.php | 5 ++++- src/usr/local/www/widgets/widgets/log.widget.php | 2 +- src/usr/local/www/widgets/widgets/picture.widget.php | 5 ++++- src/usr/local/www/widgets/widgets/rss.widget.php | 2 +- src/usr/local/www/widgets/widgets/services_status.widget.php | 4 ++-- src/usr/local/www/widgets/widgets/thermal_sensors.widget.php | 5 ++++- src/usr/local/www/widgets/widgets/traffic_graphs.widget.php | 2 +- 16 files changed, 39 insertions(+), 26 deletions(-) (limited to 'src/usr/local') diff --git a/src/usr/local/www/guiconfig.inc b/src/usr/local/www/guiconfig.inc index 2ddee11..258dbd2 100644 --- a/src/usr/local/www/guiconfig.inc +++ b/src/usr/local/www/guiconfig.inc @@ -313,7 +313,7 @@ function verify_gzip_file($fname) { // $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 = "") { +function print_info_box($msg, $class="alert-warning", $btnname = "close", $btntext = "", $btnicon = "", $btnclass = "default") { if (strpos($class, "alert-") !== 0) { $class = 'alert-' . $class; @@ -327,8 +327,11 @@ function print_info_box($msg, $class="alert-warning", $btnname = "close", $btnte if (empty($btntext)) { $btntext = $btnname; } + if (!empty($btnicon)) { + $btnicon = ''; + } - $msg .= '
'; + $msg .= ''; if ($_POST['if']) { $msg .= ""; @@ -341,7 +344,7 @@ function print_info_box($msg, $class="alert-warning", $btnname = "close", $btnte } function print_apply_box($msg) { - print_info_box($msg, "warning", "apply", gettext("Apply Changes")); + print_info_box($msg, "warning", "apply", gettext("Apply Changes"), 'fa-check', 'success'); } /* diff --git a/src/usr/local/www/head.inc b/src/usr/local/www/head.inc index cabe37d..995f726 100644 --- a/src/usr/local/www/head.inc +++ b/src/usr/local/www/head.inc @@ -661,8 +661,8 @@ if (are_notices_pending()):?> diff --git a/src/usr/local/www/jquery/pfSense.js b/src/usr/local/www/jquery/pfSense.js index c789a25..bd6ee7e 100644 --- a/src/usr/local/www/jquery/pfSense.js +++ b/src/usr/local/www/jquery/pfSense.js @@ -40,8 +40,8 @@ $(function() { { var groups = $('div.form-group.user-duplication-horiz'); var controlsContainer = $('
'); - var plus = $('Add'); - var minus = $('Delete'); + var plus = $('Add'); + var minus = $('Delete'); minus.on('click', function(){ $(this).parents('div.form-group').remove(); @@ -69,8 +69,8 @@ $(function() { { var groups = $('div.form-group.user-duplication'); var controlsContainer = $('
'); - var plus = $('Add'); - var minus = $('Delete'); + var plus = $('Add'); + var minus = $('Delete'); minus.on('click', function(){ $(this).parents('div.form-group').remove(); @@ -185,7 +185,7 @@ $(function() { container = self.$tip; timeout = self.timeout; container.one('mouseenter', function(){ - //We entered the actual popover – call off the dogs + //We entered the actual popover - call off the dogs clearTimeout(timeout); //Let's monitor popover content instead container.one('mouseleave', function(){ diff --git a/src/usr/local/www/jquery/pfSenseHelpers.js b/src/usr/local/www/jquery/pfSenseHelpers.js index 16ddfa2..70151ca 100644 --- a/src/usr/local/www/jquery/pfSenseHelpers.js +++ b/src/usr/local/www/jquery/pfSenseHelpers.js @@ -479,8 +479,8 @@ $('.container .panel-heading a[data-toggle="collapse"]').each(function (idx, el) $('#ruletable > tbody:last').append('' + '' + - '' + - '' + + '' + + '' + '    ' + '  ' + '  ' + diff --git a/src/usr/local/www/pkg.php b/src/usr/local/www/pkg.php index a0d2ad4..a3da23b 100755 --- a/src/usr/local/www/pkg.php +++ b/src/usr/local/www/pkg.php @@ -601,7 +601,7 @@ if ($savemsg) { #Show custom description to add button if defined $add_msg=($pkg['adddeleteeditpagefields']['addtext']?$pkg['adddeleteeditpagefields']['addtext']:gettext("Add a new item")); ?> - + ' . $outstr . '' . '' . $summary[$stat][$k[$i]] . '' . gettext("Lookup") . ''); + print('' . $outstr . '' . '' . $summary[$stat][$k[$i]] . '' . gettext("Lookup") . ''); } elseif (substr_count($outstr, '/') == 1) { list($proto, $port) = explode('/', $outstr); diff --git a/src/usr/local/www/system_advanced_sysctl.php b/src/usr/local/www/system_advanced_sysctl.php index 76873bb..dd44caf 100644 --- a/src/usr/local/www/system_advanced_sysctl.php +++ b/src/usr/local/www/system_advanced_sysctl.php @@ -205,7 +205,7 @@ if ($act != "edit"): ?> - + + <?=gettext("Test Authentication server"); ?> @@ -130,7 +131,7 @@ if (!$authcfg) { ?> - + diff --git a/src/usr/local/www/widgets/widgets/captive_portal_status.widget.php b/src/usr/local/www/widgets/widgets/captive_portal_status.widget.php index ec18c47..dc322cb 100644 --- a/src/usr/local/www/widgets/widgets/captive_portal_status.widget.php +++ b/src/usr/local/www/widgets/widgets/captive_portal_status.widget.php @@ -146,8 +146,8 @@ if ($_GET['order']) { 0)) echo date("m/d/Y H:i:s", $cpent[11]);?> - - + + "> diff --git a/src/usr/local/www/widgets/widgets/gateways.widget.php b/src/usr/local/www/widgets/widgets/gateways.widget.php index d23e194..dfabae3 100644 --- a/src/usr/local/www/widgets/widgets/gateways.widget.php +++ b/src/usr/local/www/widgets/widgets/gateways.widget.php @@ -134,7 +134,10 @@ if ($_POST) { onchange="updateGatewayDisplays();" /> onchange="updateGatewayDisplays();" />

- +
diff --git a/src/usr/local/www/widgets/widgets/log.widget.php b/src/usr/local/www/widgets/widgets/log.widget.php index 3b62ab8..1e51267 100644 --- a/src/usr/local/www/widgets/widgets/log.widget.php +++ b/src/usr/local/www/widgets/widgets/log.widget.php @@ -293,7 +293,7 @@ $pconfig['nentriesinterval'] = isset($config['widgets']['filterlogentriesinterva
- +
diff --git a/src/usr/local/www/widgets/widgets/picture.widget.php b/src/usr/local/www/widgets/widgets/picture.widget.php index f40e3df..54f00d8 100644 --- a/src/usr/local/www/widgets/widgets/picture.widget.php +++ b/src/usr/local/www/widgets/widgets/picture.widget.php @@ -80,5 +80,8 @@ if ($_POST) {
- +
diff --git a/src/usr/local/www/widgets/widgets/rss.widget.php b/src/usr/local/www/widgets/widgets/rss.widget.php index 411d0e2..4be59a1 100644 --- a/src/usr/local/www/widgets/widgets/rss.widget.php +++ b/src/usr/local/www/widgets/widgets/rss.widget.php @@ -187,7 +187,7 @@ if ($config['widgets']['rssfeed']) {
- +
diff --git a/src/usr/local/www/widgets/widgets/services_status.widget.php b/src/usr/local/www/widgets/widgets/services_status.widget.php index 6767b5d..7e1d883 100644 --- a/src/usr/local/www/widgets/widgets/services_status.widget.php +++ b/src/usr/local/www/widgets/widgets/services_status.widget.php @@ -163,8 +163,8 @@ if (count($services) > 0) {
- - + +
diff --git a/src/usr/local/www/widgets/widgets/thermal_sensors.widget.php b/src/usr/local/www/widgets/widgets/thermal_sensors.widget.php index f99e605..587fcac 100644 --- a/src/usr/local/www/widgets/widgets/thermal_sensors.widget.php +++ b/src/usr/local/www/widgets/widgets/thermal_sensors.widget.php @@ -268,7 +268,10 @@ function getBoolValueFromConfig(&$configArray, $valueKey, $defaultValue) { - + diff --git a/src/usr/local/www/widgets/widgets/traffic_graphs.widget.php b/src/usr/local/www/widgets/widgets/traffic_graphs.widget.php index 39cb3f3..ded88be 100644 --- a/src/usr/local/www/widgets/widgets/traffic_graphs.widget.php +++ b/src/usr/local/www/widgets/widgets/traffic_graphs.widget.php @@ -195,7 +195,7 @@ foreach ($ifdescrs as $ifname => $ifdescr):
- +
-- cgit v1.1