fix: suppression template esyweb.html.twig inutilise

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Serreau Jovann
2026-04-08 15:19:39 +02:00
parent ad85a8af57
commit 4529cc703d

View File

@@ -1,71 +0,0 @@
{% extends 'admin/_layout.html.twig' %}
{% block title %}E-Site - Sites Internet - Association E-Cosplay{% endblock %}
{% block admin_content %}
<div class="page-container">
<h1 class="text-2xl font-bold heading-page mb-8">E-Site - Sites Internet</h1>
<div class="mb-6">
<div class="relative">
<input type="text" id="search-websites" placeholder="Rechercher un site, client..."
class="w-full px-4 py-3 pl-10 input-glass text-sm font-medium" autocomplete="off">
<svg class="w-4 h-4 absolute left-3 top-4 text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"/></svg>
</div>
<div id="search-websites-results" class="hidden glass border-t-0 bg-white max-h-64 overflow-y-auto"></div>
</div>
<div class="glass overflow-x-auto overflow-hidden">
<table class="w-full text-sm">
<thead>
<tr class="glass-dark text-white">
<th class="px-4 py-3 text-left font-bold uppercase text-xs tracking-widest">Nom</th>
<th class="px-4 py-3 text-left font-bold uppercase text-xs tracking-widest">Client</th>
<th class="px-4 py-3 text-left font-bold uppercase text-xs tracking-widest">UUID</th>
<th class="px-4 py-3 text-center font-bold uppercase text-xs tracking-widest">Type</th>
<th class="px-4 py-3 text-center font-bold uppercase text-xs tracking-widest">Statut</th>
<th class="px-4 py-3 text-left font-bold uppercase text-xs tracking-widest">Cree le</th>
</tr>
</thead>
<tbody>
{% for site in websites %}
<tr class="border-b border-white/20 hover:bg-white/50">
<td class="px-4 py-3 font-bold">{{ site.name }}</td>
<td class="px-4 py-3">
<a href="{{ path('app_admin_clients_show', {id: site.customer.id}) }}" class="font-bold hover:text-[#fabf04] transition-colors">{{ site.customer.fullName }}</a>
{% if site.customer.email %}
<span class="text-[10px] text-gray-400 block">{{ site.customer.email }}</span>
{% endif %}
</td>
<td class="px-4 py-3 text-xs font-mono text-gray-500">{{ site.uuid }}</td>
<td class="px-4 py-3 text-center">
{% if site.type == 'ecommerce' %}
<span class="px-2 py-0.5 bg-purple-500/20 text-purple-700 font-bold uppercase text-[10px]">E-Commerce</span>
{% else %}
<span class="px-2 py-0.5 bg-blue-500/20 text-blue-700 font-bold uppercase text-[10px]">Vitrine</span>
{% endif %}
</td>
<td class="px-4 py-3 text-center">
{% if site.state == 'open' %}
<span class="px-2 py-0.5 bg-green-500/20 text-green-700 font-bold uppercase text-[10px]">En ligne</span>
{% elseif site.state == 'install_progress' %}
<span class="px-2 py-0.5 bg-yellow-100 text-yellow-800 font-bold uppercase text-[10px]">Installation</span>
{% elseif site.state == 'suspended' %}
<span class="px-2 py-0.5 bg-orange-500/20 text-orange-700 font-bold uppercase text-[10px]">Suspendu</span>
{% elseif site.state == 'closed' %}
<span class="px-2 py-0.5 bg-red-500/20 text-red-700 font-bold uppercase text-[10px]">Ferme</span>
{% else %}
<span class="px-2 py-0.5 bg-gray-100 text-gray-600 font-bold uppercase text-[10px]">Cree</span>
{% endif %}
</td>
<td class="px-4 py-3 text-xs text-gray-500">{{ site.createdAt|date('d/m/Y') }}</td>
</tr>
{% else %}
<tr><td colspan="6" class="px-4 py-8 text-center text-gray-400 font-bold">Aucun site internet.</td></tr>
{% endfor %}
</tbody>
</table>
</div>
<p class="mt-3 text-xs text-gray-400">{{ websites|length }} site(s)</p>
</div>
{% endblock %}