des trucs

This commit is contained in:
mepiphana2023
2024-11-27 13:40:24 +01:00
parent 5d3b63b343
commit 921e7bfdea

View File

@@ -1,13 +1,4 @@
{% extends 'main/base.html.twig' %} {% extends 'main/base.html.twig' %}
{% block head %}
<head>
<meta charset="UTF-8">
{% block title %}&#128227; Sortie.com {{ profile.pseudo }} &#128266;{% endblock %}
{% block stylesheets %}
{{ encore_entry_link_tags('app') }}
{% endblock %}
</head>
{% endblock %}
{% block content %} {% block content %}
<div class="relative mx-auto md:max-w-xl pt-24 pb-8 min-w-0 break-words"> <div class="relative mx-auto md:max-w-xl pt-24 pb-8 min-w-0 break-words">
@@ -25,30 +16,30 @@
<i class="fas fa-map-marker-alt mr-2 text-slate-400 opacity-75"></i>{{ profile.pseudo }} <i class="fas fa-map-marker-alt mr-2 text-slate-400 opacity-75"></i>{{ profile.pseudo }}
</div> </div>
{% if isActiveUser %} {% if isActiveUser %}
<div class="text-xs mt-0 mb-2 text-slate-400 font-bold uppercase"> <div class="text-xs mt-0 mb-2 text-slate-400 font-bold uppercase">
<i class="fas fa-map-marker-alt mr-2 text-slate-400 opacity-75"></i>{{ profile.telephone }} - {{ profile.email }} <i class="fas fa-map-marker-alt mr-2 text-slate-400 opacity-75"></i>{{ profile.telephone }} - {{ profile.email }}
</div> </div>
{% endif %} {% endif %}
</div> </div>
{% if isActiveUser %} {% if isActiveUser %}
<div class="mt-6 py-6 border-t border-slate-200 text-center"> <div class="mt-6 py-6 border-t border-slate-200 text-center">
<div class="flex flex-wrap justify-center"> <div class="flex flex-wrap justify-center">
<div class="w-full px-4"> <div class="w-full px-4">
<a href="{{ path('profile_edit', {'uuid': app.user.idParticipant}) }}" class="text-slate-700 hover:text-slate-400"> <a href="{{ path('profile_edit', {'uuid': app.user.idParticipant}) }}" class="text-slate-700 hover:text-slate-400">
<button class="bg-green-500 px-4 py-2 rounded hover:bg-green-700"> <button class="bg-green-500 px-4 py-2 rounded hover:bg-green-700">
Modifier Modifier
</button> </button>
</a> </a>
</div>
</div> </div>
</div> </div>
</div>
{% endif %} {% endif %}
</div> </div>
</div> </div>
<div class="flex flex-row flex-wrap mx-8"> <div class="flex flex-col lg:flex-row mx-8 gap-6">
{# Tableau des sorties dont je suis participant#} {# Tableau des sorties dont je suis participant #}
<div class="w-1/2 p-4 shadow-lg rounded-lg"> <div class="w-full lg:w-1/2 p-4 shadow-lg rounded-lg overflow-x-auto">
<h4 class="text-start bg-gray-50 items-start justify-start text-base p-2 font-bold uppercase">Mes participations</h4> <h4 class="text-start bg-gray-50 items-start justify-start text-base p-2 font-bold uppercase">Mes participations</h4>
<table class="min-w-full bg-white divide-y divide-gray-200"> <table class="min-w-full bg-white divide-y divide-gray-200">
<thead class="bg-gray-50"> <thead class="bg-gray-50">
@@ -70,7 +61,7 @@
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">{{ sortie.dateHeureDebut|date('d/m/Y H:i') }}</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">{{ sortie.dateHeureDebut|date('d/m/Y H:i') }}</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">{{ sortie.duree }}</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">{{ sortie.duree }}</td>
<td class="flex flex-row px-6 py-4 whitespace-nowrap text-base text-gray-900"> <td class="flex flex-row px-6 py-4 whitespace-nowrap text-base text-gray-900">
<a href={{ path('sortie_view', { id: sortie.idSortie }) }}>👁️</a> <a href="{{ path('sortie_view', { id: sortie.idSortie }) }}" class="text-green-500">👁️</a>
</td> </td>
</tr> </tr>
{% else %} {% else %}
@@ -82,8 +73,8 @@
</table> </table>
</div> </div>
{# Tableau des sorties dont je suis organisateur #} {# Tableau des sorties dont je suis organisateur #}
<div class="w-1/2 p-4 shadow-lg rounded-lg"> <div class="w-full lg:w-1/2 p-4 shadow-lg rounded-lg overflow-x-auto">
<h4 class="text-start bg-gray-50 items-start justify-start text-base p-2 font-bold uppercase">Mes organisations</h4> <h4 class="text-start bg-gray-50 items-start justify-start text-base p-2 font-bold uppercase">Mes organisations</h4>
<table class="min-w-full bg-white divide-y divide-gray-200"> <table class="min-w-full bg-white divide-y divide-gray-200">
<thead class="bg-gray-50"> <thead class="bg-gray-50">
@@ -105,7 +96,7 @@
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">{{ sortie.dateHeureDebut|date('d/m/Y H:i') }}</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">{{ sortie.dateHeureDebut|date('d/m/Y H:i') }}</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">{{ sortie.duree }}</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">{{ sortie.duree }}</td>
<td class="flex flex-row px-6 py-4 whitespace-nowrap text-base text-gray-900"> <td class="flex flex-row px-6 py-4 whitespace-nowrap text-base text-gray-900">
<a href={{ path('sortie_view', { id: sortie.idSortie }) }}>👁️</a> <a href="{{ path('sortie_view', { id: sortie.idSortie }) }}" class="text-green-500">👁️</a>
</td> </td>
</tr> </tr>
{% else %} {% else %}
@@ -117,4 +108,4 @@
</table> </table>
</div> </div>
</div> </div>
{% endblock %} {% endblock %}