@model EnVisage.Models.ViewModel @{ ViewBag.Title = Model.Id != Guid.Empty ? "Edit " + Model.Name : "Add New View"; } @section Scripts { }
@using (Html.BeginForm("Edit", "View", FormMethod.Post, new { @class = "panel form-horizontal" })) { @Html.AntiForgeryToken() @Html.HiddenFor(t => t.Id)
View Information
@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.GLNumber, new { @class = "col-sm-2 control-label" })
@Html.TextBoxFor(model => model.GLNumber, new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.GLNumber)
*@
Users
@Html.Partial("_users", Model.Users)
Companies
@Html.Partial("_companies", Model.Companies)
Cost Centers
@Html.Partial("_costcenters", Model.CostCenters)
Teams
@Html.Partial("_editTeams", Model.AllTeams)
@Html.ValidationSummary(false, "The View could not be saved due to the following errors:")
Back to list @if (Model != null && Model.Id != Guid.Empty) { if (Model.TeamCount > 0) { Delete } else { Delete } }
 
 
}