[closing motive] add an hierarchy + admin section for closing motives

This commit is contained in:
2020-03-12 12:19:15 +01:00
parent ceb3b5e955
commit e59f58f461
26 changed files with 712 additions and 41 deletions

View File

@@ -14,8 +14,7 @@ use Symfony\Component\Form\Extension\Core\Type\DateType;
use Chill\PersonBundle\Security\Authorization\PersonVoter;
use Chill\MainBundle\Form\Type\UserPickerType;
use Symfony\Component\Security\Core\Role\Role;
use Chill\PersonBundle\Form\Type\ClosingMotiveType;
use Chill\PersonBundle\Form\Type\ClosingMotivePickerType;
class AccompanyingPeriodType extends AbstractType
{
@@ -72,7 +71,7 @@ class AccompanyingPeriodType extends AbstractType
) {
$form->add('closingDate', DateType::class, array('required' => true,
'widget' => 'single_text', 'format' => 'dd-MM-yyyy'));
$form->add('closingMotive', ClosingMotiveType::class);
$form->add('closingMotive', ClosingMotivePickerType::class);
}
});