From 487651e34af9ece96557a6eb82bfbe8f89aa34bb Mon Sep 17 00:00:00 2001 From: Vladimir Simakhin Date: Sun, 17 Sep 2023 18:38:37 +0200 Subject: [PATCH] show total number of rows for the tables --- CHANGELOG.md | 1 + cmd/web/templates/licensing-js.partials.gohtml | 1 - cmd/web/templates/logbook-js.partials.gohtml | 1 - cmd/web/templates/logbook.page.gohtml | 2 +- cmd/web/templates/settings-js.partials.gohtml | 2 -- 5 files changed, 2 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dab22df..f049cf7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## [Unreleased] +- Update: Show the total number of rows for most of the tables (Logbook, Licensing, Airports) - New: Date Range Picker first day of the week settings - Sunday or Monday. - New: Attachments synchronization support for the mobile application. diff --git a/cmd/web/templates/licensing-js.partials.gohtml b/cmd/web/templates/licensing-js.partials.gohtml index e2315f6..b212be3 100644 --- a/cmd/web/templates/licensing-js.partials.gohtml +++ b/cmd/web/templates/licensing-js.partials.gohtml @@ -19,7 +19,6 @@ wlbLicensing = function () { ], ordering: false, paging: true, - info: false, ajax: '/licensing/data', lengthMenu: [[parseInt(lengthMenu), -1], [lengthMenu, "All"]], drawCallback: function ( settings ) { diff --git a/cmd/web/templates/logbook-js.partials.gohtml b/cmd/web/templates/logbook-js.partials.gohtml index 4fcb041..6d483ba 100644 --- a/cmd/web/templates/logbook-js.partials.gohtml +++ b/cmd/web/templates/logbook-js.partials.gohtml @@ -18,7 +18,6 @@ wlbLogbook = function () { table = $('#logbook').DataTable({ bAutoWidth: false, ordering: false, - info: false, ajax: '{{index .API "LogbookData"}}', lengthMenu: [[parseInt(lengthMenu), -1], [lengthMenu, "All"]], columnDefs: [ diff --git a/cmd/web/templates/logbook.page.gohtml b/cmd/web/templates/logbook.page.gohtml index 674729b..cf149b1 100644 --- a/cmd/web/templates/logbook.page.gohtml +++ b/cmd/web/templates/logbook.page.gohtml @@ -48,7 +48,7 @@ - +
Add New Flight Record