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/mailer ###
MAILER_DSN=smtp://
MAILER_DSN=smtp://dev-test@lidge.fr:N2uGKkGa8tQBp5NIvHIt@mail.lidge.fr:587
###< symfony/mailer ###

View File

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

View File

@@ -3,11 +3,10 @@
{% block title %}&#128227; Sortie.com Admin &#128266;{% endblock %}
{% block content %}
<div class="flex">
<div class="flex flex-col sm:flex-row sm:ml-0 sm:w-full">
{% 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>
<p class="text-gray-600 mt-4">Utilisez le menu pour accéder aux différentes sections.</p>
</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>
<ul class="space-y-4">
<li>

View File

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