mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Implemented chore period intervals to have more flexible schedules (closes #312)
This commit is contained in:
@@ -86,6 +86,18 @@
|
||||
|
||||
<input type="hidden" id="period_config" name="period_config" value="@if($mode == 'edit'){{ $chore->period_config }}@endif">
|
||||
|
||||
@php if($mode == 'edit') { $value = $chore->period_interval; } else { $value = 1; } @endphp
|
||||
@include('components.numberpicker', array(
|
||||
'id' => 'period_interval',
|
||||
'label' => 'Period interval',
|
||||
'value' => $value,
|
||||
'min' => '1',
|
||||
'additionalCssClasses' => 'input-group-chore-period-type',
|
||||
'invalidFeedback' => $__t('This cannot be lower than %s', '1'),
|
||||
'additionalGroupCssClasses' => 'period-type-input period-type-daily period-type-weekly period-type-monthly',
|
||||
'hintId' => 'chore-period-interval-info'
|
||||
))
|
||||
|
||||
@if(GROCY_FEATURE_FLAG_CHORES_ASSIGNMENTS)
|
||||
<div class="form-group">
|
||||
<label for="assignment_type">{{ $__t('Assignment type') }} <span id="chore-assignment-type-info" class="small text-muted"></span></label>
|
||||
|
Reference in New Issue
Block a user