Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kohinos-tav
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
agplv3
kohinos-tav
Commits
4d4abca6
Commit
4d4abca6
authored
Mar 06, 2024
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
presta products families : products fields turned into textarea and remove labels
parent
5f3b56a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
PrestataireProductFamilyFormType.php
src/Form/Type/PrestataireProductFamilyFormType.php
+9
-6
No files found.
src/Form/Type/PrestataireProductFamilyFormType.php
View file @
4d4abca6
...
...
@@ -7,7 +7,7 @@ use App\Entity\ProductFamily;
use
Symfony\Component\Form\AbstractType
;
use
Symfony\Component\Form\FormBuilderInterface
;
use
Symfony\Component\OptionsResolver\OptionsResolver
;
use
Symfony\Component\Form\Extension\Core\Type\TextType
;
use
Symfony\Component\Form\Extension\Core\Type\Text
area
Type
;
use
Symfony\Bridge\Doctrine\Form\Type\EntityType
;
...
...
@@ -19,15 +19,18 @@ class PrestataireProductFamilyFormType extends AbstractType
->
add
(
'productFamily'
,
EntityType
::
class
,
array
(
'class'
=>
ProductFamily
::
class
,
'choice_label'
=>
'name'
,
'label'
=>
'Famille de produits '
,
'label'
=>
false
,
'required'
=>
true
,
'placeholder'
=>
'Choisissez une famille'
,
'placeholder'
=>
'Choisissez une famille
de produits
'
,
'attr'
=>
[
'class'
=>
'prestataire-product-families-select'
]
))
->
add
(
'products'
,
TextType
::
class
,
[
'label'
=>
'Produits '
,
->
add
(
'products'
,
Text
area
Type
::
class
,
[
'label'
=>
false
,
'required'
=>
true
,
'attr'
=>
[
'class'
=>
'prestataire-product-families-products'
]
'attr'
=>
[
'class'
=>
'prestataire-product-families-products'
,
'placeholder'
=>
'Renseignez des produits correspondant à cette famille'
],
])
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment