Skip to content

Commit

Permalink
Merge pull request #159 from vsimakhin/feature/show-totals-for-tables
Browse files Browse the repository at this point in the history
show total number of rows for the tables
  • Loading branch information
vsimakhin authored Sep 17, 2023
2 parents 908b63d + 487651e commit 2a240b4
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
1 change: 0 additions & 1 deletion cmd/web/templates/licensing-js.partials.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ wlbLicensing = function () {
],
ordering: false,
paging: true,
info: false,
ajax: '/licensing/data',
lengthMenu: [[parseInt(lengthMenu), -1], [lengthMenu, "All"]],
drawCallback: function ( settings ) {
Expand Down
1 change: 0 additions & 1 deletion cmd/web/templates/logbook-js.partials.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down
2 changes: 1 addition & 1 deletion cmd/web/templates/logbook.page.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
</thead>
<tbody></tbody>
</table>

<br>
<a id="new-flight-record" href="{{$api.LogbookNew}}" class="btn btn-sm btn-outline-secondary" onclick=""><i class="bi bi-plus-square-fill"></i> Add New Flight Record</a>
<div class="btn-group dropend">
<button type="button" class="btn btn-sm btn-outline-secondary dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
Expand Down
2 changes: 0 additions & 2 deletions cmd/web/templates/settings-js.partials.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,6 @@ wlbSettings = function () {
function initCustomAirportsTable() {
airports_custom = $('#airports_custom').DataTable({
ordering: true,
info: false,
lengthMenu: [[15, 30, -1], [15, 30, "All"]],
columnDefs: [
{ targets: [3,4,5], className: "dt-body-center" },
Expand Down Expand Up @@ -450,7 +449,6 @@ wlbSettings = function () {
airports_db = $('#airports_db').DataTable({
ordering: true,
bLengthChange: false,
info: false,
ajax: "{{index .API "AirportStandardData"}}",
lengthMenu: [[20], [20]],
columnDefs: [
Expand Down

0 comments on commit 2a240b4

Please sign in to comment.