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
75fba3d5
Commit
75fba3d5
authored
Sep 19, 2018
by
Mat
Browse files
restructure les blocks du template de la page today
parent
54cdb557
Changes
6
Hide whitespace changes
Inline
Side-by-side
src/PotageBundle/Resources/views/Membre/inc/detailCommande.html.twig
deleted
100755 → 0
View file @
54cdb557
{#
<table class="table table-sm table-hover">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">First</th>
<th scope="col">Last</th>
<th scope="col">Handle</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
</tr>
<tr>
<th scope="row">2</th>
<td>Jacob</td>
<td>Thornton</td>
<td>@fat</td>
</tr>
<tr>
<th scope="row">3</th>
<td>Larry</td>
<td>the Bird</td>
<td>@twitter</td>
</tr>
</tbody>
</table>
<button type="button" class="btn btn-lg btn-block btn-primary float-right">Envoyer la commande</button>
#}
{%
for
label
,
messages
in
app.flashes
()
%}
{%
for
message
in
messages
%}
<div
class=
"alert alert-
{{
label
}}
"
role=
"alert"
>
{{
message
}}
</div>
{%
endfor
%}
{%
endfor
%}
{{
form_start
(
formCommande
)
}}
<ul
id=
"commandeLegumes"
>
{%
for
legume
in
formCommande.commandeLegumes
%}
<li
class=
"formItem"
data-legume-id=
"
{{
legume.vars.data.offreLegume.id
}}
"
>
{{
form_row
(
legume.quantite
)
}}
{{
form_row
(
legume.prix
)
}}
</li>
{%
endfor
%}
</ul>
{{
form_end
(
formCommande
)
}}
src/PotageBundle/Resources/views/Membre/inc/livraison.html.twig
View file @
75fba3d5
{%
if
groupeOne
is
not
null
%}
<div
class=
"livraison"
>
<h3>
Groupe de
{{
groupeOne.nom
}}
</h3>
<p>
<strong>
Livraison
</strong>
: chaque
{{
groupeOne.depot.jourPanier
|
replace
(
{
'1'
:
'lundi'
,
'2'
:
'mardi'
,
'3'
:
'mercredi'
,
'4'
:
'jeudi'
,
'5'
:
'vendredi'
,
'6'
:
'samedi'
,
'7'
:
'dimanche'
,
}
)
}}
, à partir de
{{
groupeOne.depot.heurePanier
|
date
(
'H:i'
)
}}
<br>
<strong>
Point de dépôt
</strong>
:
{{
groupeOne.depot.localisation
}}
<br>
</p>
<div
class=
"col-5"
>
{%
if
app.user
%}
<div
class=
"user"
>
{%
if
app.user.utilisateur
%}
<h3>
{{
app.user.utilisateur.prenom
}}
{{
app.user.utilisateur.nom
}}
</h3>
{%
endif
%}
<p>
{%
if
is_granted
(
'ROLE_SUPER_ADMIN'
)
%}
Administrateur
<br>
{%
elseif
is_granted
(
'ROLE_ADMIN'
)
%}
Maraîcher
<br>
{%
else
%}{%
endif
%}
Username:
{{
app.user.username
}}
<br>
Email:
{{
app.user.email
}}
<br>
{#
Dernière connexion: {{ app.user.lastLogin|date("d M Y, à H:i:s") }}
#}
</p>
</div>
{%
endif
%}
</div>
{%
endif
%}
<div
class=
"col-7"
>
{%
if
groupeOne
is
not
null
%}
<div
class=
"livraison"
>
<h3>
Groupe de
{{
groupeOne.nom
}}
</h3>
<p>
<strong>
Livraison
</strong>
: chaque
{{
groupeOne.depot.jourPanier
|
replace
(
{
'1'
:
'lundi'
,
'2'
:
'mardi'
,
'3'
:
'mercredi'
,
'4'
:
'jeudi'
,
'5'
:
'vendredi'
,
'6'
:
'samedi'
,
'7'
:
'dimanche'
,
}
)
}}
, à partir de
{{
groupeOne.depot.heurePanier
|
date
(
'H:i'
)
}}
<br>
<strong>
Point de dépôt
</strong>
:
{{
groupeOne.depot.localisation
}}
<br>
</p>
</div>
{%
endif
%}
</div>
\ No newline at end of file
src/PotageBundle/Resources/views/Membre/inc/panier.html.twig
0 → 100755
View file @
75fba3d5
<div
class=
"col-7"
>
{#
<table class="table table-sm table-hover">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">First</th>
<th scope="col">Last</th>
<th scope="col">Handle</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
</tr>
<tr>
<th scope="row">2</th>
<td>Jacob</td>
<td>Thornton</td>
<td>@fat</td>
</tr>
<tr>
<th scope="row">3</th>
<td>Larry</td>
<td>the Bird</td>
<td>@twitter</td>
</tr>
</tbody>
</table>
<button type="button" class="btn btn-lg btn-block btn-primary float-right">Envoyer la commande</button>
#}
{{
form_start
(
formCommande
)
}}
<ul
id=
"commandeLegumes"
>
{%
for
legume
in
formCommande.commandeLegumes
%}
<li
class=
"formItem"
data-legume-id=
"
{{
legume.vars.data.offreLegume.id
}}
"
>
{{
form_row
(
legume.quantite
)
}}
{{
form_row
(
legume.prix
)
}}
</li>
{%
endfor
%}
</ul>
{{
form_end
(
formCommande
)
}}
</div>
<div
class=
"col-5"
>
<div
id=
"total"
>
<h4>
Total
</h4>
<p
class=
"h1"
>
16.85 €
</p>
<small>
<i>
Le total de la commande est donné à titre indicatif.
Votre maraîcher se réserve le droit d'adapter légèrement les quantités et le prix
en fonction des limites et de l'état du stock disponible.
</i>
</small>
</div>
</div>
src/PotageBundle/Resources/views/Membre/inc/total.html.twig
deleted
100755 → 0
View file @
54cdb557
<div
id=
"total"
>
<h4>
Total
</h4>
<p
class=
"h1"
>
16.85 €
</p>
<small>
<i>
Le total de la commande est donné à titre indicatif.
Votre maraîcher se réserve le droit d'adapter légèrement les quantités et le prix
en fonction des limites et de l'état du stock disponible.
</i>
</small>
</div>
src/PotageBundle/Resources/views/Membre/inc/user.html.twig
deleted
100755 → 0
View file @
54cdb557
{%
if
app.user
%}
<div
class=
"user"
>
{%
if
app.user.utilisateur
%}
<h3>
{{
app.user.utilisateur.prenom
}}
{{
app.user.utilisateur.nom
}}
</h3>
{%
endif
%}
<p>
{%
if
is_granted
(
'ROLE_SUPER_ADMIN'
)
%}
Administrateur
<br>
{%
elseif
is_granted
(
'ROLE_ADMIN'
)
%}
Maraîcher
<br>
{%
else
%}{%
endif
%}
Username:
{{
app.user.username
}}
<br>
Email:
{{
app.user.email
}}
<br>
{#
Dernière connexion: {{ app.user.lastLogin|date("d M Y, à H:i:s") }}
#}
</p>
</div>
{%
endif
%}
src/PotageBundle/Resources/views/Membre/today.html.twig
View file @
75fba3d5
...
...
@@ -17,12 +17,7 @@
{%
include
'@Potage/Membre/inc/offreALaCarte.html.twig'
%}
<div
class=
"row panier"
>
<div
class=
"col-7"
>
{%
include
'@Potage/Membre/inc/detailCommande.html.twig'
%}
</div>
<div
class=
"col-5"
>
{%
include
'@Potage/Membre/inc/total.html.twig'
%}
</div>
{%
include
'@Potage/Membre/inc/panier.html.twig'
%}
</div>
{%
else
%}
...
...
@@ -36,21 +31,14 @@
{%
endfor
%}
</ul>
{%
else
%}
~
Vous n'êtes dans aucun groupe
~
<div
class=
"alert alert-danger"
>
Vous n'êtes dans aucun groupe
!
</div>
{%
endif
%}
{%
endif
%}
{%
endif
%}
<div
class=
"row "
>
<div
class=
"col-5"
>
{%
include
'@Potage/Membre/inc/user.html.twig'
%}
</div>
<div
class=
"col-7"
>
{%
include
'@Potage/Membre/inc/livraison.html.twig'
%}
</div>
{%
include
'@Potage/Membre/inc/livraison.html.twig'
%}
</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