@using EnVisage.Code.HtmlHelpers @using Microsoft.AspNet.Identity @using EnVisage.Code @model EnVisage.Models.NoteModel @if (Html.CheckSecurityObjectPermission(Areas.Projects, AccessLevel.Write)) { ViewBag.AllowEdit = true; } @using (Html.BeginForm((Model.Id == null || Model.Id == new Guid()) ? "AddNote" : "EditNote", "Project", FormMethod.Post, new { @class = "form-horizontal innerForm" })) { @Html.AntiForgeryToken() @Html.HiddenFor(model => model.Id) @Html.HiddenFor(model => model.ParentId)
}