From b6da7e1d09e0a6ee8828c187bf2e10935f311a28 Mon Sep 17 00:00:00 2001 From: Jacek Pyziak Date: Tue, 28 Jan 2025 21:19:57 +0100 Subject: [PATCH] Refactor category edit and preview templates for improved layout and consistency --- .vscode/ftp-kr.sync.cache.json | 6 +- templates/wiki/category-edit.php | 152 +++++++++++++--------------- templates/wiki/category-preview.php | 40 ++++---- 3 files changed, 96 insertions(+), 102 deletions(-) diff --git a/.vscode/ftp-kr.sync.cache.json b/.vscode/ftp-kr.sync.cache.json index 9ee4f93..8bf6caf 100644 --- a/.vscode/ftp-kr.sync.cache.json +++ b/.vscode/ftp-kr.sync.cache.json @@ -53,7 +53,7 @@ "class.S.php": { "type": "-", "size": 7575, - "lmtime": 1731744360591, + "lmtime": 1736804276620, "modified": false }, "class.Tpl.php": { @@ -172,8 +172,8 @@ }, "config.php": { "type": "-", - "size": 347, - "lmtime": 1731233601663, + "size": 348, + "lmtime": 1736804262637, "modified": false }, "cron.php": { diff --git a/templates/wiki/category-edit.php b/templates/wiki/category-edit.php index eccf651..330fd97 100644 --- a/templates/wiki/category-edit.php +++ b/templates/wiki/category-edit.php @@ -1,102 +1,96 @@ - -
-
-

Kategoria: category['name'];?>

+ +
+
+

Kategoria: category['name']; ?>

+
+ +
+
+ +
+
+ 'Nazwa', + 'name' => 'name', + 'id' => 'name', + 'value' => $this->category['name'], + 'class' => 'require', + 'inline' => true + ]); ?> + 'text', + 'id' => 'text', + 'value' => $this->category['text'] + ]) ?> + +
+ 'text_admin', + 'id' => 'text_admin', + 'value' => $this->category['text_admin'] + ]) ?> + +
+
+ +

Widoczne dla

+ users as $user_tmp): ?> + +

+ category['users']) or $user_tmp['id'] == 1 or $user_tmp['id'] == 3): ?>checked="checked" > + +

+ + + +
+
+
- -
- -
-
- 'Nazwa', - 'name' => 'name', - 'id' => 'name', - 'value' => $this -> category['name'], - 'class' => 'require', - 'inline' => true - ] );?> - 'text', - 'id' => 'text', - 'value' => $this -> category['text'] - ])?> - -
- 'text_admin', - 'id' => 'text_admin', - 'value' => $this -> category['text_admin'] - ] )?> - -
-
- -

Widoczne dla

- users as $user_tmp ):?> - -

- category['users'] ) or $user_tmp['id'] == 1 or $user_tmp['id'] == 3 ):?>checked="checked"> - -

- - - -
-
-