mirror of
https://github.com/grocy/grocy.git
synced 2025-08-29 09:16:31 +00:00
Add userfields to battery charge cycle tracking (#2490)
Co-authored-by: Manuel Worschech <mw@abot.xyz>
This commit is contained in:
@@ -91,6 +91,10 @@
|
||||
</th>
|
||||
<th class="allow-grouping">{{ $__t('Battery') }}</th>
|
||||
<th>{{ $__t('Tracked time') }}</th>
|
||||
|
||||
@include('components.userfields_thead', array(
|
||||
'userfields' => $userfields
|
||||
))
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="d-none">
|
||||
@@ -121,6 +125,11 @@
|
||||
<time class="timeago timeago-contextual"
|
||||
datetime="{{ $chargeCycleEntry->tracked_time }}"></time>
|
||||
</td>
|
||||
|
||||
@include('components.userfields_tbody', array(
|
||||
'userfields' => $userfields,
|
||||
'userfieldValues' => FindAllObjectsInArrayByPropertyValue($userfieldValues, 'object_id', $chargeCycleEntry->id)
|
||||
))
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
Reference in New Issue
Block a user