From: Chuck Scott Date: Fri, 21 Jun 2019 18:40:49 +0000 (-0400) Subject: Fixed various narrator related issues X-Git-Tag: v3.0.0^2~15 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=ff9899b358389a1ea81f56865cf5b475928d38af;p=WP-Plugins%2Fglm-serverstats.git Fixed various narrator related issues Updated most input element option names to use camelcase. --- diff --git a/css/admin.css b/css/admin.css index 54bbcee..6b56607 100644 --- a/css/admin.css +++ b/css/admin.css @@ -41,6 +41,9 @@ .fix-margin-bottom-for-inputs { margin-bottom: .5rem; } +.glm-usage-admin-wrap .form-error, .glm-usage-admin-wrap .help-text { + margin-top: 0px; +} /* diff --git a/views/adminServerStatsConfig.html b/views/adminServerStatsConfig.html index 2f96823..4f981cd 100755 --- a/views/adminServerStatsConfig.html +++ b/views/adminServerStatsConfig.html @@ -23,25 +23,26 @@ ]} {include file="ui/f6/section-name.html"} - {* db_name *) + {* db_name *} {$fieldData = [ 'field' => 'db_name', 'label' => 'Database Name', 'placeholder' => 'Provided by Gaslight Media Engineering', 'required' => true, - 'maxwidth' => 20, - 'helptext' => 'This is a fine message to put here.', - 'errortext' => 'The database name is required for connecting to the usage database.' + 'maxWidth' => 20, + 'helpText' => 'We be here!', + 'errorText' => 'The database name is required for connecting to the usage database.' ]} {include file="ui/f6/text.html"} {* db_host *} {$fieldData = [ 'field' => 'db_host', - 'label' => 'Database Sever Hostname', + 'label' => 'Database Server Hostname', 'placeholder' => 'Provided by Gaslight Media Engineering', 'required' => true, - 'maxwidth' => 20 + 'helpText' => 'We be here!', + 'maxWidth' => 20 ]} {include file="ui/f6/text.html"} @@ -51,7 +52,7 @@ 'label' => 'Database Username', 'placeholder' => 'Provided by Gaslight Media Engineering', 'required' => true, - 'maxwidth' => 20 + 'maxWidth' => 20 ]} {include file="ui/f6/text.html"} @@ -82,7 +83,8 @@ {* show_usage *} {$fieldData = [ 'field' => 'show_usage', - 'label' => 'Show Data Usage' + 'label' => 'Show Data Usage', + 'helpText' => 'Check this box to have server display website usage information.' ]} {include file="ui/f6/checkbox.html"} @@ -90,7 +92,8 @@ {* send_usage *} {$fieldData = [ 'field' => 'send_usage', - 'label' => 'Automatically Send Usage Notices Monthly' + 'label' => 'Automatically Send Usage Notices Monthly', + 'helpText' => 'More help stuff. Arent you excited?' ]} {include file="ui/f6/checkbox.html"} @@ -98,13 +101,12 @@ {$fieldData = [ 'field' => 'send_percent', 'label' => '% of Target for Notification', - 'placeholder' => '% of Target', 'required' => true, 'min' => 0, 'max' => 150, - 'maxwidth' => 5, - 'helptext' => 'Send notification to customer contact if at this % of target or higher for usage or disk space.', - 'errortext' => 'Im a fool.' + 'maxWidth' => 3, + 'helpText' => 'Send notification to customer contact if at this % of target or higher for usage or disk space.', + 'errorText' => 'Im a fool.' ]} {include file="ui/f6/number.html"} @@ -141,8 +143,8 @@ 'required' => true, 'min' => 0, 'max' => 90, - 'maxwidth' => 5, - 'helptext' => 'Number of days after user accepts the cookie pop-up that it will display again. + 'maxWidth' => 5, + 'helpText' => 'Number of days after user accepts the cookie pop-up that it will display again. Do not set to a real high number. Consider 10-30 days. Set to 0 to test Cookie Popups.' ]} {include file="ui/f6/number.html"} @@ -154,37 +156,31 @@ 'required' => true, 'height' => 50, 'rows' => 5, - 'maxwidth' => '900px' + 'maxWidth' => '900px', + 'helpText' => 'My Help Text', + 'errorText' => 'Im a fool.' ]} {include file="ui/f6/editor.html"} + {* SECTION *} + {$fieldData = [ + 'title' => 'Addional Notices', + 'helpText' => 'These notices are displayed when the user clicks the "Show more" button.' + ]} + {include file="ui/f6/section-name.html"} + + {* show_cookie_popup *} + {$fieldData = [ + 'field' => 'show_cookie_popup', + 'label' => 'Show Cookie Pop-Up' + ]} + {include file="ui/f6/checkbox.html"} +