@* 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;" })) {
@Localiser["label.codes"]
@* Burger menu *@
@* 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. *@
@* Burger menu *@
@* 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 *@
@Html.TextBoxFor(model => model.Code.Code, new { @id = "ifCodeCode", @class = "CodeCode sbm-input", @maxlength = 3 })
@* Sequence *@
@Html.TextBoxFor(model => model.Code.Sequence, new { @id = "ifCodeSequence", @class = "CodeSequence sbm-input", @maxlength = 3 })
@* Description *@
@Html.TextBoxFor(model => model.Code.Description, new { @id = "ifCodeDescription", @class = "CodeDescription sbm-input", @maxlength = @Model.GetControlMaxLength(SaCodeTypeDbDfn.ColumnIdx.SaCode_Description) })
@* Status *@
@* Notes *@
@Html.TextAreaFor(model => model.Code.Notes, new { @id = "ifCodeNotes", @class = "CodeNotes sbm-textarea", @rows = 3, @maxlength = @Model.GetControlMaxLength(SaCodeTypeDbDfn.ColumnIdx.SaCode_Notes) })
}
@* Select Item dialog and script *@