2018-04-05 17:24:43 +02:00
|
|
|
{% extends 'base.html.twig' %}
|
|
|
|
|
|
|
|
{% block body %}
|
|
|
|
<h1>Product</h1>
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<th>Id</th>
|
|
|
|
<td>{{ product.id }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
<td>{{ product.name }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>Image</th>
|
|
|
|
<td>{{ product.image }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>Price</th>
|
|
|
|
<td>{{ product.price }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>Comment</th>
|
|
|
|
<td>{{ product.comment }}</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li>
|
2018-04-17 14:30:15 +02:00
|
|
|
<a class="btn btn-primary" href="{{ path('product_index') }}"> <i class="fa fa-arrow-left" />Retour à la liste</a>
|
2018-04-05 17:24:43 +02:00
|
|
|
</li>
|
|
|
|
<li>
|
2018-04-17 14:30:15 +02:00
|
|
|
<a class="btn btn-primary" href="{{ path('product_edit', { 'id': product.id }) }}"><a class="btn btn-primary" href="</a>
|
2018-04-05 17:24:43 +02:00
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
{{ form_start(delete_form) }}
|
|
|
|
<input type="submit" value="Delete">
|
|
|
|
{{ form_end(delete_form) }}
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
{% endblock %}
|