74 lines
3.0 KiB
Twig
74 lines
3.0 KiB
Twig
{% extends 'base.html.twig' %}
|
|
|
|
{% block title %}Tables index{% endblock %}
|
|
|
|
{% block head %}
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
|
|
<link href="https://fonts.cdnfonts.com/css/brittany-signature" rel="stylesheet">
|
|
</head>
|
|
{% endblock %}
|
|
|
|
{% block stylesheets %}
|
|
<link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS -->
|
|
<link rel="stylesheet" href="{{ asset('css/ControllerVues/edit.css') }}"> <!-- Ajout du fichier CSS -->
|
|
<link rel="stylesheet" href="{{ asset('css/Index/index.css') }}"> <!-- Ajout du fichier CSS -->
|
|
<link rel="stylesheet" href="{{ asset('css/Compte/index.css') }}"> <!-- Ajout du fichier CSS -->
|
|
<link rel="stylesheet" href="{{ asset('css/GestionUtilisateurs/GestionUtilisateurs.css') }}"> <!-- Ajout du fichier CSS -->
|
|
{% endblock %}
|
|
|
|
{% block container_modal %}
|
|
|
|
<div id="container_modal">
|
|
<h1>Reductions index</h1>
|
|
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>Id</th>
|
|
<th>Pourcentage</th>
|
|
<th>Montant Minimum</th>
|
|
<th>DateDebut</th>
|
|
<th>DateFin</th>
|
|
<th>Client</th>
|
|
<th>Actif</th>
|
|
<th>actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for reduction in reductions %}
|
|
<tr>
|
|
<td>{{ reduction.id }}</td>
|
|
<td>{{ reduction.pourcentage }}%</td>
|
|
<td>{{ reduction.montantMin }} €</td>
|
|
<td>{{ reduction.DateDebut ? reduction.DateDebut|date('d/m/Y H:i:s') : 'Non spécifié' }}</td>
|
|
<td>{{ reduction.DateFin ? reduction.DateFin|date('d/m/Y H:i:s') : 'Non spécifié' }}</td>
|
|
<td>{{ reduction.client.nom }}</td>
|
|
<td class="{{ reduction.actif ? 'case-verte' : 'case-rouge' }}">
|
|
{{ reduction.actif ? 'Oui' : 'Non' }}
|
|
</td>
|
|
<td>
|
|
<form method="post" action="{{ path('app_reductions_delete', {'id': reduction.id}) }}" onsubmit="return confirm('Êtes-vous sûr de vouloir supprimer cette réduction ?'); ">
|
|
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ reduction.id) }}">
|
|
<button type="submit" class="btn btn-danger">Supprimer</button>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
{% else %}
|
|
<tr>
|
|
<td colspan="8">Aucun enregistrement trouvé</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
<a href="{{ path('app_reductions_new') }}" class="add-menu">Créer une réduction</a>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|