Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show total number of rows for the tables #159

Merged
merged 1 commit into from
Sep 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading