Add existing query to link

This commit is contained in:
Dennis Eichhorn 2017-02-08 19:16:53 +01:00
parent 6505b020e3
commit 58f5316b81
3 changed files with 7 additions and 7 deletions

View File

@ -5,7 +5,7 @@
"type": 1,
"subtype": 1,
"name": "Tasks",
"uri": "/{/lang}/backend/task/dashboard",
"uri": "/{/lang}/backend/task/dashboard?{?}",
"target": "self",
"icon": "fa fa-bolt",
"order": 15,
@ -19,7 +19,7 @@
"type": 3,
"subtype": 1,
"name": "List",
"uri": "/{/lang}/backend/task/dashboard",
"uri": "/{/lang}/backend/task/dashboard?{?}",
"target": "self",
"icon": null,
"order": 1,
@ -33,7 +33,7 @@
"type": 0,
"subtype": 1,
"name": "Tasks",
"uri": "/{/lang}/backend/task/single",
"uri": "/{/lang}/backend/task/single?{?}",
"target": "self",
"icon": null,
"order": 1,
@ -50,7 +50,7 @@
"type": 3,
"subtype": 1,
"name": "Create",
"uri": "/{/lang}/backend/task/create",
"uri": "/{/lang}/backend/task/create?{?}",
"target": "self",
"icon": null,
"order": 10,
@ -65,7 +65,7 @@
"type": 3,
"subtype": 1,
"name": "Analysis",
"uri": "/{/lang}/backend/task/analysis",
"uri": "/{/lang}/backend/task/analysis?{?}",
"target": "self",
"icon": null,
"order": 20,

View File

@ -34,7 +34,7 @@ echo $this->getData('nav')->render(); ?>
<tfoot>
<tbody>
<?php $c = 0; foreach($tasks as $key => $task) : $c++;
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/task/single?id=' . $task->getId());
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/task/single?{?}&id=' . $task->getId());
$color = 'darkred';
if($task->getStatus() === \Modules\Tasks\Models\TaskStatus::DONE) { $color = 'green'; }
elseif($task->getStatus() === \Modules\Tasks\Models\TaskStatus::OPEN) { $color = 'darkblue'; }

View File

@ -34,7 +34,7 @@ echo $this->getData('nav')->render(); ?>
<tfoot>
<tbody>
<?php $c = 0; foreach($tasks as $key => $task) : $c++;
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/task/single?id=' . $task->getId());
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/task/single?{?}&id=' . $task->getId());
$color = 'darkred';
if($task->getStatus() === \Modules\Tasks\Models\TaskStatus::DONE) { $color = 'green'; }
elseif($task->getStatus() === \Modules\Tasks\Models\TaskStatus::OPEN) { $color = 'darkblue'; }