detailCommande.html.twig 1.2 KB
Newer Older
1
{#
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<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>

33
<button type="button" class="btn btn-lg btn-block btn-primary float-right">Envoyer la commande</button>
34
#}
35

Mat's avatar
Mat committed
36
37
38
39
40
41
42
43
{% for label, messages in app.flashes() %}
    {% for message in messages %}
        <div class="flash-{{ label }}">
            {{ message }}
        </div>
    {% endfor %}
{% endfor %}

44
{{ form_start(formCommande) }}
Mat's avatar
hop    
Mat committed
45
    <ul class="commandeLegumes">
46
47
48
49
50
51
52
        {% for legume in formCommande.commandeLegumes %}
            <li>
                {{ form_row(legume.quantite) }}
                {{ form_row(legume.prix) }}
            </li>
        {% endfor %}
    </ul>
Mat's avatar
hop    
Mat committed
53

54
55
56
{{ form_end(formCommande) }}