'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
]}
*}
'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
]}
*}
{/if}
<div class="cell small-12">
<b>New {$ui.label}</b>
- <label for="{$ui.field}_button" class="button primary">{if isset($ui.button)}{$ui.button}{else}Browse{/if}</label>
+ <label for="{$ui.field}_button" class="button primary">{if !empty($ui.button)}{$ui.button}{else}Browse{/if}</label>
<input type="file" class="show-for-sr" id="{$ui.field}_button" name="{$ui.field}_new">
</div>
<div id="glm-galleryImageLarger_image" class="glm-imageDialog"><img src="{$glmPluginMediaUrl}/images/large/{$ui.field}"></div>
</div>
<div class="cell small-12">
{if $ui.dataError}<span class="form-error is-visible">{$ui.dataError}</span>{/if}
- {if isset($ui.helpText)}<p class="help-text" id="{$ui.field}_HelpText">{$ui.helpText}</p>{/if}
- {if isset($ui.errorText)}<span id="{$ui.field}_ErrorText" class="form-error">{$ui.errorText}</span>{/if}
+ {if !empty($ui.helpText)}<p class="help-text" id="{$ui.field}_HelpText">{$ui.helpText}</p>{/if}
+ {if !empty($ui.errorText)}<span id="{$ui.field}_ErrorText" class="form-error">{$ui.errorText}</span>{/if}
</div>
</div>
'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
]}
*}
</label>
{/foreach}
{/if}
-
{if !empty($ui.dataError)}<span class="form-error is-visible">{$ui.dataError}</span>{/if}
{if !empty($ui.helpText)}<p class="help-text" id="{$ui.field}_HelpText">{$ui.helpText}</p>{/if}
{if !empty($ui.errorText)}<span id="{$ui.field}_ErrorText" class="form-error">{$ui.errorText}</span>{/if}
'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
]}
*}
'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)}
>
</div>
<div class="cell auto glm-f6-ui-label-container-right">
+ {if isset($ui.tip)}
+ <span style="float:right;" data-tooltip aria-haspopup="true" class="has-tip" data-disable-hover="false" title="{$ui.tip}">?</span>
+ {/if}
<label for="{$ui.field}" class="{if !empty($ui.required)} glm-required{/if} glm-f6-ui-field-label">{$ui.label}</label>
</div>
<div class="cell small-12 glm-f6-ui-field-messages">
'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
{/foreach}
</select>
- {if isset($ui.dataError) && $ui.dataError}<span class="form-error is-visible">{$ui.dataError}</span>{/if}
- {if isset($ui.helpText)}<p class="help-text" id="{$ui.field}_HelpText">{$ui.helpText}</p>{/if}
- {if isset($ui.errorText)}<span id="{$ui.field}_ErrorText" class="form-error">{$ui.errorText}</span>{/if}
+ {if !empty($ui.dataError)}<span class="form-error is-visible">{$ui.dataError}</span>{/if}
+ {if !empty($ui.helpText)}<p class="help-text" id="{$ui.field}_HelpText">{$ui.helpText}</p>{/if}
+ {if !empty($ui.errorText)}<span id="{$ui.field}_ErrorText" class="form-error">{$ui.errorText}</span>{/if}
</div>
'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
]}
*}
-<div class="cell small-12 lm-f6-ui-field">
+<div class="cell small-12 glm-f6-ui-field">
<button
{if !empty($ui.id)}id="{$ui.id}"{/if}
{if !empty($ui.submit)}type="submit"{/if}
- class="button {$ui.class|default:'primary'}"
+ class="button {$ui.class|default:'primary'}{if !empty($ui.small)} button-small{/if}"
>
{$ui.label}
</button>
{*
- 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).
'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