@model ParcelWeb.Core.Dto.CreateEditDriverDto @using ParcelWeb.Core @{ ViewBag.Title = "Edit Driver"; }

Edit Driver

@using (Html.BeginForm("Edit", "Drivers", FormMethod.Post, new { @id = "frmUser", @class = "form-horizontal", role = "form" })) { @Html.AntiForgeryToken() @Html.HiddenFor(model => model.Id);
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Email, htmlAttributes: new { @class = "label-control col-md-2" })
@@ @Html.EditorFor(model => model.Email, new { htmlAttributes = new { @class = "form-control", @placeholder = "E-mail" , @readonly="readonly" } }) @@example.com
@Html.ValidationMessageFor(model => model.Email, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.DriverName, htmlAttributes: new { @class = "label-control col-md-2" })
@Html.EditorFor(model => model.DriverName, new { htmlAttributes = new { @class = "form-control", @placeholder = "Driver Name" } })
@Html.ValidationMessageFor(model => model.DriverName, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.MissionType, htmlAttributes: new { @class = "label-control col-md-2" })
@Html.DropDownListFor(model => model.MissionType,(SelectList)ViewBag.MissionType, "--Select Mission Type--", new { @class = "form-control",@value=Model.MissionType }) @Html.ValidationMessageFor(model => model.MissionType, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.DriverCNIC, htmlAttributes: new { @class = "label-control col-md-2" })
@Html.EditorFor(model => model.DriverCNIC, new { htmlAttributes = new { @class = "form-control", @placeholder = "Driver NIC" } })
@Html.ValidationMessageFor(model => model.DriverCNIC, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Mobile, htmlAttributes: new { @class = "label-control col-md-2" })
@Html.EditorFor(model => model.Mobile, new { htmlAttributes = new { @class = "form-control", @placeholder = "Mobile Number" } })
@Html.ValidationMessageFor(model => model.Mobile, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Address, htmlAttributes: new { @class = "label-control col-md-2" })
@Html.EditorFor(model => model.Address, new { htmlAttributes = new { @class = "form-control", @placeholder = "Address" } })
@Html.ValidationMessageFor(model => model.Address, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.OwnerName, htmlAttributes: new { @class = "label-control col-md-2" })
@Html.EditorFor(model => model.OwnerName, new { htmlAttributes = new { @class = "form-control", @placeholder = "Owner Name" } })
@Html.ValidationMessageFor(model => model.OwnerName, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.OwnerNIC, htmlAttributes: new { @class = "label-control col-md-2" })
@Html.EditorFor(model => model.OwnerNIC, new { htmlAttributes = new { @class = "form-control", @placeholder = "Owner NIC" } })
@Html.ValidationMessageFor(model => model.OwnerNIC, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.OwnerPhone, htmlAttributes: new { @class = "label-control col-md-2" })
@Html.EditorFor(model => model.OwnerPhone, new { htmlAttributes = new { @class = "form-control", @placeholder = "Owner Phone" } })
@Html.ValidationMessageFor(model => model.OwnerPhone, "", new { @class = "text-danger" })
Cancel
}
@section Scripts { @Scripts.Render("~/bundles/jqueryval") @Html.Raw(TempData["msg"]) }