@* Codes - Code *@
@model Model_Code
@inject SbmLocaliser Localiser
@{
ViewData["Title"] = "Codes";
Model.AdditionalFiles_JS.Add("js/sbm-cod.js");
}
@* Filter form - wrap header to include paging controls. *@
@using (@Html.BeginForm(FormMethod.Post, new { @id = "frmCodeFilter", @class = "sbm-form", @onSubmit = "return false;" }))
{
@* Filter Panel *@
@Localiser["label.code.type"]
@Html.DropDownListFor(model => model.Filter.CodeTypeCode, Model.GetCodeTypesForSelect(), new { @id = "", @class = "FilterCodeTypeCode", @maxlength = "32" })
@Localiser["label.search"]
@Html.TextBoxFor(model => model.Filter.Search, new { @id = "", @class = "FilterSearch", @maxlength = "32" })
}
| @Localiser["label.type"] |
@Localiser["label.code"] |
@Localiser["label.description"] |
@Localiser["label.status"] |
|
|
@* Element templates *@
@* Filter Burger option template - ul is ignored *@
@* Code row template - table is ignored. *@
@* Item Burger option template - ul is ignored *@
@using (@Html.BeginForm(FormMethod.Post, new { @id = "frmCodeId", @onSubmit = "return false;" }))
{
@Html.HiddenFor(model => model.Code.Id, new { @id = "", @class = "CodeId" })
}
@using (@Html.BeginForm(FormMethod.Post, new { @id = "frmCategories", @onSubmit = "return false;" }))
{
}
@using (@Html.BeginForm(FormMethod.Post, new { @id = "frmCode", @class = "sbm-form", @onSubmit = "return false;" }))
{
@Html.HiddenFor(model => model.Code.Exists, new { @id = "", @class = "CodeExists" })
@Html.HiddenFor(model => model.Code.Id, new { @id = "", @class = "CodeId" })
@* Type *@
@* Code *@
@* Sequence *@
@* Description *@
@* Status *@
@* Notes *@
}
@* Select Item dialog and script *@