@model EnVisage.Models.CompanyModel @{ ViewBag.Title = "Edit " + Model.Name; } @section Scripts { }
@using (Html.BeginForm("EditParent", "Company", FormMethod.Post, new { @class = "panel form-horizontal" })) { @Html.AntiForgeryToken() @Html.HiddenFor(model => model.Id)
@Html.LabelFor(model => model.Name, new { @class = "col-sm-2 control-label" })
@Html.TextBoxFor(model => model.Name, new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.Name)
@Html.ValidationSummary(false, "The company could not be saved due to the following errors:")
}