@model ParcelWeb.Core.Domain.UserAccount @{ ViewBag.Title = "EditProfile"; }

Edit Profile

@using (Html.BeginForm("Create", "UserAccount", FormMethod.Post, new { @Id = "frmUserAddress", @class = "form form-horizontal", onSubmit = "return jQueryAjaxPost(this);", data_restUrl = Url.Action("Create", "UserAccount") }))//data-resetUrl { @Html.AntiForgeryToken()
@Html.ValidationSummary(true, "", new { @class = "text-danger" }) @Html.HiddenFor(model => model.Id) @Html.HiddenFor(model => model.AccountCode) @Html.HiddenFor(model => model.CreatedBy) @Html.HiddenFor(model => model.TypeId)
@Html.LabelFor(model => model.CompanyName, htmlAttributes: new { @class = "label-control col-md-3" })
@Html.EditorFor(model => model.CompanyName, new { htmlAttributes = new { @class = "form-control text-capitalize", @placeholder = "Company Name" } })
@Html.ValidationMessageFor(model => model.CompanyName, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.ContactPerson, htmlAttributes: new { @class = "label-control col-md-3" })
@Html.EditorFor(model => model.ContactPerson, new { htmlAttributes = new { @class = "form-control text-capitalize", @placeholder = "Person Name" } })
@Html.ValidationMessageFor(model => model.ContactPerson, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Address.StreetAddress, htmlAttributes: new { @class = "label-control col-md-3" })
@Html.EditorFor(model => model.Address.StreetAddress, new { htmlAttributes = new { @class = "form-control", @placeholder = "Billing Address" } })
@Html.ValidationMessageFor(model => model.Address.StreetAddress, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Address.CountryId, htmlAttributes: new { @class = "label-control col-md-3" })
@Html.HiddenFor(model => model.Address.CountryId) @Html.ValidationMessage("CountryId", "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Address.CityId, htmlAttributes: new { @class = "label-control col-md-3" })
@Html.ValidationMessage("Address.CityId", "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Address.ZipCode, htmlAttributes: new { @class = "label-control col-md-3" })
@Html.EditorFor(model => model.Address.ZipCode, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.Address.ZipCode, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Address.Phone, htmlAttributes: new { @class = "label-control col-md-3" })
@Html.EditorFor(model => model.Address.Phone, new { htmlAttributes = new { @class = "form-control", @placeholder = "042 01234567" } })
@Html.ValidationMessageFor(model => model.Address.Phone, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Address.Mobile, htmlAttributes: new { @class = "label-control col-md-3" })
@Html.EditorFor(model => model.Address.Mobile, new { htmlAttributes = new { @class = "form-control", @placeholder = "+923001234567" } })
@Html.ValidationMessageFor(model => model.Address.Mobile, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Address.Email, htmlAttributes: new { @class = "label-control col-md-3" })
@@ @Html.EditorFor(model => model.Address.Email, new { htmlAttributes = new { @class = "form-control", @placeholder = "E-mail" } }) @@example.com
@Html.ValidationMessageFor(model => model.Address.Email, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Address.Fax, htmlAttributes: new { @class = "label-control col-md-3" })
@Html.EditorFor(model => model.Address.Fax, new { htmlAttributes = new { @class = "form-control text-lowercase", @placeholder = "123-123-1234" } })
@Html.ValidationMessageFor(model => model.Address.Fax, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.SpecialInstruction, htmlAttributes: new { @class = "label-control col-md-3" })
@Html.TextAreaFor(model => model.SpecialInstruction, new { @class = "form-control text-capitalize", @rows = "5", @placeholder = "Notes" })
@Html.ValidationMessageFor(model => model.SpecialInstruction, "", new { @class = "text-danger" })
}
@section Scripts { @Scripts.Render("~/bundles/jqueryval") }