Enhance and fix some bugs

This commit is contained in:
Xbird
2022-04-07 19:37:10 +00:00
parent 32adcdaad4
commit b3cf967a4d
16 changed files with 158 additions and 42 deletions

View File

@@ -57,11 +57,14 @@ class DirectoryType extends AbstractType
->add('height', HeightType::class)
->add('weight', WeightType::class)
->add('address', AddressType::class, ['required' => false])
->add('hasNoPapers', null, ['label' => 'form_label_hasnopapers'])
;
if ($user->getAdminMode() || in_array('general_legal_view', $userPermissions)) {
$builder
->add('gang', GangListType::class)
->add('gangInfo', null, ['label' => 'form_label_gang_info'])
->add('wanted', null, ['label' => 'form_label_wanted'])
->add('wantedReason', null, ['label' => 'form_label_wantedReason', 'help' => 'form_help_wantedReason'])
;

View File

@@ -22,7 +22,7 @@ class GangListType extends AbstractType
'choice_label' => 'title',
'placeholder' => 'form_placeholder_gang',
'help' => 'form_help_gang',
'label' => false,
'label' => 'form_label_gang',
'required' => false
]);
}