From 2b3261641b17c497b182f0d5d21a633a6663dae4 Mon Sep 17 00:00:00 2001 From: JBinggi Date: Sat, 7 Mar 2020 00:16:11 +0100 Subject: [PATCH] update add language --- composer.json | 2 +- config/module.config.php | 2 +- data/install.sql | 5 + language/de_DE.mo | Bin 0 -> 842 bytes language/de_DE.po | 48 +++++++++ view/one-place/project/install/checkdb.phtml | 45 ++++----- view/one-place/project/project/index.phtml | 37 ++++++- view/one-place/project/search/index.phtml | 101 ++++++++++++------- 8 files changed, 172 insertions(+), 68 deletions(-) create mode 100644 language/de_DE.mo create mode 100644 language/de_DE.po diff --git a/composer.json b/composer.json index 2a06e5c..e02c301 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "description": "onePlace Project Module", "type": "oneplace-module", "license": "BSD-3-Clause", - "version": "1.0.4", + "version": "1.0.4", "keywords": [ "laminas", "mvc", diff --git a/config/module.config.php b/config/module.config.php index 5f1898c..91768e9 100644 --- a/config/module.config.php +++ b/config/module.config.php @@ -86,7 +86,7 @@ 'route' => '/project/search[/:action[/:id]]', 'constraints' => [ 'action' => '[a-zA-Z][a-zA-Z0-9_-]*', - 'id' => '[0-9]+', + 'id' => '[a-zA-Z0-9_-]+', ], 'defaults' => [ 'controller' => Controller\SearchController::class, diff --git a/data/install.sql b/data/install.sql index 5167e3c..e0977ea 100644 --- a/data/install.sql +++ b/data/install.sql @@ -71,4 +71,9 @@ INSERT INTO `user_xp_activity` (`Activity_ID`, `xp_key`, `label`, `xp_base`) VAL (NULL, 'project-edit', 'Edit Project', '5'), (NULL, 'project-export', 'Edit Project', '5'); +-- +-- module icon +-- +INSERT INTO `settings` (`settings_key`, `settings_value`) VALUES ('project-icon', 'fas fa-sitemap'); + COMMIT; \ No newline at end of file diff --git a/language/de_DE.mo b/language/de_DE.mo new file mode 100644 index 0000000000000000000000000000000000000000..834db0d1fe5a685781b39dbffe78bb96c29da9b3 GIT binary patch literal 842 zcmYk3zityj5XKh>{|-m*3MoM=#Y2> z5Dg`CRH^9GKtoT%6CfS|@y*#eGt%7eW^VSIx!GS!3-1-|2K*lUE&LYzH(YG_oKn}o z6>t$;1FwJ`@H)6R%cr1dFt`N10WX8^K&k%-O8sZ>B6tFd-dFGk_zk=bemJkx9qTGg6DSREW+O)2gVAUnhh0~sR zQaHB#oYa~8jI4IeA=Prb!30v1+&D*>-l3cf*Jt9bEZ&2nEnG`S-DmL*9a@Rv4V*%1 z+i-|`-Z;)pD14Q1!_o{X?vWWI?re3ExyDLkIa)7VActeGCXfhp9PXpNb&qs9GM*`{ zJ@0MCtMfXMACQj|mlm0I!$l{gP;FF_1Ka^(tjf4> lgzL#|I>N=x3eGr}
- - -
- translate('Database is up-to-date')?> -
- -
- translate('Database needs update. Please choose config')?> -

Simple + ?> + +
+ translate('Database is up-to-date')?> +

Simple + } else { ?> +
+ translate('Database needs update. Please choose config')?> +
+
+ + ?>
-
- -
+
+ +
diff --git a/view/one-place/project/project/index.phtml b/view/one-place/project/project/index.phtml index 669e3fb..6b43b6b 100644 --- a/view/one-place/project/project/index.phtml +++ b/view/one-place/project/project/index.phtml @@ -1,11 +1,42 @@ +
- partial('partial/indexheader',['sTitle'=>'Projects']) ?> +
+
+ + partial('partial/indexheader',['sTitle'=>'Project','sIcon' => $sIcon]) ?> +
+
+ +
+
- partial('partial/indextable', ['sTableName'=>$sTableName,'aItems'=>$aItems]); ?> + partial('partial/indextable', [ + 'sTableName' => $sTableName, + 'aItems' => $aItems, + 'aFilters' => $aFilters, + 'sRoute' => $sRoute + ]); ?>
\ No newline at end of file diff --git a/view/one-place/project/search/index.phtml b/view/one-place/project/search/index.phtml index 4cf21ee..f8ec488 100644 --- a/view/one-place/project/search/index.phtml +++ b/view/one-place/project/search/index.phtml @@ -1,47 +1,70 @@ -
-
-
-
-

Find Project

-
- - - -
-
- partial('partial/basictabs', ['sFormName'=>$this->sFormName]); ?> - partial('partial/searchtabcontents', ['sFormName'=>$this->sFormName]); ?> -
- -
- + +
+
+ partial('partial/indexheader',['sTitle'=>'Project']) ?> +
+
+ partial('partial/indextable', [ + 'sTableName' => $sTableName, + 'aItems' => $aItems, + 'aFilters' => $aFilters, + 'sRoute' => $sRoute + ]); ?> +
+
- + +
-

Results

-
-
- +

Find Project

+ + + +
+
+ partial('partial/basictabs', ['sFormName'=>$this->sFormName]); ?> + partial('partial/searchtabcontents', ['sFormName'=>$this->sFormName]); ?> +
+ +
+
- -
+ +
+
+
+

Results - getTotalItemCount()?>

+
+
+ + partial('partial/indexpager', ['aItems'=>$aResults,'sRoute'=>'project-search']); ?> +
+
+
+ +
+