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
6c6e9051
Commit
6c6e9051
authored
Sep 18, 2018
by
Mat
Browse files
une page resume pour rediriger après la commande
parent
bd19643c
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/PotageBundle/Controller/MembreController.php
View file @
6c6e9051
...
...
@@ -153,6 +153,8 @@ class MembreController extends MasterController
$em
->
flush
();
$this
->
addFlash
(
'success'
,
'Votre commande a bien été enregistrée.'
);
return
$this
->
redirectToRoute
(
'potage_resume'
);
}
return
$this
->
render
(
'@Potage/Membre/today.html.twig'
,
array
(
...
...
@@ -277,4 +279,16 @@ class MembreController extends MasterController
];
}
/**
* @return \Symfony\Component\HttpFoundation\Response
*/
public
function
resumeAction
()
{
return
$this
->
render
(
'PotageBundle:Membre:resume.html.twig'
,
array
(
));
}
}
src/PotageBundle/Resources/config/routing.yml
View file @
6c6e9051
...
...
@@ -20,6 +20,12 @@ potage_today_one:
_controller
:
PotageBundle:Membre:todayOne
methods
:
[
GET
,
POST
]
potage_resume
:
path
:
/member/resume
defaults
:
_controller
:
PotageBundle:Membre:resume
methods
:
[
GET
]
### ADMIN
### des pages master, qui consomment l'APIBundle en ajax
...
...
src/PotageBundle/Resources/views/Membre/inc/detailCommande.html.twig
View file @
6c6e9051
...
...
@@ -35,7 +35,7 @@
{%
for
label
,
messages
in
app.flashes
()
%}
{%
for
message
in
messages
%}
<div
class=
"
flash
-
{{
label
}}
"
>
<div
class=
"
alert alert
-
{{
label
}}
"
role=
"alert"
>
{{
message
}}
</div>
{%
endfor
%}
...
...
src/PotageBundle/Resources/views/Membre/resume.html.twig
View file @
6c6e9051
...
...
@@ -12,9 +12,19 @@
<div
class=
"row"
>
hop
{%
for
label
,
messages
in
app.flashes
()
%}
{%
for
message
in
messages
%}
<div
class=
"alert alert-
{{
label
}}
"
role=
"alert"
>
{{
message
}}
</div>
{%
endfor
%}
{%
endfor
%}
</div>
{#
<div class="row ">
<div class="col-5">
{% include '@Potage/Membre/inc/user.html.twig' %}
...
...
@@ -23,8 +33,9 @@
{% include '@Potage/Membre/inc/livraison.html.twig' %}
</div>
</div>
{{ dump() }}
#}
</div>
</div>
{%
endblock
%}
...
...
web/css/style.css
View file @
6c6e9051
...
...
@@ -337,6 +337,7 @@ span.posted:first-letter {
/*
* Background photo
*/
body
#resume
,
body
[
id
^=
'today'
],
body
#homepage
{
background-image
:
url("img/serre_bg.jpg")
;
...
...
@@ -344,6 +345,7 @@ body#homepage {
background-size
:
cover
;
background-attachment
:
fixed
;
}
body
#resume
.bloc
,
body
[
id
^=
'today'
]
.bloc
,
body
#homepage
.bloc
{
background-color
:
#ffffff
ad
;
...
...
@@ -355,6 +357,7 @@ body#homepage .bloc.welcome {
color
:
white
;
margin-top
:
21em
;
}
body
#resume
footer
#footer
.footer
,
body
[
id
^=
'today'
]
footer
#footer
.footer
,
body
#homepage
footer
#footer
.footer
{
background-color
:
white
;
...
...
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