mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-16 13:24:31 +02:00
Improved styling of the BOM edit
This commit is contained in:
parent
b83b55b8d4
commit
a3ee51e76b
6 changed files with 66 additions and 11 deletions
|
@ -5,6 +5,7 @@ namespace App\Form\ProjectSystem;
|
|||
use App\Entity\Parts\Part;
|
||||
use App\Entity\ProjectSystem\ProjectBOMEntry;
|
||||
use App\Form\Type\PartSelectType;
|
||||
use App\Form\Type\RichTextEditorType;
|
||||
use App\Form\Type\SIUnitType;
|
||||
use Svg\Tag\Text;
|
||||
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
|
||||
|
@ -53,10 +54,14 @@ class ProjectBOMEntryType extends AbstractType
|
|||
'data-controller' => 'elements--tagsinput',
|
||||
]
|
||||
])
|
||||
->add('comment', TextType::class, [
|
||||
->add('comment', RichTextEditorType::class, [
|
||||
'required' => false,
|
||||
'label' => 'project.bom.comment',
|
||||
'empty_data' => ''
|
||||
'empty_data' => '',
|
||||
'mode' => 'markdown-single_line',
|
||||
'attr' => [
|
||||
'rows' => 2,
|
||||
],
|
||||
])
|
||||
;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue