@model EnVisage.Models.CompanyModel @using EnVisage.Code @{ ViewBag.Title = "Edit " + Model.Name; var availableUsers = Utils.GetUsers(false); } @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.LabelFor(model => model.Watchers, new { @class = "col-sm-2 control-label" })*@ @Html.Label("Company Watchers", new { @class = "col-sm-2 control-label" })
@Html.DropDownListFor(model => model.Watchers, availableUsers, new { @class = "form-control", @multiple = "multiple" })
@*@Html.LabelFor(model => model.Contributors, new { @class = "col-sm-2 control-label" })*@ @Html.Label("Company Contributors", new { @class = "col-sm-2 control-label" })
@Html.DropDownListFor(model => model.Contributors, availableUsers, new { @class = "form-control", @multiple = "multiple" })
@Html.ValidationSummary(false, "The company could not be saved due to the following errors:")
}