From 0954dfcfcf77bdee6a75852b936cca9a600350c1 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Wed, 31 Jul 2019 16:11:08 -0400 Subject: [PATCH] Merge in changes from serverstats Bringing in some updates --- views/ui/f6/checkbox.html | 3 +-- views/ui/f6/image.html | 8 ++++---- views/ui/f6/multicheckboxes.html | 3 +-- views/ui/f6/multiselect.html | 2 +- views/ui/f6/number.html | 4 ++++ views/ui/f6/select.html | 8 ++++---- views/ui/f6/submit.html | 5 +++-- views/ui/f6/text.html | 4 ++-- 8 files changed, 20 insertions(+), 17 deletions(-) diff --git a/views/ui/f6/checkbox.html b/views/ui/f6/checkbox.html index ff3db27b..af36c45f 100644 --- a/views/ui/f6/checkbox.html +++ b/views/ui/f6/checkbox.html @@ -8,9 +8,8 @@ 'required' => boolean True if required, 'helpText' => string Help text for this input, 'errorText' => string Error text that appears when the field doesn't validate, - 'dataError' => string Error from data Abstract Class, + 'dataError' => string Error from data Abstract Class, or other supplied error string 'tip' => string Tool Tip text - 'dataError' => string Error from data Abstract Class ]} *} diff --git a/views/ui/f6/image.html b/views/ui/f6/image.html index 59bf9c90..0c5ab71f 100644 --- a/views/ui/f6/image.html +++ b/views/ui/f6/image.html @@ -14,7 +14,7 @@ 'button' => string Text for the Button 'required' => boolean True if required, 'helpText' => string Help text for this input, - 'errortext' => string Error text that appears when the field doesn't validate, + 'errorText' => string Error text that appears when the field doesn't validate, 'dataError' => string Error from data Abstract Class ]} *} @@ -36,14 +36,14 @@ {/if}
New {$ui.label} - +
{if $ui.dataError}{$ui.dataError}{/if} - {if isset($ui.helpText)}

{$ui.helpText}

{/if} - {if isset($ui.errorText)}{$ui.errorText}{/if} + {if !empty($ui.helpText)}

{$ui.helpText}

{/if} + {if !empty($ui.errorText)}{$ui.errorText}{/if}
diff --git a/views/ui/f6/multicheckboxes.html b/views/ui/f6/multicheckboxes.html index e5b28034..06caf166 100644 --- a/views/ui/f6/multicheckboxes.html +++ b/views/ui/f6/multicheckboxes.html @@ -14,7 +14,7 @@ 'list' => array Array of list key=value pairs value=>label 'required' => boolean True if required, 'helpText' => string Help text for this input, - 'errortext' => string Error text that appears when the field doesn't validate, + 'errorText' => string Error text that appears when the field doesn't validate, 'dataError' => string Error from data Abstract Class ]} *} @@ -32,7 +32,6 @@ {/foreach} {/if} - {if !empty($ui.dataError)}{$ui.dataError}{/if} {if !empty($ui.helpText)}

{$ui.helpText}

{/if} {if !empty($ui.errorText)}{$ui.errorText}{/if} diff --git a/views/ui/f6/multiselect.html b/views/ui/f6/multiselect.html index 7b45efa7..a38d0e6e 100644 --- a/views/ui/f6/multiselect.html +++ b/views/ui/f6/multiselect.html @@ -17,7 +17,7 @@ 'l_size' => integer select size, 'required' => boolean True if required, 'helpText' => string Help text for this input, - 'errortext' => string Error text that appears when the field doesn't validate, + 'errorText' => string Error text that appears when the field doesn't validate, 'dataError' => string Error from data Abstract Class ]} *} diff --git a/views/ui/f6/number.html b/views/ui/f6/number.html index e5aca69d..9377d224 100644 --- a/views/ui/f6/number.html +++ b/views/ui/f6/number.html @@ -15,6 +15,7 @@ 'message' => string Message string to display between label and input, 'helpText' => string Help text for this input, 'errorText' => string Error text that appears when the field doesn't validate + 'tip' => string String to display when hover over question mark on right ]} *} {if empty($ui.width)} @@ -45,6 +46,9 @@ >
+ {if isset($ui.tip)} + ? + {/if}
diff --git a/views/ui/f6/select.html b/views/ui/f6/select.html index 26b2dc02..8ebdfec8 100644 --- a/views/ui/f6/select.html +++ b/views/ui/f6/select.html @@ -16,7 +16,7 @@ 'l_blank' => string Add empty option 'required' => boolean True if required, 'helpText' => string Help text for this input, - 'errortext' => string Error text that appears when the field doesn't validate, + 'errorText' => string Error text that appears when the field doesn't validate, 'dataError' => string Error from data Abstract Class 'class' => string Additional Classes for the main cell div 'inputClass' => string Additional Classes for the input @@ -41,8 +41,8 @@ {/foreach} - {if isset($ui.dataError) && $ui.dataError}{$ui.dataError}{/if} - {if isset($ui.helpText)}

{$ui.helpText}

{/if} - {if isset($ui.errorText)}{$ui.errorText}{/if} + {if !empty($ui.dataError)}{$ui.dataError}{/if} + {if !empty($ui.helpText)}

{$ui.helpText}

{/if} + {if !empty($ui.errorText)}{$ui.errorText}{/if}
diff --git a/views/ui/f6/submit.html b/views/ui/f6/submit.html index 6925d1b8..ce778c6a 100644 --- a/views/ui/f6/submit.html +++ b/views/ui/f6/submit.html @@ -13,15 +13,16 @@ 'label' => string Required Label text for this field, 'submit' => boolean True if this is a submit button 'id' => string Optional ID for this button + 'small' => boolean True to select a small button 'cancel' => string Optional URL for cancel button ]} *} -
+
diff --git a/views/ui/f6/text.html b/views/ui/f6/text.html index 4b3543ce..5d4eb59a 100644 --- a/views/ui/f6/text.html +++ b/views/ui/f6/text.html @@ -1,5 +1,5 @@ {* - Foundation 6 - Text Input Field + Foundation 6 UI - Text Input Field Do not list parameters if they're false. (We're not checking for false). @@ -11,7 +11,7 @@ 'placeholder' => string Placeholder string, 'required' => boolean True if required, 'maxWidth' => string Size of input field using standard style notation ('900px', '15rem', ...), - 'maxlength' => integer Maximum number of characters that may be entered, + 'maxLength' => integer Maximum number of characters that may be entered, 'helpText' => string Help text for this input, 'errorText' => string Error text that appears when the field doesn't validate, 'dataError' => string Error from data Abstract Class -- 2.17.1