location admin: add active field on Location and LocationType

This commit is contained in:
nobohan
2021-10-22 12:14:32 +02:00
parent 7dc4590580
commit 154416cddf
9 changed files with 105 additions and 2 deletions

View File

@@ -51,6 +51,14 @@ final class LocationFormType extends AbstractType
'use_valid_from' => false,
'use_valid_to' => false,
'mapped' => false,
])
->add('active', ChoiceType::class,
[
'choices' => [
'Yes' => true,
'No' => false
],
'expanded' => true
]);
}

View File

@@ -41,6 +41,14 @@ final class LocationTypeType extends AbstractType
'never' => LocationType::STATUS_NEVER,
],
'expanded' => true
])
->add('active', ChoiceType::class,
[
'choices' => [
'Yes' => true,
'No' => false
],
'expanded' => true
]);
}
}