admin responsive V1
This commit is contained in:
2
.env
2
.env
@@ -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 ###
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -3,11 +3,10 @@
|
||||
{% block title %}📣 Sortie.com Admin 🔊{% 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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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" >
|
||||
ENI © Sortie {{ "now"|date("Y") }}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<footer class="w-full bg-green-700 text-white py-4">
|
||||
<div class="flex justify-center">
|
||||
ENI © Sortie {{ "now"|date("Y") }}
|
||||
</div>
|
||||
</footer>
|
||||
Reference in New Issue
Block a user