mirror of
https://github.com/grocy/grocy.git
synced 2026-04-10 06:26:16 +02:00
Fix missing highlighting of "< X days"
This commit is contained in:
parent
6505470ecc
commit
50e6d7c565
|
|
@ -80,9 +80,7 @@
|
||||||
<tbody class="d-none">
|
<tbody class="d-none">
|
||||||
@foreach($current as $currentBatteryEntry)
|
@foreach($current as $currentBatteryEntry)
|
||||||
<tr id="battery-{{ $currentBatteryEntry->battery_id }}-row"
|
<tr id="battery-{{ $currentBatteryEntry->battery_id }}-row"
|
||||||
class="@if(FindObjectInArrayByPropertyValue($batteries, 'id', $currentBatteryEntry->battery_id)->charge_interval_days > 0 && $currentBatteryEntry->next_estimated_charge_time < date('Y-m-d H:i:s')) table-danger @elseif(FindObjectInArrayByPropertyValue($batteries, 'id', $currentBatteryEntry->battery_id)->charge_interval_days > 0 && $currentBatteryEntry->next_estimated_charge_time < date('Y-m-d H:i:s', strtotime("
|
class="@if(FindObjectInArrayByPropertyValue($batteries, 'id', $currentBatteryEntry->battery_id)->charge_interval_days > 0 && $currentBatteryEntry->next_estimated_charge_time < date('Y-m-d H:i:s')) table-danger @elseif(FindObjectInArrayByPropertyValue($batteries, 'id', $currentBatteryEntry->battery_id)->charge_interval_days > 0 && $currentBatteryEntry->next_estimated_charge_time < date('Y-m-d H:i:s', strtotime("+$nextXDays days")))
|
||||||
+$nextXDays
|
|
||||||
days")))
|
|
||||||
table-warning
|
table-warning
|
||||||
@endif">
|
@endif">
|
||||||
<td class="fit-content border-right">
|
<td class="fit-content border-right">
|
||||||
|
|
@ -149,8 +147,7 @@
|
||||||
,
|
,
|
||||||
$currentBatteryEntry->battery_id)->charge_interval_days > 0 && $currentBatteryEntry->next_estimated_charge_time < date('Y-m-d
|
$currentBatteryEntry->battery_id)->charge_interval_days > 0 && $currentBatteryEntry->next_estimated_charge_time < date('Y-m-d
|
||||||
H:i:s',
|
H:i:s',
|
||||||
strtotime("+$nextXDays
|
strtotime("+$nextXDays days")))
|
||||||
days")))
|
|
||||||
duesoon
|
duesoon
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
|
|
|
||||||
|
|
@ -110,9 +110,7 @@
|
||||||
<tbody class="d-none">
|
<tbody class="d-none">
|
||||||
@foreach($currentChores as $curentChoreEntry)
|
@foreach($currentChores as $curentChoreEntry)
|
||||||
<tr id="chore-{{ $curentChoreEntry->chore_id }}-row"
|
<tr id="chore-{{ $curentChoreEntry->chore_id }}-row"
|
||||||
class="@if(FindObjectInArrayByPropertyValue($chores, 'id', $curentChoreEntry->chore_id)->period_type !== \Grocy\Services\ChoresService::CHORE_PERIOD_TYPE_MANUALLY && $curentChoreEntry->next_estimated_execution_time < date('Y-m-d H:i:s')) table-danger @elseif(FindObjectInArrayByPropertyValue($chores, 'id', $curentChoreEntry->chore_id)->period_type !== \Grocy\Services\ChoresService::CHORE_PERIOD_TYPE_MANUALLY && $curentChoreEntry->next_estimated_execution_time < date('Y-m-d H:i:s', strtotime("
|
class="@if(FindObjectInArrayByPropertyValue($chores, 'id', $curentChoreEntry->chore_id)->period_type !== \Grocy\Services\ChoresService::CHORE_PERIOD_TYPE_MANUALLY && $curentChoreEntry->next_estimated_execution_time < date('Y-m-d H:i:s')) table-danger @elseif(FindObjectInArrayByPropertyValue($chores, 'id', $curentChoreEntry->chore_id)->period_type !== \Grocy\Services\ChoresService::CHORE_PERIOD_TYPE_MANUALLY && $curentChoreEntry->next_estimated_execution_time < date('Y-m-d H:i:s', strtotime("+$nextXDays days")))
|
||||||
+$nextXDays
|
|
||||||
days")))
|
|
||||||
table-warning
|
table-warning
|
||||||
@endif">
|
@endif">
|
||||||
<td class="fit-content border-right">
|
<td class="fit-content border-right">
|
||||||
|
|
@ -191,8 +189,7 @@
|
||||||
,
|
,
|
||||||
$curentChoreEntry->chore_id)->period_type !== \Grocy\Services\ChoresService::CHORE_PERIOD_TYPE_MANUALLY && $curentChoreEntry->next_estimated_execution_time < date('Y-m-d
|
$curentChoreEntry->chore_id)->period_type !== \Grocy\Services\ChoresService::CHORE_PERIOD_TYPE_MANUALLY && $curentChoreEntry->next_estimated_execution_time < date('Y-m-d
|
||||||
H:i:s',
|
H:i:s',
|
||||||
strtotime("+$nextXDays
|
strtotime("+$nextXDays days")))
|
||||||
days")))
|
|
||||||
duesoon
|
duesoon
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
|
|
|
||||||
|
|
@ -54,9 +54,7 @@
|
||||||
<tbody class="d-none">
|
<tbody class="d-none">
|
||||||
@foreach($stockEntries as $stockEntry)
|
@foreach($stockEntries as $stockEntry)
|
||||||
<tr id="stock-{{ $stockEntry->id }}-row"
|
<tr id="stock-{{ $stockEntry->id }}-row"
|
||||||
class="@if(GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING && $stockEntry->best_before_date < date('Y-m-d 23:59:59', strtotime('-1 days')) && $stockEntry->amount > 0) table-danger @elseif(GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING && $stockEntry->best_before_date < date('Y-m-d 23:59:59', strtotime("
|
class="@if(GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING && $stockEntry->best_before_date < date('Y-m-d 23:59:59', strtotime('-1 days')) && $stockEntry->amount > 0) table-danger @elseif(GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING && $stockEntry->best_before_date < date('Y-m-d 23:59:59', strtotime("+$nextXDays days"))
|
||||||
+$nextXDays
|
|
||||||
days"))
|
|
||||||
&&
|
&&
|
||||||
$stockEntry->amount > 0) table-warning @endif">
|
$stockEntry->amount > 0) table-warning @endif">
|
||||||
<td class="fit-content border-right">
|
<td class="fit-content border-right">
|
||||||
|
|
|
||||||
|
|
@ -142,9 +142,7 @@
|
||||||
<tbody class="d-none">
|
<tbody class="d-none">
|
||||||
@foreach($currentStock as $currentStockEntry)
|
@foreach($currentStock as $currentStockEntry)
|
||||||
<tr id="product-{{ $currentStockEntry->product_id }}-row"
|
<tr id="product-{{ $currentStockEntry->product_id }}-row"
|
||||||
class="@if(GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING && $currentStockEntry->best_before_date < date('Y-m-d 23:59:59', strtotime('-1 days')) && $currentStockEntry->amount > 0) table-danger @elseif(GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING && $currentStockEntry->best_before_date < date('Y-m-d 23:59:59', strtotime("
|
class="@if(GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING && $currentStockEntry->best_before_date < date('Y-m-d 23:59:59', strtotime('-1 days')) && $currentStockEntry->amount > 0) table-danger @elseif(GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING && $currentStockEntry->best_before_date < date('Y-m-d 23:59:59', strtotime("+$nextXDays days"))
|
||||||
+$nextXDays
|
|
||||||
days"))
|
|
||||||
&&
|
&&
|
||||||
$currentStockEntry->amount > 0) table-warning @elseif ($currentStockEntry->product_missing) table-info @endif">
|
$currentStockEntry->amount > 0) table-warning @elseif ($currentStockEntry->product_missing) table-info @endif">
|
||||||
<td class="fit-content border-right">
|
<td class="fit-content border-right">
|
||||||
|
|
@ -324,8 +322,7 @@
|
||||||
&&
|
&&
|
||||||
$currentStockEntry->amount > 0) expired @elseif($currentStockEntry->best_before_date < date('Y-m-d
|
$currentStockEntry->amount > 0) expired @elseif($currentStockEntry->best_before_date < date('Y-m-d
|
||||||
23:59:59',
|
23:59:59',
|
||||||
strtotime("+$nextXDays
|
strtotime("+$nextXDays days"))
|
||||||
days"))
|
|
||||||
&&
|
&&
|
||||||
$currentStockEntry->amount > 0) expiring @endif @if($currentStockEntry->product_missing) belowminstockamount @endif
|
$currentStockEntry->amount > 0) expiring @endif @if($currentStockEntry->product_missing) belowminstockamount @endif
|
||||||
</td>
|
</td>
|
||||||
|
|
|
||||||
|
|
@ -156,8 +156,7 @@
|
||||||
@if($task->done == 1) text-muted @endif @if(!empty($task->due_date) && $task->due_date < date('Y-m-d'))
|
@if($task->done == 1) text-muted @endif @if(!empty($task->due_date) && $task->due_date < date('Y-m-d'))
|
||||||
overdue
|
overdue
|
||||||
@elseif(!empty($task->due_date) && $task->due_date < date('Y-m-d',
|
@elseif(!empty($task->due_date) && $task->due_date < date('Y-m-d',
|
||||||
strtotime("+$nextXDays
|
strtotime("+$nextXDays days")))
|
||||||
days")))
|
|
||||||
duesoon
|
duesoon
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user