mirror of
https://github.com/grocy/grocy.git
synced 2026-04-08 13:46:14 +02:00
Add battery description column to batteries overview
This commit is contained in:
parent
9c123bd92a
commit
6a6ad57340
|
|
@ -97,6 +97,7 @@
|
||||||
href="#"><i class="fa-solid fa-eye"></i></a>
|
href="#"><i class="fa-solid fa-eye"></i></a>
|
||||||
</th>
|
</th>
|
||||||
<th>{{ $__t('Battery') }}</th>
|
<th>{{ $__t('Battery') }}</th>
|
||||||
|
<th>{{ $__t('Description') }}</th>
|
||||||
<th class="allow-grouping">{{ $__t('Used in') }}</th>
|
<th class="allow-grouping">{{ $__t('Used in') }}</th>
|
||||||
<th>{{ $__t('Last charged') }}</th>
|
<th>{{ $__t('Last charged') }}</th>
|
||||||
<th>{{ $__t('Next planned charge cycle') }}</th>
|
<th>{{ $__t('Next planned charge cycle') }}</th>
|
||||||
|
|
@ -166,6 +167,10 @@
|
||||||
data-battery-id="{{ $currentBatteryEntry->battery_id }}">
|
data-battery-id="{{ $currentBatteryEntry->battery_id }}">
|
||||||
{{ FindObjectInArrayByPropertyValue($batteries, 'id', $currentBatteryEntry->battery_id)->name }}
|
{{ FindObjectInArrayByPropertyValue($batteries, 'id', $currentBatteryEntry->battery_id)->name }}
|
||||||
</td>
|
</td>
|
||||||
|
<td class="fit-content"
|
||||||
|
data-battery-id="{{ $currentBatteryEntry->battery_id }}">
|
||||||
|
{{ FindObjectInArrayByPropertyValue($batteries, 'id', $currentBatteryEntry->battery_id)->description }}
|
||||||
|
</td>
|
||||||
<td class="fit-content">
|
<td class="fit-content">
|
||||||
{{ FindObjectInArrayByPropertyValue($batteries, 'id', $currentBatteryEntry->battery_id)->used_in }}
|
{{ FindObjectInArrayByPropertyValue($batteries, 'id', $currentBatteryEntry->battery_id)->used_in }}
|
||||||
</td>
|
</td>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user