aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-08-09 21:20:36 +0200
committerThomas Lange <code@nerdmind.de>2021-08-09 21:22:05 +0200
commitddceeb093b6cad9aae3f49e6618118a3277b0b07 (patch)
tree5cd5b7994c272f71330875f3ae89f2becd746ad1 /admin
parent133c0bd78f9ea6e1da0d79bdb3efe18773890578 (diff)
downloadblog-ddceeb093b6cad9aae3f49e6618118a3277b0b07.tar.gz
blog-ddceeb093b6cad9aae3f49e6618118a3277b0b07.tar.xz
blog-ddceeb093b6cad9aae3f49e6618118a3277b0b07.zip
Pass entity template data to the update template
Diffstat (limited to 'admin')
-rw-r--r--admin/category/update.php1
-rw-r--r--admin/page/update.php1
-rw-r--r--admin/post/update.php1
-rw-r--r--admin/user/update.php1
4 files changed, 4 insertions, 0 deletions
diff --git a/admin/category/update.php b/admin/category/update.php
index f5d08f4..c3d9812 100644
--- a/admin/category/update.php
+++ b/admin/category/update.php
@@ -76,6 +76,7 @@ $FormTemplate->set('FORM', [
]);
$UpdateTemplate = Template\Factory::build('category/update');
+$UpdateTemplate->set('CATEGORY', generateItemTemplateData($Category));
$UpdateTemplate->set('HTML', $FormTemplate);
$MainTemplate = Template\Factory::build('main');
diff --git a/admin/page/update.php b/admin/page/update.php
index 29abccd..8f6cb0e 100644
--- a/admin/page/update.php
+++ b/admin/page/update.php
@@ -72,6 +72,7 @@ $FormTemplate->set('FORM', [
]);
$UpdateTemplate = Template\Factory::build('page/update');
+$UpdateTemplate->set('PAGE', generateItemTemplateData($Page));
$UpdateTemplate->set('HTML', $FormTemplate);
$MainTemplate = Template\Factory::build('main');
diff --git a/admin/post/update.php b/admin/post/update.php
index 788d51f..5241d38 100644
--- a/admin/post/update.php
+++ b/admin/post/update.php
@@ -87,6 +87,7 @@ $FormTemplate->set('FORM', [
]);
$UpdateTemplate = Template\Factory::build('post/update');
+$UpdateTemplate->set('POST', generateItemTemplateData($Post));
$UpdateTemplate->set('HTML', $FormTemplate);
$MainTemplate = Template\Factory::build('main');
diff --git a/admin/user/update.php b/admin/user/update.php
index b4a8cf0..edd2bc1 100644
--- a/admin/user/update.php
+++ b/admin/user/update.php
@@ -61,6 +61,7 @@ $FormTemplate->set('FORM', [
]);
$UpdateTemplate = Template\Factory::build('user/update');
+$UpdateTemplate->set('USER', generateItemTemplateData($User));
$UpdateTemplate->set('HTML', $FormTemplate);
$MainTemplate = Template\Factory::build('main');