Enhance and fix some bugs
This commit is contained in:
@@ -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'])
|
||||
;
|
||||
|
||||
@@ -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
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user