@model HealthchoiceMVC.ViewModels.Admin_vm @{ ViewBag.Title = "EditAdminPerson"; Layout = "~/Views/Shared/_Layout.cshtml"; }

Manage Practice Admin / Manager

@using (Html.BeginForm()) { @Html.AntiForgeryToken()

Create / Edit Practice Admin / Manager


@Html.ValidationSummary(true, "", new { @class = "text-danger" }) @Html.HiddenFor(model => model.AdminPerson.PersonId)
@Html.LabelFor(model => model.personTypeId, htmlAttributes: new { @class = "control-label col-md-2 required" })
@Html.DropDownListFor(m => m.personTypeId, new SelectList(ViewBag.AdminTypeList, "Value", "Text"), new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.personTypeId, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.AdminPerson.TitleId, htmlAttributes: new { @class = "control-label col-md-2 required" })
@Html.DropDownListFor(m => m.AdminPerson.TitleId, new SelectList(ViewBag.TitleList, "Value", "Text"), new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.AdminPerson.TitleId, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.AdminPerson.FirstName, htmlAttributes: new { @class = "control-label col-md-2 required" })
@Html.EditorFor(model => model.AdminPerson.FirstName, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.AdminPerson.FirstName, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.AdminPerson.MiddleName, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.AdminPerson.MiddleName, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.AdminPerson.MiddleName, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.AdminPerson.LastName, htmlAttributes: new { @class = "control-label col-md-2 required" })
@Html.EditorFor(model => model.AdminPerson.LastName, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.AdminPerson.LastName, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.AdminPerson.DateofBirth, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.AdminPerson.DateofBirth, new { htmlAttributes = new { @class = "form-control datepicker" } }) @Html.ValidationMessageFor(model => model.AdminPerson.DateofBirth, "", new { @class = "text-danger" })
@Html.LabelFor(m => m.ContactNumber, new { @class = "col-md-2 control-label required" })
@Html.TextBoxFor(m => m.ContactNumber, new { @class = "form-control" })
@Html.LabelFor(m => m.Email, new { @class = "col-md-2 control-label required" })
@Html.TextBoxFor(m => m.Email, new { @class = "form-control" })
@Html.LabelFor(model => model.AdminPerson.IDTypeId, htmlAttributes: new { @class = "control-label col-md-2 required" })
@Html.DropDownListFor(m => m.AdminPerson.IDTypeId, new SelectList(ViewBag.IdType, "Value", "Text"), new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.AdminPerson.IDTypeId, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.AdminPerson.IdentityNumber, htmlAttributes: new { @class = "control-label col-md-2 required" })
@Html.EditorFor(model => model.AdminPerson.IdentityNumber, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.AdminPerson.IdentityNumber, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.AdminPerson.Gender, htmlAttributes: new { @class = "control-label col-md-2 required" })
@Html.DropDownListFor(m => m.AdminPerson.Gender, new SelectList(ViewBag.GenderList, "Value", "Text"), new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.AdminPerson.Gender, "", new { @class = "text-danger" })
@Html.HiddenFor(m => m.AdminPerson.LinkedLogin) @Html.HiddenFor(m => m.AdminPerson.CreatedDate)
}
@Html.ActionLink("Back to List", "IndexAdminPerson", "People", new { listType = "AdminPerson" }, htmlAttributes: new { title = "Manage AdminPersons" })
@section Scripts { @Scripts.Render("~/bundles/jqueryval") }