This commit is contained in:
Dennis Eichhorn 2017-11-08 22:39:51 +01:00
parent 40c45b7085
commit d3e3bec73d
5 changed files with 9 additions and 9 deletions

View File

@ -5,7 +5,7 @@
"type": 1,
"subtype": 1,
"name": "Tasks",
"uri": "{/base}/{/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": "{/base}/{/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": "{/base}/{/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": "{/base}/{/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": "{/base}/{/lang}/backend/task/analysis?{?}",
"uri": "/{/lang}/backend/task/analysis?{?}",
"target": "self",
"icon": null,
"order": 20,

View File

@ -7,7 +7,7 @@
<tfoot>
<tbody>
<?php $c = 0; foreach ($this->tasks as $key => $task) : $c++;
$url = \phpOMS\Uri\UriFactory::build('{/base}/{/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

@ -22,7 +22,7 @@ echo $this->getData('nav')->render(); ?>
<header><h1><?= $this->getHtml('Task') ?></h1></header>
<div class="inner">
<form id="fTask" method="POST" action="<?= \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/api/task?{?}&csrf={$CSRF}'); ?>">
<form id="fTask" method="POST" action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/task?{?}&csrf={$CSRF}'); ?>">
<table class="layout wf-100">
<tbody>
<tr><td colspan="2"><label for="iReceiver"><?= $this->getHtml('To') ?></label>

View File

@ -32,7 +32,7 @@ echo $this->getData('nav')->render(); ?>
<tfoot>
<tbody>
<?php $c = 0; foreach ($tasks as $key => $task) : $c++;
$url = \phpOMS\Uri\UriFactory::build('{/base}/{/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

@ -101,7 +101,7 @@ echo $this->getData('nav')->render(); ?>
<section class="box wf-100">
<div class="inner">
<form id="taskElementCreate" method="POST" action="<?= \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/api/task/element?{?}&csrf={$CSRF}'); ?>">
<form id="taskElementCreate" method="POST" action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/task/element?{?}&csrf={$CSRF}'); ?>">
<table class="layout wf-100">
<tr><td><label for="iMessage"><?= $this->getHtml('Message') ?></label>
<tr><td><textarea id="iMessage" name="description"></textarea>