@using eSuite.API.Translation
@model eSuite.API.Controllers.ProfileViewModel

@{
    var t = await Model.TranslatorFactory.Use(Namespaces.Common);
    Layout = null;
}

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

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

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

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

        @await Html.PartialAsync("_loginMethodChooser", Model)

        <button type="submit" class="btn btn-primary btn-spaced" name="Submit">@t.T("Save")</button>
    }
</div>
