Add battery description column to batteries overview

This commit is contained in:
Manuel Worschech 2024-03-17 20:08:54 +01:00
parent 9c123bd92a
commit 6a6ad57340

View File

@ -97,6 +97,7 @@
href="#"><i class="fa-solid fa-eye"></i></a>
</th>
<th>{{ $__t('Battery') }}</th>
<th>{{ $__t('Description') }}</th>
<th class="allow-grouping">{{ $__t('Used in') }}</th>
<th>{{ $__t('Last charged') }}</th>
<th>{{ $__t('Next planned charge cycle') }}</th>
@ -166,6 +167,10 @@
data-battery-id="{{ $currentBatteryEntry->battery_id }}">
{{ FindObjectInArrayByPropertyValue($batteries, 'id', $currentBatteryEntry->battery_id)->name }}
</td>
<td class="fit-content"
data-battery-id="{{ $currentBatteryEntry->battery_id }}">
{{ FindObjectInArrayByPropertyValue($batteries, 'id', $currentBatteryEntry->battery_id)->description }}
</td>
<td class="fit-content">
{{ FindObjectInArrayByPropertyValue($batteries, 'id', $currentBatteryEntry->battery_id)->used_in }}
</td>