@{
    ViewData["Title"] = "Forgot Password ?";
    Layout = "~/Views/Shared/_HomeLayout.cshtml";
}

@model EForT.Models.ForgetPasswordModel

@using (Html.BeginForm("ForgetPassword", "Home", FormMethod.Post, Model))
{
    <div class="section-white">
        <div class="container center-layout">
            <div class="content-wrapper">
                <div class="content-body">
                    <section class="flexbox-container">
                        <div class="col-12 d-flex align-items-center justify-content-center">
                            <div class="col-sm-12 col-md-6 col-lg-5 col-xl-5 col-12 p-0 py-2">
                                <div class="account-login_container">
                                    <div class="card border-grey border-lighten-3 px-1 pt-1 m-0">
                                        <div class="card-header">
                                            <div class="card-title text-center">
                                                <img src="~/images/logotext76.png" alt="branding logo">
                                            </div>
                                        </div>
                                        <div class="card-content">
                                            <div class="card-body">
                                                <h3 class="text-center mb-1">Forgot your Password?</h3>
                                                <div class="mb-2 font-medium-1">
                                                    <p><span class=" text-primary">Important note:</span> the email must be associated with your account. Contact us if you have forgotten your username.</p>
                                                </div>
                                                <fieldset class="form-group">
                                                    <label for="UserName">Username <i class="warning">*</i> </label>
                                                    <input type="search" class="form-control" asp-for="@Model.UserName" id="UserName" required>
                                                </fieldset>
                                                <fieldset class="form-group">
                                                    <label for="UserEmail">Email <i class="warning">*</i> </label>
                                                    <input type="email" class="form-control" asp-for="@Model.UserEmail" id="UserEmail" required>
                                                </fieldset>
                                                <fieldset class="form-group">
                                                    <label for="pickerUserDOB">Date of Birth <i class="warning">*</i></label>
                                                    <input type="text" class="form-control" asp-for="@Model.UserDOB" id="pickerUserDOB" required />
                                                </fieldset>
                                                @if (ViewBag.ForgetPassword != null)
                                                {
                                                    <div class="row">
                                                        <div class="col-12">
                                                            <div class="text-danger error-message mb-1">
                                                                <span>@ViewBag.ForgetPassword</span>
                                                            </div>
                                                        </div>
                                                    </div>
                                                }
                                                <button type="submit" class="btn btn-primary my-1 mr-1">Submit</button>
                                                <a href="@Url.Action("AccountLogin", "Home")" class="btn btn-secondary my-1">Back to Login</a>
                                            </div>
                                        </div>
                                    </div>
                                </div>                            
                            </div>
                        </div>
                    </section>
                </div>
            </div>
        </div>
    </div>
}

