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
1b15b256
Commit
1b15b256
authored
Jun 13, 2018
by
Mat
Browse files
améliore le select 'offre' dans LettreType, et dans OffreLegumeInsertType
parent
16c8e4c2
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/PotageBundle/Entity/Offre.php
View file @
1b15b256
...
...
@@ -144,7 +144,7 @@ class Offre
*/
public
function
getReferenceMore
()
{
return
'(#'
.
sprintf
(
"%03d"
,
$this
->
id
)
.
') référence '
.
$this
->
reference
;
return
$this
->
reference
.
' [ '
.
(
$this
->
status
===
'draft'
?
'en préparation'
:
'publié'
)
.
' ][ '
.
count
(
$this
->
offreLegumes
)
.
' légumes ]'
;
}
/**
...
...
src/PotageBundle/Form/Lettre/LettreType.php
View file @
1b15b256
...
...
@@ -39,9 +39,9 @@ class LettreType extends AbstractType
->
setParameters
(
array
(
':draft'
=>
'draft'
,
':current'
=>
'current'
))
->
orderBy
(
'o.
reference
'
,
'
DE
SC'
);
->
orderBy
(
'o.
status
'
,
'
A
SC'
);
},
'choice_label'
=>
'getReference'
,
'choice_label'
=>
'getReference
More
'
,
'label'
=>
"À laquelle on joint une offre"
,
'label_attr'
=>
array
(
'class'
=>
'col-form-label'
),
'attr'
=>
array
(
'class'
=>
'form-control form-control-sm'
),
...
...
src/PotageBundle/Form/OffreLegumes/OffreLegumesInsertType.php
View file @
1b15b256
...
...
@@ -34,8 +34,8 @@ class OffreLegumesInsertType extends AbstractType
->
orderBy
(
'o.reference'
,
'DESC'
);
},
'choice_label'
=>
'getReferenceMore'
,
'la
bel
'
=>
'Choisissez une offre'
,
'
p
la
ceholder
'
=>
'Offres en préparation
:
'
,
'
p
la
ceholder
'
=>
'Choisissez une offre'
,
'la
bel
'
=>
'Offres en préparation'
,
'attr'
=>
array
(
'class'
=>
'form-control form-control-sm'
),
));
}
...
...
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