Make it possible to track any information on chore execution (by using Userfields, closes #825)

This commit is contained in:
Bernd Bestel
2021-07-11 19:44:06 +02:00
parent 27b46e1abf
commit 198216f38b
7 changed files with 44 additions and 16 deletions

View File

@@ -77,6 +77,10 @@
@if(GROCY_FEATURE_FLAG_CHORES_ASSIGNMENTS)
<th>{{ $__t('Done by') }}</th>
@endif
@include('components.userfields_thead', array(
'userfields' => $userfields
))
</tr>
</thead>
<tbody class="d-none">
@@ -116,6 +120,11 @@
@endif
</td>
@endif
@include('components.userfields_tbody', array(
'userfields' => $userfields,
'userfieldValues' => FindAllObjectsInArrayByPropertyValue($userfieldValues, 'object_id', $choreLogEntry->id)
))
</tr>
@endforeach
</tbody>

View File

@@ -52,6 +52,11 @@
value="{{ GROCY_USER_ID }}">
@endif
@include('components.userfieldsform', array(
'userfields' => $userfields,
'entity' => 'chores_log'
))
<button id="save-choretracking-button"
class="btn btn-success">{{ $__t('OK') }}</button>