@model EnVisage.Models.UOMModel @{ ViewBag.Title = Model != null && Model.Id != Guid.Empty ? "Edit " + Model.Name : "Add New Unit of Measure"; } @section Scripts { }
@using (Html.BeginForm("Edit", "UnitOfMeasure", FormMethod.Post, new { @class = "panel form-horizontal" })) { @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.LabelFor(model => model.UOMValue, new { @class = "col-sm-2 control-label" })
@Html.TextBoxFor(model => model.UOMValue, new { @class = "form-control" }) @Html.ValidationMessageFor(model => model.UOMValue)
@Html.ValidationSummary(false, "The unit of measure could not be saved due to the following errors:")
Back to list @if (Model != null && Model.Id != Guid.Empty) { if (Model.ExpenditureCategoryCount > 0) { Delete } else { Delete } }
}