From: Steve Sutton Date: Tue, 16 Jul 2019 20:45:09 +0000 (-0400) Subject: Working on UI Elements X-Git-Tag: v2.12.7^2~12 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=84b66f79dffcc66439482587a6a2257fc79cd064;p=WP-Plugins%2Fglm-member-db.git Working on UI Elements Starting to work in Chuck's ui elements --- diff --git a/views/ui/f6/checkbox.html b/views/ui/f6/checkbox.html index 01fd03bd..a5b535ad 100644 --- a/views/ui/f6/checkbox.html +++ b/views/ui/f6/checkbox.html @@ -16,18 +16,11 @@ 'dataError' => string Error from data Abstract Class ]} *} -
+
-
+
- +
-
-

- -

+
+
- {if isset($ui.helpText)}

{$ui.helpText}

{/if} + {if isset($ui.dataError) && $ui.dataError}{$ui.dataError}{/if} + {if isset($ui.errorText)}{$ui.errorText}{/if} + {if isset($ui.helpText)}{$ui.helpText}{/if}
diff --git a/views/ui/f6/pagination.html b/views/ui/f6/pagination.html new file mode 100644 index 00000000..fd768086 --- /dev/null +++ b/views/ui/f6/pagination.html @@ -0,0 +1,23 @@ +{* + Foundation 6 Pagination + + {$ui = [ + 'limit' => integer + 'total' => integer + 'prevStart' => integer + 'nextStart' => integer + ]} +*} + diff --git a/views/ui/f6/text.html b/views/ui/f6/text.html index 99833c57..00af3188 100644 --- a/views/ui/f6/text.html +++ b/views/ui/f6/text.html @@ -1,43 +1,55 @@ {* - Foundation 6 Text Input Field - All parameters are required. - Do not list parameters if they're false. (We're not checking for false) - If supplying field data (formData) from the data abstract, supply a - name of that in the "field" parameter. Also then certain parameters like - "required" will be supplied by the abstract rather than in a parameter in - this array. + Foundation 6 - Text Input Field + + Do not list parameters if they're false. (We're not checking for false). {$ui = [ - 'value' => string Value of the element - 'field' => string Name of field that holds the data if not using data abstract, - 'label' => string Label text for this field, - 'pattern' => string Pattern attribute ( number, etc. ) - '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, - '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 + 'field' => string Required Name of field that holds the data or formData array, + 'value' => string Required Value of this text element + 'label' => string Required Label text for this field, + 'pattern' => string Pattern attribute ( number, etc. ) + '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, + '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 + 'tip' => string String to display when hover over question mark on right ]} *} - -
- - - {if isset($ui.dataError) && $ui.dataError}{$ui.dataError}{/if} - {if isset($ui.helpText)}

{$ui.helpText}

{/if} - {if isset($ui.errorText)}{$ui.errorText}{/if} +
+ {if (!isset($ui.value) && !isset($ui.field)) || !isset($ui.label)} + Field Error: Required field information not supplied! + {else} +
+
+ {if isset($ui.tip)} + ? + {/if} + +
+
+ +
+
+ {if isset($ui.dataError) && $ui.dataError}{$ui.dataError}{/if} + {if isset($ui.errorText)}{$ui.errorText}{/if} + {if isset($ui.helpText)}{$ui.helpText}{/if} +
+
+ {/if}