Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mathieu
potage
Commits
62a64004
Commit
62a64004
authored
Jun 23, 2018
by
Mat
Browse files
fixe la hauteur des textarea
parent
118703b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/PotageBundle/Form/Info/InfoType.php
View file @
62a64004
...
...
@@ -17,28 +17,27 @@ class InfoType extends AbstractType
public
function
buildForm
(
FormBuilderInterface
$builder
,
array
$options
)
{
// title varchar(150) not null,
$builder
->
add
(
'title'
,
TextType
::
class
,
array
(
'label'
=>
"Titre"
,
'label_attr'
=>
array
(
'class'
=>
'col-form-label'
),
'attr'
=>
array
(
'class'
=>
'form-control form-control-sm'
),
));
// subtitle varchar(150) not null,
$builder
->
add
(
'subtitle'
,
TextType
::
class
,
array
(
'label'
=>
"Soustitre"
,
'label_attr'
=>
array
(
'class'
=>
'col-form-label'
),
'attr'
=>
array
(
'class'
=>
'form-control form-control-sm'
),
));
// text longtext not null,
$builder
->
add
(
'text'
,
TextareaType
::
class
,
array
(
'label'
=>
"Texte"
,
'label_attr'
=>
array
(
'class'
=>
'col-form-label'
),
'attr'
=>
array
(
'class'
=>
'form-control form-control-sm'
),
'attr'
=>
array
(
'class'
=>
'form-control form-control-sm'
,
'rows'
=>
'7'
,
),
));
// isPost tinyint(1) not null,
$builder
->
add
(
'isPost'
,
ChoiceType
::
class
,
array
(
'label'
=>
"Actualité ou Info pratique ?"
,
'choices'
=>
array
(
...
...
@@ -49,7 +48,6 @@ class InfoType extends AbstractType
'attr'
=>
array
(
'class'
=>
'form-control form-control-sm'
),
));
// postedAt
// TODO doit apparaitre seulement si actualité est coché !
$builder
->
add
(
'postedAt'
,
DateTimeType
::
class
,
array
(
'label'
=>
"Date de publication"
,
...
...
@@ -60,7 +58,6 @@ class InfoType extends AbstractType
'attr'
=>
array
(
'class'
=>
'form-control form-control-sm'
),
));
// status enum ('draft', 'posted', 'trash') null,
$builder
->
add
(
'status'
,
ChoiceType
::
class
,
array
(
'label'
=>
"Statut"
,
'choices'
=>
array
(
...
...
@@ -73,14 +70,12 @@ class InfoType extends AbstractType
'attr'
=>
array
(
'class'
=>
'form-control form-control-sm'
),
));
// color varchar(10) not null,
$builder
->
add
(
'color'
,
TextType
::
class
,
array
(
'label'
=>
"Couleur du texte"
,
'label_attr'
=>
array
(
'class'
=>
'col-form-label'
),
'attr'
=>
array
(
'class'
=>
'form-control form-control-sm'
),
));
$builder
->
add
(
'sauver'
,
SubmitType
::
class
,
array
(
'label'
=>
'Enregistrer'
,
'attr'
=>
array
(
'class'
=>
'btn btn-dark mb-2'
)
...
...
src/PotageBundle/Form/Legume/LegumeType.php
View file @
62a64004
...
...
@@ -47,6 +47,7 @@ class LegumeType extends AbstractType
'label_attr'
=>
array
(
'class'
=>
'col-form-label'
),
'attr'
=>
array
(
'class'
=>
'form-control form-control-sm'
,
'rows'
=>
'4'
,
),
));
$builder
->
add
(
'revente'
,
CheckboxType
::
class
,
array
(
...
...
Write
Preview
Supports
Markdown
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