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