@model eSuite.API.Models.UserProfile

@{
    ViewBag.Title = "e-suite";
    Layout = "~/Views/Shared/_layout.cshtml";
}

<div>
    <h1>Profile</h1>
    @using (Html.BeginForm(FormMethod.Post, true, null))
    {
        @Html.AntiForgeryToken()
        <div class="form-group">
            @Html.LabelFor(m => m.Email)
            @Html.EditorFor(m => m.Email, new { htmlAttributes = new
            {
                @class = "form-control",
                @disabled = "disabled"
            } })
            @Html.ValidationMessageFor(m => m.Email)
        </div>

        <div class="form-group">
            @Html.LabelFor(m => m.FirstName)
            @Html.EditorFor(m => m.FirstName, new { htmlAttributes = new { @class = "form-control" } })
            @Html.ValidationMessageFor(m => m.FirstName)
        </div>

        <div class="form-group">
            @Html.LabelFor(m => m.MiddleNames)
            @Html.EditorFor(m => m.MiddleNames, new { htmlAttributes = new { @class = "form-control" } })
            @Html.ValidationMessageFor(m => m.MiddleNames)
        </div>

        <div class="form-group">
            @Html.LabelFor(m => m.LastName)
            @Html.EditorFor(m => m.LastName, new { htmlAttributes = new { @class = "form-control" } })
            @Html.ValidationMessageFor(m => m.LastName)
        </div>

        @await Html.PartialAsync("_loginMethodChooser")

        <button type="submit" class="btn btn-primary btn-spaced" name="Submit">Save</button>
        <a href="/">Home</a>
    }
</div>
