@model EnVisage.Models.RoleModel @using EnVisage.Code.HtmlHelpers @{ ViewBag.Title = (Model.Id != Guid.Empty) ? "Edit " + Model.Name : "Add New Role"; } @section Scripts { }
@using (Html.BeginForm("Edit", "Role", FormMethod.Post, new { @class = "panel form-horizontal", id = "frmEdit" })) { @Html.AntiForgeryToken() @Html.HiddenFor(t=>t.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.GetAreaItemsList(@Url, Model)
@* @Html.GetProjectTree(@Url, null, Model.Id)
*@
@Html.ValidationSummary(false, "The role could not be saved due to the following errors:")
Back to list @if (Model.Id != Guid.Empty) { Delete }
}