@model EnVisage.Models.GLAccountModel @{ ViewBag.Title = Model != null ? "Edit " + Model.Name : "Add New GL Account"; } @section Scripts { }
@using (Html.BeginForm("Edit", "GLAccount", FormMethod.Post, new { @class = "panel form-horizontal" })) { @Html.AntiForgeryToken() @Html.HiddenFor(t => t.Id)
Account 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)
@Html.ValidationSummary(false, "The GL Account could not be saved due to the following errors:")
Back to list @if (Model != null && Model.Id != Guid.Empty) { if (Model.ExpenditureCount > 0 || Model.ClientCount > 0) { Delete } else { Delete } }
 
 
}