From 8c5908796c34010729a6b5b0c0cc96146342b523 Mon Sep 17 00:00:00 2001 From: beaulaton Date: Wed, 6 Nov 2024 17:59:23 +0100 Subject: [PATCH 1/2] twig pour login et signin --- cache/44/4448d384ce5c0b36e3d5c422f47fbacf.php | 115 ++++++++++++++++++ cache/f9/f92f69760ebb764380af0f11a2633512.php | 102 ++++++++++++++++ config/config.php | 4 +- vue/login.php | 12 ++ vue/signin.php | 12 ++ vue/{ => templates}/login.html | 12 -- vue/{ => templates}/signin.html | 12 -- 7 files changed, 243 insertions(+), 26 deletions(-) create mode 100644 cache/44/4448d384ce5c0b36e3d5c422f47fbacf.php create mode 100644 cache/f9/f92f69760ebb764380af0f11a2633512.php create mode 100644 vue/login.php create mode 100644 vue/signin.php rename vue/{ => templates}/login.html (72%) rename vue/{ => templates}/signin.html (77%) diff --git a/cache/44/4448d384ce5c0b36e3d5c422f47fbacf.php b/cache/44/4448d384ce5c0b36e3d5c422f47fbacf.php new file mode 100644 index 0000000..3823316 --- /dev/null +++ b/cache/44/4448d384ce5c0b36e3d5c422f47fbacf.php @@ -0,0 +1,115 @@ + + */ + private array $macros = []; + + public function __construct(Environment $env) + { + parent::__construct($env); + + $this->source = $this->getSourceContext(); + + $this->parent = false; + + $this->blocks = [ + ]; + } + + protected function doDisplay(array $context, array $blocks = []): iterable + { + $macros = $this->macros; + // line 1 + yield "
+
+
+ \"coeur\" + \"toggle + \"quizz\" +
+
+ \"Logo\" +
+
+ \"user\" +
+
+
+

▶ S'inscrire ◀

+
+
+
+

Identifiant *

+ +
+ +
+

Email *

+ +
+ +
+

Mot de passe *

+ +
+ +
+

Confirmer mot de passe *

+ +
+ +
+

Image *

+ +
+ +
+ +
+
+
+ +"; + yield from []; + } + + /** + * @codeCoverageIgnore + */ + public function getTemplateName(): string + { + return "signin.html"; + } + + /** + * @codeCoverageIgnore + */ + public function getDebugInfo(): array + { + return array ( 42 => 1,); + } + + public function getSourceContext(): Source + { + return new Source("", "signin.html", "/home/www/lebeaulato/public_html/WF-Website/vue/templates/signin.html"); + } +} diff --git a/cache/f9/f92f69760ebb764380af0f11a2633512.php b/cache/f9/f92f69760ebb764380af0f11a2633512.php new file mode 100644 index 0000000..9f20119 --- /dev/null +++ b/cache/f9/f92f69760ebb764380af0f11a2633512.php @@ -0,0 +1,102 @@ + + */ + private array $macros = []; + + public function __construct(Environment $env) + { + parent::__construct($env); + + $this->source = $this->getSourceContext(); + + $this->parent = false; + + $this->blocks = [ + ]; + } + + protected function doDisplay(array $context, array $blocks = []): iterable + { + $macros = $this->macros; + // line 1 + yield "
+
+
+ \"coeur\" + \"toggle + \"quizz\" +
+
+ \"Logo\" +
+
+ \"user\" +
+
+
+

▶ Connexion ◀

+ +
+

Identifiant *

+ + +

Mot de passe *

+ + +
+

Vous n'avez pas de compte?

+ S'incrire +
+ + +
+ +
+ +
+ +"; + yield from []; + } + + /** + * @codeCoverageIgnore + */ + public function getTemplateName(): string + { + return "login.html"; + } + + /** + * @codeCoverageIgnore + */ + public function getDebugInfo(): array + { + return array ( 42 => 1,); + } + + public function getSourceContext(): Source + { + return new Source("", "login.html", "/home/www/lebeaulato/public_html/WF-Website/vue/templates/login.html"); + } +} diff --git a/config/config.php b/config/config.php index 70ce410..4b9837b 100644 --- a/config/config.php +++ b/config/config.php @@ -17,8 +17,8 @@ $mdp = ''; $vues['erreur'] = 'vue/erreur.php'; $vues['accueil'] = 'vue/accueil.php'; $vues['quote'] = 'vue/quote.php'; -$vues['login'] = 'vue/login.html'; -$vues['signin'] = 'vue/signin.html'; +$vues['login'] = 'vue/login.php'; +$vues['signin'] = 'vue/signin.php'; $vues['quiz'] = 'vue/quiz.html'; diff --git a/vue/login.php b/vue/login.php new file mode 100644 index 0000000..d1cf965 --- /dev/null +++ b/vue/login.php @@ -0,0 +1,12 @@ +render('head.html.twig', array( + 'title' => "Login", + 'style' => "../public/styles/styleLogin.css", + )); + + echo $twig->render('bandeau.html.twig'); + echo $twig->render('login.html'); +?> \ No newline at end of file diff --git a/vue/signin.php b/vue/signin.php new file mode 100644 index 0000000..fd0b8d7 --- /dev/null +++ b/vue/signin.php @@ -0,0 +1,12 @@ +render('head.html.twig', array( + 'title' => "Sign in", + 'style' => "../public/styles/styleSignin.css", + )); + + echo $twig->render('bandeau.html.twig'); + echo $twig->render('signin.html'); +?> \ No newline at end of file diff --git a/vue/login.html b/vue/templates/login.html similarity index 72% rename from vue/login.html rename to vue/templates/login.html index 74328f6..5f7ad01 100644 --- a/vue/login.html +++ b/vue/templates/login.html @@ -1,15 +1,3 @@ - - - - - - - Wiki Fantasy : Connexion - - - - -