feat: hide past assignments by default, include via filtersetting

This commit is contained in:
Björn Fromme
2024-07-15 14:37:15 +02:00
parent dcaf338da8
commit 5a0c998d2b
5 changed files with 30 additions and 0 deletions
+5
View File
@@ -10,6 +10,7 @@ use App\Model\AssignmentFilterDto;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Bundle\SecurityBundle\Security;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\FormBuilderInterface;
@@ -51,6 +52,10 @@ class AssignmentFilterType extends AbstractType
'Mehr als einen Woche' => AssignmentFilterDto::DURATION_MORE,
],
])
->add('includePast', CheckboxType::class, [
'label' => 'vergangene Einsätze anzeigen',
'required' => false,
])
->add('apply', SubmitType::class, [
'label' => 'filtern',
])