2025-02-09 16:39:38 +01:00
|
|
|
{% extends 'base.html.twig' %}
|
|
|
|
|
|
|
|
{% block title %}Selling{% endblock %}
|
|
|
|
|
|
|
|
{% block body %}
|
|
|
|
<h1>Selling</h1>
|
|
|
|
|
|
|
|
<table class="table">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<th>Id</th>
|
|
|
|
<td>{{ selling.id }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>Note</th>
|
|
|
|
<td>{{ selling.note }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>Sum</th>
|
2025-02-26 18:19:05 +01:00
|
|
|
<td>{{ selling.sum }} €</td>
|
2025-02-09 16:39:38 +01:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>Reduction</th>
|
2025-02-26 18:19:05 +01:00
|
|
|
<td>{{ selling.reduction }} €</td>
|
2025-02-09 16:39:38 +01:00
|
|
|
</tr>
|
2025-02-26 18:19:05 +01:00
|
|
|
<tr>
|
|
|
|
<th>Date</th>
|
|
|
|
<td>{{ selling.date ? selling.date|date('Y-m-d H:i:s') : '' }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>Comment</th>
|
|
|
|
<td>{{ selling.note }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>Festival</th>
|
|
|
|
<td>
|
|
|
|
{% if selling.festival %}
|
|
|
|
<a href="{{ path('app_festival_show', {'id': selling.festival.id}) }}">
|
|
|
|
{{ selling.festival.name }},
|
|
|
|
{{ selling.festival.dateStart|date('d/m/Y') }} - {{ selling.festival.dateEnd|date('d/m/Y') }}
|
|
|
|
</a>
|
|
|
|
{% else %}
|
|
|
|
Aucun festival associé
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>Products</th>
|
|
|
|
<td>
|
|
|
|
<ul>
|
|
|
|
{% for product in selling.products %}
|
|
|
|
<li>
|
|
|
|
<a href="{{ path('app_product_show', {'id': product.id}) }}">
|
|
|
|
{{ product.name }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2025-02-09 16:39:38 +01:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
2025-02-26 18:19:05 +01:00
|
|
|
<a class="btn btn-default" href="{{ path('app_selling_index') }}">back to list</a>
|
|
|
|
|
|
|
|
<a class="btn btn-primary" href="{{ path('app_selling_edit', {'id': selling.id}) }}">edit</a>
|
2025-02-09 16:39:38 +01:00
|
|
|
|
2025-02-26 18:19:05 +01:00
|
|
|
{% if is_granted('ROLE_ADMIN') %}
|
|
|
|
{{ include('selling/_delete_form.html.twig') }}
|
|
|
|
{% endif %}
|
2025-02-09 16:39:38 +01:00
|
|
|
|
|
|
|
{% endblock %}
|