admin responsive V1

This commit is contained in:
jleroy2023
2024-11-25 11:36:12 +01:00
parent 732587fa84
commit ab51562177
5 changed files with 12 additions and 21 deletions

2
.env
View File

@@ -37,5 +37,5 @@ MESSENGER_TRANSPORT_DSN=doctrine://default?auto_setup=0
###< symfony/messenger ### ###< symfony/messenger ###
###> symfony/mailer ### ###> symfony/mailer ###
MAILER_DSN=smtp:// MAILER_DSN=smtp://dev-test@lidge.fr:N2uGKkGa8tQBp5NIvHIt@mail.lidge.fr:587
###< symfony/mailer ### ###< symfony/mailer ###

View File

@@ -138,6 +138,7 @@ class AdminController extends AbstractController
$participant->setActif(false); $participant->setActif(false);
$participant->setRoles(['ROLE_USER']); $participant->setRoles(['ROLE_USER']);
$participant->setPassword(password_hash("aChanger44!", PASSWORD_BCRYPT)); $participant->setPassword(password_hash("aChanger44!", PASSWORD_BCRYPT));
$participant->setPending(true);
$entityManager->persist($participant); $entityManager->persist($participant);
@@ -203,6 +204,7 @@ class AdminController extends AbstractController
$participant->setActif(false); $participant->setActif(false);
$participant->setRoles(explode('|', $row[7])); $participant->setRoles(explode('|', $row[7]));
$participant->setPassword(password_hash("aChanger44!", PASSWORD_BCRYPT)); $participant->setPassword(password_hash("aChanger44!", PASSWORD_BCRYPT));
$participant->setPending(true);
$em->persist($participant); $em->persist($participant);
// Générer un token unique // Générer un token unique

View File

@@ -3,11 +3,10 @@
{% block title %}&#128227; Sortie.com Admin &#128266;{% endblock %} {% block title %}&#128227; Sortie.com Admin &#128266;{% endblock %}
{% block content %} {% block content %}
<div class="flex"> <div class="flex flex-col sm:flex-row sm:ml-0 sm:w-full">
{% include 'admin/sidebar.html.twig' %} {% include 'admin/sidebar.html.twig' %}
<div class="ml-64 p-8 w-full"> <div class="ml-64 sm:ml-0 sm:w-full p-8">
<h1 class="text-2xl font-semibold">Bienvenue sur le Panel d'Administration</h1> <h1 class="text-2xl font-semibold">Bienvenue sur le Panel d'Administration</h1>
<p class="text-gray-600 mt-4">Utilisez le menu pour accéder aux différentes sections.</p> <p class="text-gray-600 mt-4">Utilisez le menu pour accéder aux différentes sections.</p>
</div> </div>

View File

@@ -1,4 +1,4 @@
<nav class="bg-gray-800 text-white p-5 w-64 h-screen fixed"> <nav class="bg-gray-800 text-white p-5 w-64 h-screen fixed sm:w-48 md:w-64 lg:w-64 xl:w-64">
<h3 class="text-xl font-bold text-center mb-5">Administration</h3> <h3 class="text-xl font-bold text-center mb-5">Administration</h3>
<ul class="space-y-4"> <ul class="space-y-4">
<li> <li>
@@ -22,4 +22,4 @@
</a> </a>
</li> </li>
</ul> </ul>
</nav> </nav>

View File

@@ -1,15 +1,5 @@
<!DOCTYPE html> <footer class="w-full bg-green-700 text-white py-4">
<html lang="fr"> <div class="flex justify-center">
<head> ENI &copy; Sortie {{ "now"|date("Y") }}
<meta charset="UTF-8"> </div>
{% block stylesheets %} </footer>
{{ encore_entry_link_tags('app') }}
{% endblock %}
</head>
<body>
<div class="flex items-center justify-center" >
ENI &copy; Sortie {{ "now"|date("Y") }}
</div>
</body>
</html>