{% import "Toucan/macros/forms.html" as f with context %}
{% extends "Toucan/Plugin/User/Account/_layout.html" %}

{% block login_content %}
    <div class="panel">
        <div class="panel-heading">
            <h2>{{ login_title | default('Forgot Password')}}</h2>
        </div>
        <div class="panel-body">
            <form method="POST" id="pilot-login-lostpassword-form" action="{{url_for(endpoint_namespace % 'lost_password')}}">
                {{- f.csrf_field() -}}
                <div class="form-group">
                    <label>Email:</label>
                    <input type="email" class="form-control" name="email" placeholder="Enter email">
                </div>
                <button type="submit" id="pilot-login-lostpassword-button" class="btn btn-primary btn-block btn-lg">Retrieve Password</button>
            </form>

            <hr>

            <a href="{{url_for(endpoint_namespace % 'login')}}">Login</a>

        </div>
    </div>

{% endblock %}


