From dc7f210c7b9db5882114ec77f26378bdec0bc6b1 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Thu, 18 Jul 2019 16:53:19 -0400 Subject: [PATCH] add bitmap element --- views/ui/f6/bitmap.html | 61 +++++++++++++++++++++++++++++++++++++++ views/ui/f6/checkbox.html | 4 +-- views/ui/f6/text.html | 27 ++++++++--------- 3 files changed, 77 insertions(+), 15 deletions(-) create mode 100644 views/ui/f6/bitmap.html diff --git a/views/ui/f6/bitmap.html b/views/ui/f6/bitmap.html new file mode 100644 index 00000000..4f6d0a91 --- /dev/null +++ b/views/ui/f6/bitmap.html @@ -0,0 +1,61 @@ +{* + Foundation 6 Bitmap Field + All parameters are required. + Only 0ne of $data or $field may be used. + Do not list fields 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, + 'active' => string Text for active state + 'inactive' => string text for inactive state + '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 + ]} +*} +
+
+ {foreach $ui.value as $item => $v} +
+
+
+
+ + +
+ +
+
+ +
+
+
+
+   +
+ {/foreach} +
+ {if isset($ui.dataError) && $ui.dataError}{$ui.dataError}{/if} + {if isset($ui.errorText)}{$ui.errorText}{/if} + {if isset($ui.helpText)}{$ui.helpText}{/if} +
+
+
+{* + + Credit Card Accepted: + + {foreach from=$regSettings.fieldData.cc_accepts.bitmap item=v} + {$v.name}
+ {/foreach} + {if $regSettings.fieldFail.cc_accepts}

{$regSettings.fieldFail.cc_accepts}

{/if} + + +*} diff --git a/views/ui/f6/checkbox.html b/views/ui/f6/checkbox.html index 91e01f99..4cbfb313 100644 --- a/views/ui/f6/checkbox.html +++ b/views/ui/f6/checkbox.html @@ -23,8 +23,8 @@ diff --git a/views/ui/f6/text.html b/views/ui/f6/text.html index 00af3188..eca39ae6 100644 --- a/views/ui/f6/text.html +++ b/views/ui/f6/text.html @@ -4,21 +4,22 @@ Do not list parameters if they're false. (We're not checking for false). {$ui = [ - '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 + '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 + 'class' => string Additional Classes for the main cell div ]} *} -
+
{if (!isset($ui.value) && !isset($ui.field)) || !isset($ui.label)} Field Error: Required field information not supplied! {else} -- 2.17.1