mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-21 03:14:52 +02:00
Added an "twig" lines mode, where the label lines are processed via a sandboxed twig.
This commit is contained in:
parent
c2db827c9d
commit
11225eb9cc
11 changed files with 548 additions and 7 deletions
|
@ -105,6 +105,23 @@ class LabelOptionsType extends AbstractType
|
|||
],
|
||||
'required' => false,
|
||||
]);
|
||||
|
||||
$builder->add('lines_mode', ChoiceType::class, [
|
||||
'label' => 'label_options.lines_mode.label',
|
||||
'choices' => [
|
||||
'label_options.lines_mode.html' => 'html',
|
||||
'label.options.lines_mode.twig' => 'twig',
|
||||
],
|
||||
'help' => 'label_options.lines_mode.help',
|
||||
'help_html' => true,
|
||||
'expanded' => true,
|
||||
'attr' => [
|
||||
'class' => 'pt-2'
|
||||
],
|
||||
'label_attr' => [
|
||||
'class' => 'radio-custom radio-inline'
|
||||
]
|
||||
]);
|
||||
}
|
||||
|
||||
public function configureOptions(OptionsResolver $resolver)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue