Update text and select ui elements
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 29 Jul 2019 20:20:56 +0000 (16:20 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 29 Jul 2019 20:20:56 +0000 (16:20 -0400)
Add class and inputClass attributes.

views/ui/f6/select.html
views/ui/f6/text.html

index 144d0dd..26b2dc0 100644 (file)
         '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
+        'class'         => string  Additional Classes for the main cell div
+        'inputClass'    => string  Additional Classes for the input
     ]}
 *}
-<div class="cell small-12">
+<div class="cell small-12 glm-f6-ui-field {$ui.class|default:''}">
     <label for="{$ui.field}" class="{if $ui.required} glm-required{/if}">{$ui.label}</label>
     <select
         id="{$ui.field}"
         name="{$ui.field}"
+        class="{$ui.inputClass|default:''}"
         {if $ui.required}required{/if} >
 
         {if $ui.l_blank}<option value=""></option>{/if}
index edc01c4..4b3543c 100644 (file)
@@ -17,6 +17,7 @@
         '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
+        'inputClass'  => string             Additional Classes for the input
     ]}
 *}
 <div class="cell small-12 glm-f6-ui-field {$ui.class|default:''}">
@@ -32,7 +33,7 @@
             </div>
             <div class="cell small-12">
                 <input
-                    class="glm-f6-ui-field-input"
+                    class="glm-f6-ui-field-input {$ui.inputClass|default:''}"
                     type="text"
                     id="{$ui.field}"
                     name="{$ui.field}"