up templates

This commit is contained in:
Tykayn 2025-02-09 16:39:38 +01:00 committed by tykayn
parent 71bce538af
commit a39b6239b0
71 changed files with 1536 additions and 262 deletions

61
templates/product/show.html.twig Executable file → Normal file
View file

@ -1,47 +1,34 @@
{% extends 'base.html.twig' %}
{% block title %}Product{% endblock %}
{% block body %}
<h1>Product</h1>
<table class="table-responsive table-striped table table-bordered table-light">
<table class="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>
<tr>
<th>Id</th>
<td>{{ product.id }}</td>
</tr>
<tr>
<th>Name</th>
<td>{{ product.name }}</td>
</tr>
<tr>
<th>Price</th>
<td>{{ product.price }}</td>
</tr>
<tr>
<th>Stock</th>
<td>{{ product.stock }}</td>
</tr>
</tbody>
</table>
<ul>
<li>
<a class="btn btn-primary" href="{{ path('product_index') }}">
<i class="fa fa-arrow-left"></i>
Retour à la liste
</a>
</li>
<li>
<a class="btn btn-primary" href="{{ path('product_edit', { 'id': product.id }) }}">edit</a>
</li>
<li>
{{ form_start(delete_form) }}
<input type="submit" value="Delete">
{{ form_end(delete_form) }}
</li>
</ul>
<a href="{{ path('app_product_index') }}">back to list</a>
<a href="{{ path('app_product_edit', {'id': product.id}) }}">edit</a>
{{ include('product/_delete_form.html.twig') }}
{% endblock %}