aboutsummaryrefslogtreecommitdiffstats
path: root/theme/admin
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-08-09 21:22:47 +0200
committerThomas Lange <code@nerdmind.de>2021-08-09 21:25:18 +0200
commitca38821a3eab237bd55d2df34346b419ec36804c (patch)
tree053e73fe2dd9b64e9826441431999e0ae30e95a4 /theme/admin
parentddceeb093b6cad9aae3f49e6618118a3277b0b07 (diff)
downloadblog-ca38821a3eab237bd55d2df34346b419ec36804c.tar.gz
blog-ca38821a3eab237bd55d2df34346b419ec36804c.tar.xz
blog-ca38821a3eab237bd55d2df34346b419ec36804c.zip
Show action button list in entity update template
Add a link to the current entity on the website and a link to the entity delete form in the administration area's update.php templates.
Diffstat (limited to 'theme/admin')
-rw-r--r--theme/admin/html/category/update.php6
-rw-r--r--theme/admin/html/page/update.php6
-rw-r--r--theme/admin/html/post/update.php6
-rw-r--r--theme/admin/html/user/update.php6
-rw-r--r--theme/admin/rsrc/css/bright.css1
-rw-r--r--theme/admin/rsrc/css/dark.css1
-rw-r--r--theme/admin/rsrc/css/import/_styles.scss1
7 files changed, 23 insertions, 4 deletions
diff --git a/theme/admin/html/category/update.php b/theme/admin/html/category/update.php
index fefaa18..d6634a7 100644
--- a/theme/admin/html/category/update.php
+++ b/theme/admin/html/category/update.php
@@ -1,6 +1,10 @@
<main id="main-content">
<h1><i class="fa fa-pencil-square-o"></i><?=$Language->text('update_category')?></h1>
-<p><?=$Language->text('update_category_desc')?></p>
+<p class="actions-before"><?=$Language->text('update_category_desc')?></p>
+<ul class="actions">
+ <li><a href="<?=$CATEGORY['URL']?>" title="<?=$Language->text('select_category')?>"><i class="fa fa-external-link"></i><?=$Language->text('select')?></a></li>
+ <li><a href="<?=Application::getAdminURL("category/delete.php?id={$CATEGORY['ATTR']['ID']}")?>" title="<?=$Language->text('delete_category')?>"><i class="fa fa-trash-o"></i><?=$Language->text('delete')?></a></li>
+</ul>
<?=$HTML?>
</main>
diff --git a/theme/admin/html/page/update.php b/theme/admin/html/page/update.php
index ce51d2a..7f2437a 100644
--- a/theme/admin/html/page/update.php
+++ b/theme/admin/html/page/update.php
@@ -1,6 +1,10 @@
<main id="main-content">
<h1><i class="fa fa-pencil-square-o"></i><?=$Language->text('update_page')?></h1>
-<p><?=$Language->text('update_page_desc')?></p>
+<p class="actions-before"><?=$Language->text('update_page_desc')?></p>
+<ul class="actions">
+ <li><a href="<?=$PAGE['URL']?>" title="<?=$Language->text('select_page')?>"><i class="fa fa-external-link"></i><?=$Language->text('select')?></a></li>
+ <li><a href="<?=Application::getAdminURL("page/delete.php?id={$PAGE['ATTR']['ID']}")?>" title="<?=$Language->text('delete_page')?>"><i class="fa fa-trash-o"></i><?=$Language->text('delete')?></a></li>
+</ul>
<?=$HTML?>
</main>
diff --git a/theme/admin/html/post/update.php b/theme/admin/html/post/update.php
index aa3835d..28635ea 100644
--- a/theme/admin/html/post/update.php
+++ b/theme/admin/html/post/update.php
@@ -1,6 +1,10 @@
<main id="main-content">
<h1><i class="fa fa-pencil-square-o"></i><?=$Language->text('update_post')?></h1>
-<p><?=$Language->text('update_post_desc')?></p>
+<p class="actions-before"><?=$Language->text('update_post_desc')?></p>
+<ul class="actions">
+ <li><a href="<?=$POST['URL']?>" title="<?=$Language->text('select_post')?>"><i class="fa fa-external-link"></i><?=$Language->text('select')?></a></li>
+ <li><a href="<?=Application::getAdminURL("post/delete.php?id={$POST['ATTR']['ID']}")?>" title="<?=$Language->text('delete_post')?>"><i class="fa fa-trash-o"></i><?=$Language->text('delete')?></a></li>
+</ul>
<?=$HTML?>
</main>
diff --git a/theme/admin/html/user/update.php b/theme/admin/html/user/update.php
index ad12677..d5511a4 100644
--- a/theme/admin/html/user/update.php
+++ b/theme/admin/html/user/update.php
@@ -1,6 +1,10 @@
<main id="main-content">
<h1><i class="fa fa-pencil-square-o"></i><?=$Language->text('update_user')?></h1>
-<p><?=$Language->text('update_user_desc')?></p>
+<p class="actions-before"><?=$Language->text('update_user_desc')?></p>
+<ul class="actions">
+ <li><a href="<?=$USER['URL']?>" title="<?=$Language->text('select_user')?>"><i class="fa fa-external-link"></i><?=$Language->text('select')?></a></li>
+ <li><a href="<?=Application::getAdminURL("user/delete.php?id={$USER['ATTR']['ID']}")?>" title="<?=$Language->text('delete_user')?>"><i class="fa fa-trash-o"></i><?=$Language->text('delete')?></a></li>
+</ul>
<?=$HTML?>
</main>
diff --git a/theme/admin/rsrc/css/bright.css b/theme/admin/rsrc/css/bright.css
index 0fb1165..bf21d90 100644
--- a/theme/admin/rsrc/css/bright.css
+++ b/theme/admin/rsrc/css/bright.css
@@ -497,6 +497,7 @@ img {
# Grids
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
.form-grid {
+ clear: both;
display: grid;
grid-template-columns: repeat(2, 7.5rem minmax(0, 1fr));
border-left: 0.05rem solid #AAA;
diff --git a/theme/admin/rsrc/css/dark.css b/theme/admin/rsrc/css/dark.css
index 0b72d29..fb7e356 100644
--- a/theme/admin/rsrc/css/dark.css
+++ b/theme/admin/rsrc/css/dark.css
@@ -497,6 +497,7 @@ img {
# Grids
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
.form-grid {
+ clear: both;
display: grid;
grid-template-columns: repeat(2, 7.5rem minmax(0, 1fr));
border-left: 0.05rem solid #1D232B;
diff --git a/theme/admin/rsrc/css/import/_styles.scss b/theme/admin/rsrc/css/import/_styles.scss
index 1ed9fb9..f216d8f 100644
--- a/theme/admin/rsrc/css/import/_styles.scss
+++ b/theme/admin/rsrc/css/import/_styles.scss
@@ -519,6 +519,7 @@ img {
# Grids
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
.form-grid {
+ clear: both;
display: grid;
grid-template-columns: repeat(2, 7.5rem minmax(0, 1fr));