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
fd950c65
Commit
fd950c65
authored
Sep 17, 2018
by
Mat
Browse files
form commande flash message
parent
91f48f55
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/PotageBundle/Controller/MembreController.php
View file @
fd950c65
...
...
@@ -99,6 +99,7 @@ class MembreController extends MasterController
$em
=
$this
->
getDoctrine
()
->
getManager
();
$em
->
persist
(
$commande
);
$em
->
flush
();
$this
->
addFlash
(
'success'
,
'Votre commande a bien été enregistrée.'
);
}
...
...
src/PotageBundle/Resources/views/Membre/detailCommande.html.twig
View file @
fd950c65
...
...
@@ -31,4 +31,12 @@
<button
type=
"button"
class=
"btn btn-lg btn-block btn-primary float-right"
>
Envoyer la commande
</button>
{{
form
(
formCommande
)
}}
\ No newline at end of file
{%
for
label
,
messages
in
app.flashes
()
%}
{%
for
message
in
messages
%}
<div
class=
"flash-
{{
label
}}
"
>
{{
message
}}
</div>
{%
endfor
%}
{%
endfor
%}
{{
form
(
formCommande
)
}}
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