{** * HELPER FUNC * RENDER BLOCK OF ERRORS *} {function render_errors errors=[]} {foreach $errors as $error} {$error} {/foreach} {/function} {** * HELPER FUNC * WRAPPED FIELD HTML IN BLOCK WITH LABEL AND STUFF *} {function render_wrapped field_id='' caption='' html='' class=''} {$caption = $caption|escape} {$_style = ''} {if $is_onetime_password_auth_type && $field_id === 'password'} {$_style = 'display:none;'} {$class = "`$class|default:''` wa-field-onetime-password"} {/if}