mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +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>
|
||||
|
@@ -44,6 +44,11 @@
|
||||
'invalidFeedback' => $__t('This can only be before now')
|
||||
))
|
||||
|
||||
@include('components.userfieldsform', array(
|
||||
'userfields' => $userfields,
|
||||
'entity' => 'battery_charge_cycles'
|
||||
))
|
||||
|
||||
<button id="save-batterytracking-button"
|
||||
class="btn btn-success">{{ $__t('OK') }}</button>
|
||||
|
||||
|
Reference in New Issue
Block a user