detailCommande.html.twig 1.22 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 45 46 47 48 49 50 51 52 53 54 55
{{ form_start(formCommande) }}
    {% for legume in formCommande.commandeLegumes %}
        {{ form_row(legume.prixUnitaire) }}
        {{ form_row(legume.unite) }}
        {{ form_row(legume.quantite) }}
        {{ form_row(legume.prix) }}
    {% endfor %}

    {{ form_row(formCommande.prixTotal) }}
{{ form_end(formCommande) }}