Make it possible to disable chores/tasks/batteries due soon filters/highlighting (closes #1485)

This commit is contained in:
Bernd Bestel
2022-01-23 19:20:23 +01:00
parent 04a3069294
commit cf52e5ec96
11 changed files with 26 additions and 12 deletions

View File

@@ -38,7 +38,7 @@
<div id="info-due-soon-batteries"
data-status-filter="duesoon"
data-next-x-days="{{ $nextXDays }}"
class="warning-message status-filter-message responsive-button"></div>
class="warning-message status-filter-message responsive-button @if($nextXDays == 0) d-none @endif"></div>
<div class="float-right">
<a class="btn btn-sm btn-outline-info d-md-none mt-1"
data-toggle="collapse"
@@ -79,7 +79,9 @@
<option value="all">{{ $__t('All') }}</option>
<option value="overdue">{{ $__t('Overdue') }}</option>
<option value="duetoday">{{ $__t('Due today') }}</option>
@if($nextXDays > 0)
<option value="duesoon">{{ $__t('Due soon') }}</option>
@endif
</select>
</div>
</div>