LocalGovIMS_localgov-ims/src/Admin/Views/Account/Register.cshtml
@model Admin.Models.Account.RegisterViewModel
@{
    ViewBag.Title = "Register";
}

@section Messages {
    @Html.ValidationSummary(true, "Unable to register:", new { @class = "alert alert-danger mt-3" })
}

@section Header { @ViewBag.Title }

@section Subheader { Create a new account }

@using (Html.BeginForm("Register", "Account", FormMethod.Post, new { role = "form" }))
{
    @Html.AntiForgeryToken()

    <div class="row mb-3">
        <div class="col col-sm-6 col-md-5 col-lg-4">
            @Html.LabelFor(m => m.Email, new { @class = "form-label" })
            @Html.TextBoxFor(m => m.Email, new { @class = "form-control" })
            <div class="form__element--error">
                @Html.ValidationMessageFor(m => m.Email)
            </div>
        </div>
    </div>

    <div class="row mb-3">
        <div class="col col-sm-6 col-md-5 col-lg-4">
            @Html.LabelFor(m => m.Password, new { @class = "form-label" })
            @Html.PasswordFor(m => m.Password, new { @class = "form-control" })
            <div class="form__element--error">
                @Html.ValidationMessageFor(m => m.Password)
            </div>
        </div>
    </div>

    <div class="row mb-3">
        <div class="col col-sm-6 col-md-5 col-lg-4">
            @Html.LabelFor(m => m.ConfirmPassword, new { @class = "form-label" })
            @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-control" })
            <div class="form__element--error">
                @Html.ValidationMessageFor(m => m.ConfirmPassword)
            </div>
        </div>
    </div>

    <div class="row mb-3">
        <div class="col">
            <input type="submit" value="Register" class="btn btn-primary" />
        </div>
    </div>
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
