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