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

Manage Practitioner

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

Create / Edit Practitioner


@Html.ValidationSummary(true, "", new { @class = "text-danger" }) @Html.HiddenFor(model => model.Practitioner.PersonId) @Html.HiddenFor(model => model.practiceId)
@Html.LabelFor(model => model.Practitioner.TitleId, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.DropDownListFor(m => m.Practitioner.TitleId, new SelectList(ViewBag.TitleList, "Value", "Text"), new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.Practitioner.TitleId, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Practitioner.FirstName, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.Practitioner.FirstName, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.Practitioner.FirstName, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Practitioner.MiddleName, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.Practitioner.MiddleName, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.Practitioner.MiddleName, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Practitioner.LastName, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.Practitioner.LastName, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.Practitioner.LastName, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Practitioner.DateofBirth, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.Practitioner.DateofBirth, new { htmlAttributes = new { @class = "form-control datepicker" } }) @Html.ValidationMessageFor(model => model.Practitioner.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.Practitioner.IDTypeId, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.DropDownListFor(m => m.Practitioner.IDTypeId, new SelectList(ViewBag.IdType, "Value", "Text"), new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.Practitioner.IDTypeId, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Practitioner.IdentityNumber, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.Practitioner.IdentityNumber, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.Practitioner.IdentityNumber, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Practitioner.Gender, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.DropDownListFor(m => m.Practitioner.Gender, new SelectList(ViewBag.GenderList, "Value", "Text"), new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.Practitioner.Gender, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.prov_discipline_code, htmlAttributes: new { @class = "control-label col-md-2 required" })
@Html.DropDownListFor(model => model.prov_discipline_code, new SelectList(ViewBag.Disciplines, "Value", "Text"), new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.prov_discipline_code, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.prov_sub_discipline_key, htmlAttributes: new { @class = "control-label col-md-2 required" })
@Html.DropDownListFor(model => model.prov_sub_discipline_key, new SelectList(ViewBag.SubDisciplines, "Value", "Text"), new { @class = "form-control" })
@Html.LabelFor(model => model.prov_hpcsa_no, htmlAttributes: new { @class = "control-label col-md-2 required" })
@Html.TextBoxFor(model => model.prov_hpcsa_no, new { @class = "form-control", rel = "tooltip", data_toggle = "tooltip", title = "Please provide your full HPCSA number without any spaces.", data_placement = "right" }) @Html.ValidationMessageFor(model => model.prov_hpcsa_no, "", new { @class = "text-danger" })
@Html.HiddenFor(m => m.Practitioner.LinkedLogin) @Html.HiddenFor(m => m.Practitioner.CreatedDate)
}
@Html.ActionLink("Back to List", "IndexPractitioner", "People", new { listType = "practitioner" }, htmlAttributes: new { title = "Manage Practitioners" })
@section Scripts { @Scripts.Render("~/bundles/jqueryval") }