From 1081f005aac88a86b2bd81f002f01489efc2fe4c Mon Sep 17 00:00:00 2001 From: Chris Date: Sun, 22 Oct 2023 11:28:37 +0200 Subject: [PATCH] moved template partials to partials folder --- tools/tailwind.config.js | 2 +- web/pages/admin/controller.php | 4 ++-- web/pages/register/controller.php | 6 +++--- web/templates/{ => partials}/error.html | 0 web/templates/{ => partials}/info.html | 0 web/templates/{ => partials}/notice.html | 0 web/templates/{ => partials}/success.html | 0 7 files changed, 6 insertions(+), 6 deletions(-) rename web/templates/{ => partials}/error.html (100%) rename web/templates/{ => partials}/info.html (100%) rename web/templates/{ => partials}/notice.html (100%) rename web/templates/{ => partials}/success.html (100%) diff --git a/tools/tailwind.config.js b/tools/tailwind.config.js index 1439f21..46a6910 100644 --- a/tools/tailwind.config.js +++ b/tools/tailwind.config.js @@ -1,6 +1,6 @@ /** @type {import('tailwindcss').Config} */ module.exports = { - content: ["../web/**/*.{html,js}"], + content: ["../web/**/*.{html,js,php}"], theme: { extend: {}, }, diff --git a/web/pages/admin/controller.php b/web/pages/admin/controller.php index 7ce84b4..17acbf6 100644 --- a/web/pages/admin/controller.php +++ b/web/pages/admin/controller.php @@ -62,12 +62,12 @@ class Admin extends Page { catch(Exception $e) { $this->set('message', $e->getMessage()); - $this->set('template', '/templates/error.html'); + $this->set('template', '/templates/partials/error.html'); return; } $this->set('message', 'Speichern erfolgreich'); - $this->set('template', '/templates/success.html'); + $this->set('template', '/templates/partials/success.html'); } function maySeeThisPage(){return true;} diff --git a/web/pages/register/controller.php b/web/pages/register/controller.php index 0fef50e..8168262 100644 --- a/web/pages/register/controller.php +++ b/web/pages/register/controller.php @@ -34,7 +34,7 @@ class Register extends Page { if($err) { - $this->set('template', '/templates/error.html'); + $this->set('template', '/templates/partials/error.html'); $this->set('title', 'Error'); $this->set('message', $err); return; @@ -51,7 +51,7 @@ class Register extends Page { } catch(Exception $e) { - $this->set('template', '/templates/error.html'); + $this->set('template', '/templates/partials/error.html'); $this->set('title', 'Error'); $this->set('message', $e->getMessage()); return; @@ -65,7 +65,7 @@ class Register extends Page { function success() { - $this->set('template', '/templates/success.html'); + $this->set('template', '/templates/partials/success.html'); $this->set('title', 'Success'); $this->set('message', 'You have successfully registered. Activate your account from the Link in your email'); } diff --git a/web/templates/error.html b/web/templates/partials/error.html similarity index 100% rename from web/templates/error.html rename to web/templates/partials/error.html diff --git a/web/templates/info.html b/web/templates/partials/info.html similarity index 100% rename from web/templates/info.html rename to web/templates/partials/info.html diff --git a/web/templates/notice.html b/web/templates/partials/notice.html similarity index 100% rename from web/templates/notice.html rename to web/templates/partials/notice.html diff --git a/web/templates/success.html b/web/templates/partials/success.html similarity index 100% rename from web/templates/success.html rename to web/templates/partials/success.html