From c56bf89d556446de99febb9af0ae74df7c70eff3 Mon Sep 17 00:00:00 2001 From: Banana Date: Sun, 3 Jan 2021 16:25:30 +0100 Subject: [PATCH] init of manage tags --- TODO | 4 ++ webclient/index.php | 2 +- webclient/lib/mancubus.class.php | 2 +- .../default/advancedsearch/advancedsearch.php | 2 - .../view/default/managetags/managetags.html | 0 .../view/default/managetags/managetags.php | 48 +++++++++++++++++++ 6 files changed, 54 insertions(+), 4 deletions(-) create mode 100644 webclient/view/default/managetags/managetags.html create mode 100644 webclient/view/default/managetags/managetags.php diff --git a/TODO b/TODO index ff02451..32c4c68 100644 --- a/TODO +++ b/TODO @@ -5,6 +5,10 @@ * Mass edit of entries * delete of a collection * Better error handling and display while adding / update and delete +* rights example setup and also check if it maches the menu and actions + + admin + + Management + + User (only its data) * responsive and breakpoints * stats overview page. amount of entries. file and db storage. * Export of an entry, collection or everything. Stored on disk. diff --git a/webclient/index.php b/webclient/index.php index 1af3a24..61aa3d6 100644 --- a/webclient/index.php +++ b/webclient/index.php @@ -17,7 +17,7 @@ */ # set to true if you need debug messages in error log file -define('DEBUG',false); +define('DEBUG',true); # set to ture if you need query log messages in error log file. define('QUERY_DEBUG',true); diff --git a/webclient/lib/mancubus.class.php b/webclient/lib/mancubus.class.php index ce2b346..c2b7a10 100644 --- a/webclient/lib/mancubus.class.php +++ b/webclient/lib/mancubus.class.php @@ -689,7 +689,7 @@ class Mancubus { } /** - * Get the distinct data from a col and optionaml search term + * Get the distinct data from a col and optional search term * * @param string $colname * @param string $search diff --git a/webclient/view/default/advancedsearch/advancedsearch.php b/webclient/view/default/advancedsearch/advancedsearch.php index 7443331..6a216a2 100644 --- a/webclient/view/default/advancedsearch/advancedsearch.php +++ b/webclient/view/default/advancedsearch/advancedsearch.php @@ -32,8 +32,6 @@ $TemplateData['collections'] = array(); $TemplateData['collectionFields'] = array(); $TemplateData['search'] = false; -// - if(!empty($_collection)) { $TemplateData['loadedCollection'] = $Trite->load($_collection); if(!empty($TemplateData['loadedCollection'])) { diff --git a/webclient/view/default/managetags/managetags.html b/webclient/view/default/managetags/managetags.html new file mode 100644 index 0000000..e69de29 diff --git a/webclient/view/default/managetags/managetags.php b/webclient/view/default/managetags/managetags.php new file mode 100644 index 0000000..246bc6b --- /dev/null +++ b/webclient/view/default/managetags/managetags.php @@ -0,0 +1,48 @@ +load($_collection); + if(!empty($TemplateData['loadedCollection'])) { + } + else { + $TemplateData['message']['content'] = "Can not load given collection."; + $TemplateData['message']['status'] = "error"; + } +} +else { + $TemplateData['collections'] = $Trite->getCollections(); +} -- 2.39.5