mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-20 10:57:40 +02:00
Added the possibility to add additional CSS to label.
This commit is contained in:
parent
8b372a3443
commit
fde1d7be4f
6 changed files with 116 additions and 23 deletions
|
@ -26,6 +26,7 @@ use FOS\CKEditorBundle\Form\Type\CKEditorType;
|
|||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\NumberType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||
|
||||
|
@ -95,6 +96,15 @@ class LabelOptionsType extends AbstractType
|
|||
],
|
||||
'config_name' => 'label_config',
|
||||
]);
|
||||
|
||||
$builder->add('additional_css', TextareaType::class, [
|
||||
'label' => 'label_options.additional_css.label',
|
||||
'empty_data' => '',
|
||||
'attr' => [
|
||||
'rows' => 4,
|
||||
],
|
||||
'required' => false,
|
||||
]);
|
||||
}
|
||||
|
||||
public function configureOptions(OptionsResolver $resolver)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue