{% extends '_base.html.twig' %}
{% block title %}
{% include 'parts/_page-title.html.twig' %}
{% endblock %}
{% block stylesheets %}
{{ parent() }}
{{ encore_entry_link_tags('forgot-password', null, site|lower) }}
{{ encore_entry_link_tags('custom', null, site|lower) }}
{% endblock %}
{% block body %}
{% include '_header.html.twig' %}
<div class="reg-form forgot-password-form">
<div class="reg-form__col">
{% include 'parts/_aside-signin.html.twig' %}
</div>
<div class="reg-form__col">
<div class="form__outer">
<div class="form__inner">
<form class="form" method="POST" id="PasswordRestore">
{% if success is defined and success == true %}
<div class="form-success">
<div class="form-success__outer">
<div class="form-success__inner">
<div class="form-success__icon">
{% include 'parts/_img.html.twig' with {'imageName': 'mail.webp', 'imagePath': '/build/'~subPath~'/img/reg-form/mail.webp'} %}
</div>
<div class="form-success__header">
<div class="form-success__title">Thank you!</div>
<div class="form-success__subtitle">{{uiMsg}}</div>
</div>
<div class="form-success__description">
<div class="form-success__text">
{% if not isSms %}
<p>Please check your email for the reset link we have sent to you (it may be in your spam folder).</p>
<p>Click on the link in the email to sign in.</p>
<p>If you cannot locate the email, please contact us to assist you with logging in.</p>
{% else %}
<p>Click here to <a href="{{path('signin',{'state':'code'})}}">Sign in with the code</a> we have sent.</p>
<p>If you cannot locate the text or do not have access to the phone linked to your account, please contact us to assist you with logging in.</p>
<p>You can contact your tutor in the first instance. You can also email our office at adultlearning@camden.gov.uk. </p>
{% endif %}
</div>
</div>
</div>
</div>
</div>
{% elseif success is defined and success == false %}
{% include 'parts/_standardError.html.twig' with {'errorMsg':uiMsg} %}
{% endif %}
{% if success is not defined or (success is defined and success == false) %} <div class="form__inner">
<div class="form__header">
<div class="form__title form-title-sm">
{% if texts is defined %}
<h1>{{ texts.heading }}</h1>
{% endif %}
</div>
<div class="form__subtitle form-subtitle-sm">
{% if texts is defined %}
{{ texts.instructions|raw }}
{% endif %}
</div>
</div>
</div>
<div class="form__field">
<label>
Enter your e-mail or mobile number
</label>
<input type="text" name="userid" id="signInIDtext" value="" class="input__field"/>
</div>
<div class="error-msg" id="ErrorMsg">
<p></p>
</div>
<div class="form__signin-footer">
<div class="form__signin-btn">
<button type="submit" class="btn btn--fw" id="submitSignInIdBtn">
<span>send password reset code</span>
</button>
</div>
</div>
<div class="form__note form-note-sm">
{% if texts is defined %}
<p>{{ texts.contact }}</p>
{% endif %}
</div>
{% endif %}
</form>
</div>
</div>
</div>
</div>
{% block javascripts %}
{{ encore_entry_script_tags('passwordReq', null, site|lower) }}
{{ encore_entry_script_tags('forgot-password', null, site|lower) }}
{{ encore_entry_script_tags('custom', null, site|lower) }}
{% endblock %}
{% endblock %}