Make it possible to hide columns (closes #1058)

Hide new overview page columns by default
This commit is contained in:
Bernd Bestel
2020-11-11 21:11:17 +01:00
parent b15740bded
commit 0245a925b7
30 changed files with 307 additions and 58 deletions

View File

@@ -70,7 +70,13 @@
class="table table-sm table-striped nowrap w-100">
<thead>
<tr>
<th class="border-right"></th>
<th class="border-right"><a id="change-table-columns-visibility"
class="text-muted"
data-toggle="tooltip"
title="{{ $__t('Hide/view columns') }}"
data-table-selector="#batteries-table"
href="#"><i class="fas fa-eye"></i></a>
</th>
<th>{{ $__t('Name') }}</th>
<th>{{ $__t('Description') }}</th>
<th>{{ $__t('Used in') }}</th>

View File

@@ -65,7 +65,13 @@
class="table table-sm table-striped nowrap w-100">
<thead>
<tr>
<th class="border-right"></th>
<th class="border-right"><a id="change-table-columns-visibility"
class="text-muted"
data-toggle="tooltip"
title="{{ $__t('Hide/view columns') }}"
data-table-selector="#batteries-journal-table"
href="#"><i class="fas fa-eye"></i></a>
</th>
<th>{{ $__t('Battery') }}</th>
<th>{{ $__t('Tracked time') }}</th>
</tr>

View File

@@ -87,7 +87,13 @@
class="table table-sm table-striped nowrap w-100">
<thead>
<tr>
<th class="border-right"></th>
<th class="border-right"><a id="change-table-columns-visibility"
class="text-muted"
data-toggle="tooltip"
title="{{ $__t('Hide/view columns') }}"
data-table-selector="#batteries-overview-table"
href="#"><i class="fas fa-eye"></i></a>
</th>
<th>{{ $__t('Battery') }}</th>
<th>{{ $__t('Used in') }}</th>
<th>{{ $__t('Last charged') }}</th>

View File

@@ -70,7 +70,13 @@
class="table table-sm table-striped nowrap w-100">
<thead>
<tr>
<th class="border-right"></th>
<th class="border-right"><a id="change-table-columns-visibility"
class="text-muted"
data-toggle="tooltip"
title="{{ $__t('Hide/view columns') }}"
data-table-selector="#chores-table"
href="#"><i class="fas fa-eye"></i></a>
</th>
<th>{{ $__t('Name') }}</th>
<th>{{ $__t('Period type') }}</th>
<th>{{ $__t('Description') }}</th>

View File

@@ -65,7 +65,13 @@
class="table table-sm table-striped nowrap w-100">
<thead>
<tr>
<th class="border-right"></th>
<th class="border-right"><a id="change-table-columns-visibility"
class="text-muted"
data-toggle="tooltip"
title="{{ $__t('Hide/view columns') }}"
data-table-selector="#chores-journal-table"
href="#"><i class="fas fa-eye"></i></a>
</th>
<th>{{ $__t('Chore') }}</th>
<th>{{ $__t('Tracked time') }}</th>
@if(GROCY_FEATURE_FLAG_CHORES_ASSIGNMENTS)

View File

@@ -109,7 +109,13 @@
class="table table-sm table-striped nowrap w-100">
<thead>
<tr>
<th class="border-right"></th>
<th class="border-right"><a id="change-table-columns-visibility"
class="text-muted"
data-toggle="tooltip"
title="{{ $__t('Hide/view columns') }}"
data-table-selector="#chores-overview-table"
href="#"><i class="fas fa-eye"></i></a>
</th>
<th>{{ $__t('Chore') }}</th>
<th>{{ $__t('Next estimated tracking') }}</th>
<th>{{ $__t('Last tracked') }}</th>

View File

@@ -61,7 +61,13 @@
class="table table-sm table-striped nowrap w-100">
<thead>
<tr>
<th class="border-right"></th>
<th class="border-right"><a id="change-table-columns-visibility"
class="text-muted"
data-toggle="tooltip"
title="{{ $__t('Hide/view columns') }}"
data-table-selector="#equipment-table"
href="#"><i class="fas fa-eye"></i></a>
</th>
<th>{{ $__t('Name') }}</th>
@include('components.userfields_thead', array(

View File

@@ -70,7 +70,13 @@
class="table table-sm table-striped nowrap w-100">
<thead>
<tr>
<th class="border-right"></th>
<th class="border-right"><a id="change-table-columns-visibility"
class="text-muted"
data-toggle="tooltip"
title="{{ $__t('Hide/view columns') }}"
data-table-selector="#locations-table"
href="#"><i class="fas fa-eye"></i></a>
</th>
<th>{{ $__t('Name') }}</th>
<th>{{ $__t('Description') }}</th>

View File

@@ -75,7 +75,13 @@
class="table table-sm table-striped nowrap w-100">
<thead>
<tr>
<th class="border-right"></th>
<th class="border-right"><a id="change-table-columns-visibility"
class="text-muted"
data-toggle="tooltip"
title="{{ $__t('Hide/view columns') }}"
data-table-selector="#apikeys-table"
href="#"><i class="fas fa-eye"></i></a>
</th>
<th>{{ $__t('API key') }}</th>
<th>{{ $__t('User') }}</th>
<th>{{ $__t('Expires') }}</th>

View File

@@ -393,7 +393,13 @@
class="table table-sm table-striped nowrap w-100">
<thead>
<tr>
<th class="border-right"></th>
<th class="border-right"><a id="change-table-columns-visibility"
class="text-muted"
data-toggle="tooltip"
title="{{ $__t('Hide/view columns') }}"
data-table-selector="#barcode-table"
href="#"><i class="fas fa-eye"></i></a>
</th>
<th>{{ $__t('Barcode') }}</th>
@if(GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING)
<th>{{ $__t('Store') }}</th>
@@ -478,7 +484,13 @@
class="table table-sm table-striped nowrap w-100">
<thead>
<tr>
<th class="border-right"></th>
<th class="border-right"><a id="change-table-columns-visibility"
class="text-muted"
data-toggle="tooltip"
title="{{ $__t('Hide/view columns') }}"
data-table-selector="#qu-conversion-table"
href="#"><i class="fas fa-eye"></i></a>
</th>
<th>{{ $__t('Quantity unit from') }}</th>
<th>{{ $__t('Quantity unit to') }}</th>
<th>{{ $__t('Factor') }}</th>

View File

@@ -70,7 +70,13 @@
class="table table-sm table-striped nowrap w-100">
<thead>
<tr>
<th class="border-right"></th>
<th class="border-right"><a id="change-table-columns-visibility"
class="text-muted"
data-toggle="tooltip"
title="{{ $__t('Hide/view columns') }}"
data-table-selector="#productgroups-table"
href="#"><i class="fas fa-eye"></i></a>
</th>
<th>{{ $__t('Name') }}</th>
<th>{{ $__t('Description') }}</th>
<th>{{ $__t('Product count') }}</th>

View File

@@ -88,7 +88,13 @@
class="table table-sm table-striped nowrap w-100">
<thead>
<tr>
<th class="border-right"></th>
<th class="border-right"><a id="change-table-columns-visibility"
class="text-muted"
data-toggle="tooltip"
title="{{ $__t('Hide/view columns') }}"
data-table-selector="#products-table"
href="#"><i class="fas fa-eye"></i></a>
</th>
<th>{{ $__t('Name') }}</th>
<th class="@if(!GROCY_FEATURE_FLAG_STOCK_LOCATION_TRACKING) d-none @endif">{{ $__t('Location') }}</th>
<th>{{ $__t('Min. stock amount') }}</th>

View File

@@ -126,7 +126,13 @@
class="table table-sm table-striped nowrap w-100">
<thead>
<tr>
<th class="border-right"></th>
<th class="border-right"><a id="change-table-columns-visibility"
class="text-muted"
data-toggle="tooltip"
title="{{ $__t('Hide/view columns') }}"
data-table-selector="#qu-conversions-table"
href="#"><i class="fas fa-eye"></i></a>
</th>
<th>{{ $__t('Factor') }}</th>
<th>{{ $__t('Unit') }}</th>
</tr>

View File

@@ -70,7 +70,13 @@
class="table table-sm table-striped nowrap w-100">
<thead>
<tr>
<th class="border-right"></th>
<th class="border-right"><a id="change-table-columns-visibility"
class="text-muted"
data-toggle="tooltip"
title="{{ $__t('Hide/view columns') }}"
data-table-selector="#quantityunits-table"
href="#"><i class="fas fa-eye"></i></a>
</th>
<th>{{ $__t('Name') }}</th>
<th>{{ $__t('Description') }}</th>

View File

@@ -145,11 +145,17 @@
class="table table-sm table-striped nowrap w-100">
<thead>
<tr>
<th class="border-right"></th>
<th class="border-right"><a id="change-table-columns-visibility"
class="text-muted"
data-toggle="tooltip"
title="{{ $__t('Hide/view columns') }}"
data-table-selector="#recipes-pos-table"
href="#"><i class="fas fa-eye"></i></a>
</th>
<th>{{ $__t('Product') }}</th>
<th>{{ $__t('Amount') }}</th>
<th class="fit-content">{{ $__t('Note') }}</th>
<th class="d-none">Hiden ingredient group</th>
<th class="d-none">Hidden ingredient group</th>
</tr>
</thead>
<tbody class="d-none">
@@ -242,7 +248,13 @@
class="table table-sm table-striped nowrap w-100">
<thead>
<tr>
<th class="border-right"></th>
<th class="border-right"><a id="change-table-columns-visibility"
class="text-muted"
data-toggle="tooltip"
title="{{ $__t('Hide/view columns') }}"
data-table-selector="#recipes-includes-table"
href="#"><i class="fas fa-eye"></i></a>
</th>
<th>{{ $__t('Recipe') }}</th>
<th>{{ $__t('Servings') }}</th>
</tr>

View File

@@ -99,7 +99,13 @@
class="table table-sm table-striped nowrap w-100">
<thead>
<tr>
<th class="border-right"></th>
<th class="border-right"><a id="change-table-columns-visibility"
class="text-muted"
data-toggle="tooltip"
title="{{ $__t('Hide/view columns') }}"
data-table-selector="#recipes-table"
href="#"><i class="fas fa-eye"></i></a>
</th>
<th>{{ $__t('Name') }}</th>
<th>{{ $__t('Desired servings') }}</th>
<th>{{ $__t('Requirements fulfilled') }}</th>

View File

@@ -175,10 +175,16 @@
class="table table-sm table-striped nowrap w-100">
<thead>
<tr>
<th class="border-right"></th>
<th class="border-right"><a id="change-table-columns-visibility"
class="text-muted"
data-toggle="tooltip"
title="{{ $__t('Hide/view columns') }}"
data-table-selector="#shoppinglist-table"
href="#"><i class="fas fa-eye"></i></a>
</th>
<th>{{ $__t('Product') }} / <em>{{ $__t('Note') }}</em></th>
<th>{{ $__t('Amount') }}</th>
<th class="d-none">Hiden product group</th>
<th class="d-none">Hidden product group</th>
<th class="d-none">Hidden status</th>
@include('components.userfields_thead', array(

View File

@@ -70,7 +70,13 @@
class="table table-sm table-striped nowrap w-100">
<thead>
<tr>
<th class="border-right"></th>
<th class="border-right"><a id="change-table-columns-visibility"
class="text-muted"
data-toggle="tooltip"
title="{{ $__t('Hide/view columns') }}"
data-table-selector="#shoppinglocations-table"
href="#"><i class="fas fa-eye"></i></a>
</th>
<th>{{ $__t('Name') }}</th>
<th>{{ $__t('Description') }}</th>

View File

@@ -36,7 +36,13 @@
class="table table-sm table-striped nowrap w-100">
<thead>
<tr>
<th class="border-right"></th>
<th class="border-right"><a id="change-table-columns-visibility"
class="text-muted"
data-toggle="tooltip"
title="{{ $__t('Hide/view columns') }}"
data-table-selector="#stockentries-table"
href="#"><i class="fas fa-eye"></i></a>
</th>
<th class="d-none">product_id</th> <!-- This must be in the first column for searching -->
<th>{{ $__t('Product') }}</th>
<th>{{ $__t('Amount') }}</th>

View File

@@ -76,7 +76,13 @@
class="table table-sm table-striped nowrap w-100">
<thead>
<tr>
<th class="border-right"></th>
<th class="border-right"><a id="change-table-columns-visibility"
class="text-muted"
data-toggle="tooltip"
title="{{ $__t('Hide/view columns') }}"
data-table-selector="#stock-journal-table"
href="#"><i class="fas fa-eye"></i></a>
</th>
<th>{{ $__t('Product') }}</th>
<th>{{ $__t('Amount') }}</th>
<th>{{ $__t('Booking time') }}</th>

View File

@@ -145,7 +145,13 @@
class="table table-sm table-striped nowrap w-100">
<thead>
<tr>
<th class="border-right"></th>
<th class="border-right"><a id="change-table-columns-visibility"
class="text-muted"
data-toggle="tooltip"
title="{{ $__t('Hide/view columns') }}"
data-table-selector="#stock-overview-table"
href="#"><i class="fas fa-eye"></i></a>
</th>
<th>{{ $__t('Product') }}</th>
<th>{{ $__t('Product group') }}</th>
<th>{{ $__t('Amount') }}</th>

View File

@@ -70,7 +70,13 @@
class="table table-sm table-striped nowrap w-100">
<thead>
<tr>
<th class="border-right"></th>
<th class="border-right"><a id="change-table-columns-visibility"
class="text-muted"
data-toggle="tooltip"
title="{{ $__t('Hide/view columns') }}"
data-table-selector="#taskcategories-table"
href="#"><i class="fas fa-eye"></i></a>
</th>
<th>{{ $__t('Name') }}</th>
<th>{{ $__t('Description') }}</th>

View File

@@ -105,7 +105,13 @@
class="table table-sm table-striped nowrap w-100">
<thead>
<tr>
<th class="border-right"></th>
<th class="border-right"><a id="change-table-columns-visibility"
class="text-muted"
data-toggle="tooltip"
title="{{ $__t('Hide/view columns') }}"
data-table-selector="#tasks-table"
href="#"><i class="fas fa-eye"></i></a>
</th>
<th>{{ $__t('Task') }}</th>
<th>{{ $__t('Due') }}</th>
<th class="d-none">Hidden category</th>

View File

@@ -66,7 +66,13 @@
class="table table-sm table-striped nowrap w-100">
<thead>
<tr>
<th class="border-right"></th>
<th class="border-right"><a id="change-table-columns-visibility"
class="text-muted"
data-toggle="tooltip"
title="{{ $__t('Hide/view columns') }}"
data-table-selector="#userentities-table"
href="#"><i class="fas fa-eye"></i></a>
</th>
<th>{{ $__t('Name') }}</th>
<th>{{ $__t('Caption') }}</th>
</tr>

View File

@@ -80,7 +80,13 @@
class="table table-sm table-striped nowrap w-100">
<thead>
<tr>
<th class="border-right"></th>
<th class="border-right"><a id="change-table-columns-visibility"
class="text-muted"
data-toggle="tooltip"
title="{{ $__t('Hide/view columns') }}"
data-table-selector="#userfields-table"
href="#"><i class="fas fa-eye"></i></a>
</th>
<th>{{ $__t('Entity') }}</th>
<th>{{ $__t('Name') }}</th>
<th>{{ $__t('Caption') }}</th>

View File

@@ -66,7 +66,13 @@
class="table table-sm table-striped nowrap w-100">
<thead>
<tr>
<th class="border-right"></th>
<th class="border-right"><a id="change-table-columns-visibility"
class="text-muted"
data-toggle="tooltip"
title="{{ $__t('Hide/view columns') }}"
data-table-selector="#users-table"
href="#"><i class="fas fa-eye"></i></a>
</th>
<th>{{ $__t('Username') }}</th>
<th>{{ $__t('First name') }}</th>
<th>{{ $__t('Last name') }}</th>