@* Instance - Owner *@ @model Model_Owner @inject SbmLocaliser Localiser @{ ViewData["Title"] = "Instance - Owner"; Model.AdditionalFiles_JS.Add("js/sbc-res-pag.js"); Model.AdditionalFiles_JS.Add("js/sbc-ins-own.js"); }
@* Filter form - wrap header to include paging controls. *@ @using (@Html.BeginForm(FormMethod.Post, new { @id = "frmOwnerFilter", @class = "sbc-form", @onSubmit = "return false;" })) {
@Localiser["label.owners"]
@* Burger menu *@
@* Filter Panel *@
@Localiser["label.search"]
@Html.TextBoxFor(model => model.Filter.Search, new { @type = "search", @id = "", @class = "FilterSearch sbc-input", @maxlength = "32" })
}
@Localiser["label.name"] @Localiser["label.contact"] @Localiser["label.email"] @Localiser["label.phone"] @Localiser["label.status"]
@* Element templates *@
@* Filter Burger option template - ul is ignored *@
  • XXX
@* Owner row template - table is ignored. *@
@* Burger menu *@
@* Item Burger option template - ul is ignored *@
  • XXX
@using (@Html.BeginForm(FormMethod.Post, new { @id = "frmOwnerId", @onSubmit = "return false;" })) { @Html.HiddenFor(model => model.Owner.Id, new { @id = "", @class = "OwnerId" }) }
@using (@Html.BeginForm(FormMethod.Post, new { @id = "frmOwner", @class = "sbc-form", @onSubmit = "return false;" })) { @Html.HiddenFor(model => model.Owner.Exists, new { @id = "", @class = "OwnerExists" }) @Html.HiddenFor(model => model.Owner.Id, new { @id = "", @class = "OwnerId" }) @* Name *@
@Html.TextBoxFor(model => model.Owner.Name, new { @id = "ifOwnerName", @class = "OwnerName sbc-input", @maxlength = @Model.GetControlMaxLength(SbmDbDfn_Control.ColumnIdx.Owner_Name) })
@* Contact Name *@
@Html.TextBoxFor(model => model.Owner.ContactName, new { @id = "ifOwnerContactName", @class = "OwnerContactName sbc-input", @maxlength = @Model.GetControlMaxLength(SbmDbDfn_Control.ColumnIdx.Owner_ContactName) })
@* Contact Email Address *@
@Html.TextBoxFor(model => model.Owner.ContactEmailAddress, new { @id = "ifOwnerContactEmailAddress", @class = "OwnerContactEmailAddress sbc-input", @maxlength = @Model.GetControlMaxLength(SbmDbDfn_Control.ColumnIdx.Owner_ContactEmailAddress) })
@* PhoneMain *@
@Html.TextBoxFor(model => model.Owner.ContactPhoneMain, new { @id = "ifOwnerContactPhoneMain", @class = "OwnerContactPhoneMain sbc-input", @maxlength = @Model.GetControlMaxLength(SbmDbDfn_Control.ColumnIdx.Owner_ContactPhoneMain) })
@* PhoneAlt *@
@Html.TextBoxFor(model => model.Owner.ContactPhoneAlt, new { @id = "ifOwnerContactPhoneAlt", @class = "OwnerContactPhoneAlt sbc-input", @maxlength = @Model.GetControlMaxLength(SbmDbDfn_Control.ColumnIdx.Owner_ContactPhoneAlt) })
@* Owner Status *@
}