{$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-forgotpassword-form-wrapper'} {$wrapper_id = uniqid($class_id)}
{$html}
{if $include_js} {$_timeout = intval($timeout|default:0)} {if $_timeout <= 0} {$_timeout = 60} {/if} {$_locale = [ 'required' => _ws('Field is required'), 'login_required' => _ws('Login is required'), 'password_required' => _ws('Password cannot be empty.'), 'timeout' => {sprintf(_ws("You can’t restore password too often. Try again in %s seconds."), $_timeout)}, 'timeout_template' => {sprintf(_ws("You can’t restore password too often. Try again in %s seconds."), '%d')}, 'login_page' => _ws('Back to login page'), 'captcha_required' => _ws('Captcha is required'), 'confirmation_code_required' => _ws('Enter a confirmation code to complete the operation.') ]} {* Resources *} {$_resources = [ [ 'id' => "wa-content-frontend-forgotpassword-form-js", 'type' => "js", 'uri' => "`$wa_url`wa-content/js/login/forgotpassword-frontend-form.min.js?v=`$wa->version()`" ] ]} {if $include_css} {$_resources[] = [ 'id' => "wa-content-frontend-forgotpassword-css", 'type' => "css", 'uri' => "`$wa_url`wa-content/css/login/frontend/forgot-password.css?v=`$wa->version()`" ]} {/if} {/if}