From 8e6251e68ebd28d4ac83f555c71bf6a329c0da9f Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Fri, 12 Jul 2019 16:14:14 -0400 Subject: [PATCH] Continuing work on UI elements and fields. --- views/adminServerStatsConfig.html | 219 ++++++++++++++++++------------ views/ui/f6/LayoutNotes.txt | 2 +- views/ui/f6/checkbox.html | 32 +++-- views/ui/f6/editor.html | 25 ++-- views/ui/f6/grid-start.html | 6 + views/ui/f6/number.html | 80 +++++------ views/ui/f6/section-start.html | 9 +- views/ui/f6/text-line.html | 15 ++ views/ui/f6/text.html | 59 ++++---- 9 files changed, 267 insertions(+), 180 deletions(-) create mode 100644 views/ui/f6/text-line.html diff --git a/views/adminServerStatsConfig.html b/views/adminServerStatsConfig.html index 316bc6d..3b46844 100755 --- a/views/adminServerStatsConfig.html +++ b/views/adminServerStatsConfig.html @@ -21,17 +21,20 @@ {* Section Start *} {$ui = [ - 'title' => 'Database Connection' + 'title' => 'Database Connection', + 'tip' => " + If you need help with these settings, please contact the Gaslight Media network engineering department. + " ]} {include file="ui/f6/section-start.html"} {* db_name *} {$ui = [ 'field' => 'db_name', + 'value' => {$db_name}, 'label' => 'Database Name', 'placeholder' => 'Provided by Gaslight Media Engineering', 'required' => true, - 'helpText' => 'We be here!', 'errorText' => 'The database name is required for connecting to the usage database.' ]} {include file="ui/f6/text.html"} @@ -39,10 +42,10 @@ {* db_host *} {$ui = [ 'field' => 'db_host', + 'value' => {$db_host}, 'label' => 'Database Server Hostname', 'placeholder' => 'Provided by Gaslight Media Engineering', 'required' => true, - 'helpText' => 'We be there!', 'maxWidth' => 20 ]} {include file="ui/f6/text.html"} @@ -50,6 +53,7 @@ {* db_user *} {$ui = [ 'field' => 'db_user', + 'value' => {$db_user}, 'label' => 'Database Username', 'placeholder' => 'Provided by Gaslight Media Engineering', 'required' => true, @@ -60,6 +64,7 @@ {* db_pass *} {$ui = [ 'field' => 'db_pass', + 'value' => {$db_pass}, 'label' => 'Database Password', 'placeholder' => 'Provided by Gaslight Media Engineering', 'required' => true @@ -69,6 +74,7 @@ {* website *} {$ui = [ 'field' => 'website', + 'value' => {$website}, 'label' => 'Default Website Name', 'placeholder' => 'Provided by Gaslight Media Engineering', 'required' => true @@ -79,13 +85,14 @@ {* Section Start *} {$ui = [ - 'title' => 'Usage Notifications for All Sites' + 'title' => 'Usage and Notifications' ]} {include file="ui/f6/section-start.html"} {* show_usage *} {$ui = [ 'field' => 'show_usage', + 'value' => {$show_usage}, 'label' => 'Show Data Usage', 'helpText' => 'Check this box to have server display website usage information.' @@ -95,6 +102,7 @@ {* send_usage *} {$ui = [ 'field' => 'send_usage', + 'value' => {$send_usage}, 'label' => 'Automatically Send Usage Notices Monthly', 'helpText' => 'More help stuff. Arent you excited?' ]} @@ -103,113 +111,154 @@ {* send_percent *} {$ui = [ 'field' => 'send_percent', + 'value' => {$send_percent}, 'label' => '% of Target for Notification', 'required' => true, 'min' => 0, 'max' => 150, - 'maxWidth' => 3, + 'width' => 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"} - {include file="ui/f6/section-end.html"} + {* show_notifications *} + {$ui = [ + 'field' => 'show_notifications', + 'value' => {$show_notifications}, + 'label' => 'Customer Notiifications for This Site' + ]} + {include file="ui/f6/checkbox.html"} - {include file="ui/f6/grid-end.html"} -