mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Added a sub feature flag to disable chore assignments when not needed
This commit is contained in:
@@ -86,6 +86,7 @@
|
||||
|
||||
<input type="hidden" id="period_config" name="period_config" value="@if($mode == 'edit'){{ $chore->period_config }}@endif">
|
||||
|
||||
@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>
|
||||
<select required class="form-control input-group-chore-assignment-type" id="assignment_type" name="assignment_type">
|
||||
@@ -105,6 +106,10 @@
|
||||
</select>
|
||||
<div class="invalid-feedback">{{ $__t('This assignment type requires that at least one is assigned') }}</div>
|
||||
</div>
|
||||
@else
|
||||
<input type="hidden" id="assignment_type" name="assignment_type" value="{{ \Grocy\Services\ChoresService::CHORE_ASSIGNMENT_TYPE_NO_ASSIGNMENT }}">
|
||||
<input type="hidden" id="assignment_config" name="assignment_config" value="">
|
||||
@endif
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-check">
|
||||
|
Reference in New Issue
Block a user