feat: apply season task deadlines to all open checklist entries
This commit is contained in:
1 parent
3fe510e64e
commit
300bb2058f
5 files changed
+81
-1
No files matched your search
@@ -4,6 +4,7 @@ namespace App\Form;
|
||||
|
||||
use App\Entity\SeasonAssignmentTask;
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||
|
||||
@@ -27,6 +28,13 @@ class SeasonTaskDeadlineType extends AbstractType
|
||||
'required' => false,
|
||||
'help' => 'Ohne Angabe gilt Frist 1.',
|
||||
])
|
||||
// unmapped: the controller copies the entered deadlines onto the other entries
|
||||
->add('applyToAll', CheckboxType::class, [
|
||||
'label' => 'auf alle Fristen anwenden',
|
||||
'required' => false,
|
||||
'mapped' => false,
|
||||
'help' => 'Gilt für alle noch nicht erledigten Einträge. Leere Felder setzen deren Fristen auf den berechneten Wert zurück.',
|
||||
])
|
||||
;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user