Added possibility to edit and view the aboutMe information of users

This commit is contained in:
Jan Böhmer 2023-04-02 20:26:42 +02:00
parent 047c82791b
commit 065417038c
7 changed files with 57 additions and 0 deletions

View file

@ -29,6 +29,7 @@ use App\Entity\UserSystem\User;
use App\Form\Permissions\PermissionsType;
use App\Form\Type\CurrencyEntityType;
use App\Form\Type\MasterPictureAttachmentType;
use App\Form\Type\RichTextEditorType;
use App\Form\Type\StructuralEntityType;
use App\Form\Type\ThemeChoiceType;
use Symfony\Component\Form\AbstractType;
@ -126,6 +127,16 @@ class UserAdminForm extends AbstractType
'required' => false,
'disabled' => !$this->security->isGranted('edit_infos', $entity),
])
->add('aboutMe', RichTextEditorType::class, [
'required' => false,
'empty_data' => '',
'label' => 'user.aboutMe.label',
'attr' => [
'rows' => 4,
],
'mode' => 'markdown-full',
'disabled' => !$this->security->isGranted('edit_infos', $entity),
])
//Config section
->add('language', LanguageType::class, [