From 8324c5f2ec3d714a80a82b34f0ba01d29d0fd81f Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Fri, 21 Jun 2019 09:54:35 -0400 Subject: [PATCH] Added comments to make it easier to see fields --- css/admin.css | 27 +++- views/adminServerStatsConfig.html | 248 ++++++++++++++++-------------- 2 files changed, 152 insertions(+), 123 deletions(-) diff --git a/css/admin.css b/css/admin.css index 25a69d8..54bbcee 100644 --- a/css/admin.css +++ b/css/admin.css @@ -3,22 +3,35 @@ Gaslight Media Members Database Admin Styles */ -h1 { - border-bottom: 1px black solid; - margin-bottom: 1rem !important; -} .glm-usage-admin-wrap { max-width: 98%; } -.glm-usage-copyright { +.glm-usage-admin-wrap .glm-usage-copyright { text-align: center; margin: 2em; } -.glm-required { +.glm-usage-admin-wrap h1 { + border-bottom: 1px black solid; + margin-bottom: 1rem !important; +} +.glm-usage-admin-wrap .glm-required { color: red !important; } /* Fixes input boxes that are different heights. Not sure who's doing that. */ -.glm-usage-admin-wrap input[type="color"], input[type="date"], input[type="datetime-local"], input[type="datetime"], input[type="email"], input[type="month"], input[type="number"], input[type="password"], input[type="search"], input[type="tel"], input[type="text"], input[type="time"], input[type="url"], input[type="week"] { +.glm-usage-admin-wrap input[type="color"], +.glm-usage-admin-wrap input[type="date"], +.glm-usage-admin-wrap input[type="datetime-local"], +.glm-usage-admin-wrap input[type="datetime"], +.glm-usage-admin-wrap input[type="email"], +.glm-usage-admin-wrap input[type="month"], +.glm-usage-admin-wrap input[type="number"], +.glm-usage-admin-wrap input[type="password"], +.glm-usage-admin-wrap input[type="search"], +.glm-usage-admin-wrap input[type="tel"], +.glm-usage-admin-wrap input[type="text"], +.glm-usage-admin-wrap input[type="time"], +.glm-usage-admin-wrap input[type="url"], +.glm-usage-admin-wrap input[type="week"] { height: 2rem; margin: 0 0 0.5rem; } diff --git a/views/adminServerStatsConfig.html b/views/adminServerStatsConfig.html index 5e19772..8d37a90 100755 --- a/views/adminServerStatsConfig.html +++ b/views/adminServerStatsConfig.html @@ -23,122 +23,138 @@ ]} {include file="ui/f6/section-name.html"} - {$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.' - ]} - {include file="ui/f6/text.html"} - - {$fieldData = [ - 'field' => 'db_host', - 'label' => 'Database Sever Hostname', - 'placeholder' => 'Provided by Gaslight Media Engineering', - 'required' => true, - 'maxwidth' => 20 - ]} - {include file="ui/f6/text.html"} - - {$fieldData = [ - 'field' => 'db_user', - 'label' => 'Database Username', - 'placeholder' => 'Provided by Gaslight Media Engineering', - 'required' => true, - 'maxwidth' => 20 - ]} - {include file="ui/f6/text.html"} - - {$fieldData = [ - 'field' => 'db_pass', - 'label' => 'Database Password', - 'placeholder' => 'Provided by Gaslight Media Engineering', - 'required' => true - ]} - {include file="ui/f6/text.html"} - - {$fieldData = [ - 'field' => 'website', - 'label' => 'Default Website Name', - 'placeholder' => 'Provided by Gaslight Media Engineering', - 'required' => true - ]} - {include file="ui/f6/text.html"} - - {$fieldData = [ - 'title' => 'Usage Notifications for All Sites' - ]} - {include file="ui/f6/section-name.html"} - - {$fieldData = [ - 'field' => 'show_usage', - 'label' => 'Show Data Usage' - - ]} - {include file="ui/f6/checkbox.html"} - - {$fieldData = [ - 'field' => 'send_usage', - 'label' => 'Automatically Send Usage Notices Monthly' - ]} - {include file="ui/f6/checkbox.html"} - - {$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.' - ]} - {include file="ui/f6/number.html"} - - {$fieldData = [ - 'title' => 'Usage Notifications for All Sites' - ]} - {include file="ui/f6/section-name.html"} - - {$fieldData = [ - 'field' => 'show_notifications', - 'label' => 'Customer Notiifications for This Site' - ]} - {include file="ui/f6/checkbox.html"} - - {$fieldData = [ - 'title' => 'Cookie Pop-Ups for This Site' - ]} - {include file="ui/f6/section-name.html"} - - {$fieldData = [ - 'field' => 'show_cookie_popup', - 'label' => 'Show Cookie Pop-Up' - ]} - {include file="ui/f6/checkbox.html"} - - {$fieldData = [ - 'field' => 'cookie_popup_timeout', - 'label' => 'Cookie Pop-Up Re-Display Days', - 'required' => true, - 'min' => 0, - 'max' => 90, - '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"} - - {$fieldData = [ - 'field' => 'cookie_message', - 'label' => 'Cookies Notice Text', - 'required' => true, - 'height' => 100 - ]} - {include file="ui/f6/textarea.html"} + {* 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.' + ]} + {include file="ui/f6/text.html"} + + {* db_host *} + {$fieldData = [ + 'field' => 'db_host', + 'label' => 'Database Sever Hostname', + 'placeholder' => 'Provided by Gaslight Media Engineering', + 'required' => true, + 'maxwidth' => 20 + ]} + {include file="ui/f6/text.html"} + + {* db_user *} + {$fieldData = [ + 'field' => 'db_user', + 'label' => 'Database Username', + 'placeholder' => 'Provided by Gaslight Media Engineering', + 'required' => true, + 'maxwidth' => 20 + ]} + {include file="ui/f6/text.html"} + + {* db_pass *} + {$fieldData = [ + 'field' => 'db_pass', + 'label' => 'Database Password', + 'placeholder' => 'Provided by Gaslight Media Engineering', + 'required' => true + ]} + {include file="ui/f6/text.html"} + + {* website *} + {$fieldData = [ + 'field' => 'website', + 'label' => 'Default Website Name', + 'placeholder' => 'Provided by Gaslight Media Engineering', + 'required' => true + ]} + {include file="ui/f6/text.html"} + + {* SECTION *} + {$fieldData = [ + 'title' => 'Usage Notifications for All Sites' + ]} + {include file="ui/f6/section-name.html"} + + {* show_usage *} + {$fieldData = [ + 'field' => 'show_usage', + 'label' => 'Show Data Usage' + + ]} + {include file="ui/f6/checkbox.html"} + + {* send_usage *} + {$fieldData = [ + 'field' => 'send_usage', + 'label' => 'Automatically Send Usage Notices Monthly' + ]} + {include file="ui/f6/checkbox.html"} + + {* send_percent *} + {$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.' + ]} + {include file="ui/f6/number.html"} + + {* SECTION *} + {$fieldData = [ + 'title' => 'Usage Notifications for All Sites' + ]} + {include file="ui/f6/section-name.html"} + + {* show_notifications *} + {$fieldData = [ + 'field' => 'show_notifications', + 'label' => 'Customer Notiifications for This Site' + ]} + {include file="ui/f6/checkbox.html"} + + {* SECTION *} + {$fieldData = [ + 'title' => 'Cookie Pop-Ups for This Site' + ]} + {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"} + + {* cookie_popup_timeout *} + {$fieldData = [ + 'field' => 'cookie_popup_timeout', + 'label' => 'Cookie Pop-Up Re-Display Days', + 'required' => true, + 'min' => 0, + 'max' => 90, + '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"} + + {* cookie_message *} + {$fieldData = [ + 'field' => 'cookie_message', + 'label' => 'Cookies Notice Text', + 'required' => true, + 'height' => 100 + ]} + {include file="ui/f6/textarea.html"} -- 2.17.1