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
6219c528
Commit
6219c528
authored
Sep 18, 2018
by
Mat
Browse files
page de résumé des commandes en cours, tableau avec le détail
parent
a0eeaf43
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/PotageBundle/Resources/views/Membre/resume.html.twig
View file @
6219c528
...
...
@@ -21,23 +21,45 @@
<h1>
Commandes en cours
</h1>
<ul>
<li>
<a
href=
"
{{
path
(
'potage_today'
)
}}
"
>
Pass
er une nouvelle commande
</a>
<li
class=
"mb-3"
>
<h4>
<a
href=
"
{{
path
(
'potage_today'
)
}}
"
>
Ajout
er une nouvelle commande
</a>
</h4>
</li>
{%
for
commande
in
commandes
%}
<li>
<a
href=
"#"
>
Commande n°
{{
commande.id
}}
</a>
,
<small>
enregistrée le
{{
commande.createdAt
|
date
(
'd/m/Y, à H:i:s'
)
}}
(→ offre
{{
commande.offre.reference
}}
)
</small>
<li
class=
"mb-5"
>
<h4>
Commande n°
{{
commande.id
}}
(→ offre
{{
commande.offre.reference
}}
)
</h4>
<table
class=
"table table-sm"
>
{%
for
legume
in
commande.commandeLegumes
%}
<tr>
<td
style=
"width: 45%;"
>
{{
legume.offreLegume.nom
}}
</td>
<td>
{{
legume.quantite
}}
</td>
<td>
x
</td>
<td>
{{
legume.prixUnitaire
}}
€ /
{{
legume.unite
}}
</td>
<td>
=
</td>
<td>
{{
legume.prix
}}
€
</td>
</tr>
{%
endfor
%}
<tr
class=
"table-active"
>
<td
colspan=
"5"
>
<small>
Le
{{
commande.createdAt
|
date
(
'd/m/Y, à H:i:s'
)
}}
|
<a
href=
"#"
>
Modifier
</a>
|
<a
href=
"#"
>
Supprimer
</a>
|
Total :
</small>
</td>
<td><strong>
{{
commande.prixTotal
}}
€
</strong></td>
</tr>
</table>
</li>
{%
endfor
%}
</ul>
<h1>
Historique des commandes
</h1>
{#
<h1>Historique des commandes</h1>
<div class="row ">
<div class="col-5">
{% include '@Potage/Membre/inc/user.html.twig' %}
...
...
@@ -46,6 +68,7 @@
{% include '@Potage/Membre/inc/livraison.html.twig' %}
</div>
</div>
{{ dump() }}
#}
...
...
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