{$include_js = $include_js|default:false} {$include_css = $include_css|default:false} {* If you need to load css, but don't need js, we will load css here. If js also need to be loaded, then we will do it asynchronously below. *} {if $include_css && !$include_js} {/if} {$class_id = 'wa-set-password-form-wrapper'} {$wrapper_id = uniqid($class_id)}
{$html}
{if $include_js} {$_locale = [ 'password_required' => '[s`Password cannot be empty.`]', 'not_match' => '[s`Passwords do not match`]', 'captcha_required' => '[s`Captcha is required`]' ]} {* Resources *} {$_resources = [ [ 'id' => "wa-content-setpassword-frontend-form-js", 'type' => "js", 'uri' => "`$wa_url`wa-content/js/login/setpassword-frontend-form.min.js?v=`$wa->version()`" ] ]} {if $include_css} {$_resources[] = [ 'id' => "wa-content-setpassword-frontend-form-css", 'type' => "css", 'uri' => "`$wa_url`wa-content/css/login/frontend/set-password.css?v=`$wa->version()`" ]} {/if} {/if}