@* Assets - Asset *@ @model Model_Asset @inject SbmLocaliser Localiser @{ ViewData["Title"] = "Assets"; Model.AdditionalFiles_JS.Add("js/sbm-asset.js"); }
@* Filter form - wrap header to include paging controls. *@ @using (@Html.BeginForm(FormMethod.Post, new { @id = "frmAssetFilter", @class = "sbm-form", @onSubmit = "return false;" })) {
@Localiser["label.assets"]
@* Burger menu *@
@* Filter Panel *@
@Localiser["label.search"]
@Html.TextBoxFor(model => model.Filter.Search, new { @id = "", @class = "FilterSearch", @maxlength = "32" })
}
@Localiser["label.category"] @Localiser["label.serial"] @Localiser["label.description"] @Localiser["label.status"]
@* Element templates *@
@* Filter Burger option template - ul is ignored *@
  • XXX
@* Asset row template - table is ignored. *@
@* Burger menu *@
@* Item Burger option template - ul is ignored *@
  • XXX
@using (@Html.BeginForm(FormMethod.Post, new { @id = "frmAssetId", @onSubmit = "return false;" })) { @Html.HiddenFor(model => model.Asset.Id, new { @id = "", @class = "AssetId" }) } @using (@Html.BeginForm(FormMethod.Post, new { @id = "frmCategories", @onSubmit = "return false;" })) { }
@using (@Html.BeginForm(FormMethod.Post, new { @id = "frmAsset", @class = "sbm-form", @onSubmit = "return false;" })) { @Html.HiddenFor(model => model.Asset.Exists, new { @id = "", @class = "AssetExists" }) @Html.HiddenFor(model => model.Asset.Id, new { @id = "", @class = "AssetId" }) @* Type *@
@Html.HiddenFor(model => model.Asset.CategoryId, new { @id = "", @class = "AssetCategoryId" })
@* Serial Number*@
@Html.TextBoxFor(model => model.Asset.SerialNumber, new { @id = "ifAssetSerialNumber", @class = "AssetSerialNumber sbm-input upper", @maxlength = @Model.GetControlMaxLength(SbmDbDfn.ColumnIdx.SaAsset_SerialNumber) })
@* Description *@
@Html.TextBoxFor(model => model.Asset.DescBrief, new { @id = "ifAssetDescription", @class = "AssetDescription sbm-input", @maxlength = @Model.GetControlMaxLength(SbmDbDfn.ColumnIdx.SaAsset_DescBrief) })
@* Status *@
@* Notes *@
@Html.TextAreaFor(model => model.Asset.Notes, new { @id = "ifAssetNotes", @class = "AssetNotes sbm-textarea", @rows = 3, @maxlength = @Model.GetControlMaxLength(SbmDbDfn.ColumnIdx.SaAsset_Notes) })
}
@* Select Item dialog and script *@