Commit 6c6e9051 authored by Mat's avatar Mat

une page resume pour rediriger après la commande

parent bd19643c
......@@ -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(
));
}
}
......@@ -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
......
......@@ -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 %}
......
......@@ -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 %}
......
......@@ -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: #ffffffad;
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment