@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | $part = $options['data']; |
70 | 70 | |
71 | 71 | //Select the amount value type based on the |
72 | - if($part->useFloatAmount()) { |
|
72 | + if ($part->useFloatAmount()) { |
|
73 | 73 | $amount_class = NumberType::class; |
74 | 74 | } else { |
75 | 75 | $amount_class = IntegerType::class; |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | ->add('description', CKEditorType::class, ['required' => false, 'empty_data' => '', |
85 | 85 | 'label' => 'description.label', 'help' => 'bbcode.hint', 'config_name' => 'description_config', |
86 | 86 | 'attr' => ['placeholder' => 'part.description.placeholder', 'rows' => 2], |
87 | - 'disabled' => !$this->security->isGranted('description.edit', $part), 'empty_data' => '' ]) |
|
87 | + 'disabled' => !$this->security->isGranted('description.edit', $part), 'empty_data' => '']) |
|
88 | 88 | ->add('partUnit', StructuralEntityType::class, ['class'=> MeasurementUnit::class, |
89 | 89 | 'required' => false, 'disable_not_selectable' => true, 'label' => 'part.partUnit']) |
90 | 90 | ->add('minAmount', $amount_class, |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | 'disabled' => !$this->security->isGranted('move', $part), ]) |
99 | 99 | ->add('tags', TextType::class, ['required' => false, 'label' => 'part.tags', 'empty_data' => "", |
100 | 100 | 'attr' => ['data-role' => 'tagsinput'], |
101 | - 'disabled' => !$this->security->isGranted('edit', $part) ]) |
|
101 | + 'disabled' => !$this->security->isGranted('edit', $part)]) |
|
102 | 102 | ->add('comment', CKEditorType::class, ['required' => false, |
103 | 103 | 'label' => 'comment.label', 'attr' => ['rows' => 4], 'help' => 'bbcode.hint', |
104 | 104 | 'disabled' => !$this->security->isGranted('comment.edit', $part), 'empty_data' => '']); |