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
98e3922c
Commit
98e3922c
authored
Sep 19, 2018
by
Mat
Browse files
resume mise en forme hop
parent
016cd4f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/PotageBundle/Resources/views/Membre/inc/offreALaCarte.html.twig
View file @
98e3922c
...
...
@@ -26,6 +26,7 @@
<div
class=
"texte"
>
<h5>
{{
legume.nom
}}
</h5>
<p>
{{
legume.description
}}
</p>
<p>
Max:
{{
legume.quantiteMax
}}
</p>
</div>
<div
class=
"prixQuantite"
>
<span
class=
"prixUnitr"
>
{{
legume.prixUnitaire
}}
</span>
...
...
src/PotageBundle/Resources/views/Membre/resume.html.twig
View file @
98e3922c
...
...
@@ -27,29 +27,43 @@
{%
for
commande
in
commandes
%}
<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
}}
</t
d
>
<t
d>
x
</td
>
<td>
{{
legume.prixUnitaire
}}
€ /
{{
legume.unite
}}
</td
>
<td>
=
</td
>
<td>
{{
legume.prix
}}
€
</t
d
>
<
table
class=
"table table-sm table-light"
>
<thead
class=
"thead-light
"
>
<tr
class=
""
>
<th
scope=
"col"
colspan=
"4"
>
<h4>
Commande n°
{{
commande.id
}}
(→ offre
{{
commande.offre.reference
}}
)
</
h4
>
</t
h
>
<t
h
scope=
"col"
colspan=
"2"
class=
"text-right pr-3"
>
<a
class=
"btn btn-sm btn-primary"
href=
"#"
><i
class=
"fas fa-pencil-alt fa-fw"
></i></a
>
<a
class=
"btn btn-sm btn-primary"
href=
"#"
><i
class=
"fas fa-trash-alt fa-fw"
></i></a
>
</t
h
>
</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>
|
</thead>
<tbody>
{%
for
legume
in
commande.commandeLegumes
%}
<tr>
<td
style=
"width: 45%;"
>
{{
legume.offreLegume.nom
}}
</td>
<td>
{{
legume.quantite
}}
{{
legume.unite
}}
</td>
<td>
x
</td>
<td>
{{
legume.prixUnitaire
}}
€ /
{{
legume.unite
}}
</td>
<td>
=
</td>
<td>
{{
legume.prix
}}
€
</td>
</tr>
{%
endfor
%}
</tbody>
<tfooter>
<tr
class=
"table-active"
>
<td
colspan=
"3"
>
<small>
Créée le
{{
commande.createdAt
|
date
(
'd/m/Y, à H:i:s'
)
}}
</small>
</td>
<td
colspan=
"3"
class=
"text-right pr-3"
>
Total :
</small
>
</td>
<
td><strong>
{{
commande.prixTotal
}}
€
</strong></td
>
</tr>
<strong>
{{
commande.prixTotal
}}
€
</strong
>
</td>
<
/tr
>
</t
foote
r>
</table>
</li>
...
...
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