mirror of
https://github.com/grocy/grocy.git
synced 2025-10-19 19:36:35 +00:00
Finish first version of tasks feature
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
'limitEndToNow' => false,
|
||||
'limitStartToNow' => false,
|
||||
'invalidFeedback' => $L('A due date is required'),
|
||||
'nextInputSelector' => '',
|
||||
'nextInputSelector' => 'category_id',
|
||||
'additionalCssClasses' => 'date-only-datetimepicker',
|
||||
'isRequired' => false
|
||||
))
|
||||
@@ -63,6 +63,19 @@
|
||||
</select>
|
||||
</div>
|
||||
|
||||
@php
|
||||
$initUserId = GROCY_USER_ID;
|
||||
if ($mode == 'edit')
|
||||
{
|
||||
$initUserId = $task->assigned_to_user_id;
|
||||
}
|
||||
@endphp
|
||||
@include('components.userpicker', array(
|
||||
'label' => 'Assigned to',
|
||||
'users' => $users,
|
||||
'prefillByUserId' => $initUserId
|
||||
))
|
||||
|
||||
<button id="save-task-button" type="submit" class="btn btn-success">{{ $L('Save') }}</button>
|
||||
|
||||
</form>
|
||||
|
Reference in New Issue
Block a user