moved template partials to partials folder
All checks were successful
Build and push / Pulling repo on server (push) Successful in 19s

This commit is contained in:
Chris 2023-10-22 11:28:37 +02:00
parent 0adeb7f05a
commit 1081f005aa
7 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
/** @type {import('tailwindcss').Config} */ /** @type {import('tailwindcss').Config} */
module.exports = { module.exports = {
content: ["../web/**/*.{html,js}"], content: ["../web/**/*.{html,js,php}"],
theme: { theme: {
extend: {}, extend: {},
}, },

View File

@ -62,12 +62,12 @@ class Admin extends Page {
catch(Exception $e) catch(Exception $e)
{ {
$this->set('message', $e->getMessage()); $this->set('message', $e->getMessage());
$this->set('template', '/templates/error.html'); $this->set('template', '/templates/partials/error.html');
return; return;
} }
$this->set('message', 'Speichern erfolgreich'); $this->set('message', 'Speichern erfolgreich');
$this->set('template', '/templates/success.html'); $this->set('template', '/templates/partials/success.html');
} }
function maySeeThisPage(){return true;} function maySeeThisPage(){return true;}

View File

@ -34,7 +34,7 @@ class Register extends Page {
if($err) if($err)
{ {
$this->set('template', '/templates/error.html'); $this->set('template', '/templates/partials/error.html');
$this->set('title', 'Error'); $this->set('title', 'Error');
$this->set('message', $err); $this->set('message', $err);
return; return;
@ -51,7 +51,7 @@ class Register extends Page {
} }
catch(Exception $e) catch(Exception $e)
{ {
$this->set('template', '/templates/error.html'); $this->set('template', '/templates/partials/error.html');
$this->set('title', 'Error'); $this->set('title', 'Error');
$this->set('message', $e->getMessage()); $this->set('message', $e->getMessage());
return; return;
@ -65,7 +65,7 @@ class Register extends Page {
function success() function success()
{ {
$this->set('template', '/templates/success.html'); $this->set('template', '/templates/partials/success.html');
$this->set('title', 'Success'); $this->set('title', 'Success');
$this->set('message', 'You have successfully registered. Activate your account from the Link in your email'); $this->set('message', 'You have successfully registered. Activate your account from the Link in your email');
} }