mirror of
https://github.com/Karaka-Management/oms-Checklist.git
synced 2026-01-11 07:18:40 +00:00
template fixes + bug fixes + style fixes
This commit is contained in:
parent
5ae8ab5c0d
commit
e894f1de2f
|
|
@ -73,7 +73,7 @@ return [
|
|||
],
|
||||
],
|
||||
],
|
||||
'^/checklist/template/task(\?.*$|$)' => [
|
||||
'^/checklist/template/task/view(\?.*$|$)' => [
|
||||
[
|
||||
'dest' => '\Modules\Checklist\Controller\BackendController:viewChecklistTemplateTaskView',
|
||||
'verb' => RouteVerb::GET,
|
||||
|
|
@ -84,4 +84,15 @@ return [
|
|||
],
|
||||
],
|
||||
],
|
||||
'^/checklist/template/task/create(\?.*$|$)' => [
|
||||
[
|
||||
'dest' => '\Modules\Checklist\Controller\BackendController:viewChecklistTemplateTaskCreate',
|
||||
'verb' => RouteVerb::GET,
|
||||
'permission' => [
|
||||
'module' => BackendController::NAME,
|
||||
'type' => PermissionType::CREATE,
|
||||
'state' => PermissionCategory::TEMPLATE,
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ final class BackendController extends Controller
|
|||
|
||||
$view->data['checklists'] = ChecklistMapper::getAll()
|
||||
->sort('id', OrderType::DESC)
|
||||
->execute();
|
||||
->executeGetArray();
|
||||
|
||||
return $view;
|
||||
}
|
||||
|
|
@ -110,7 +110,7 @@ final class BackendController extends Controller
|
|||
|
||||
$view->data['templates'] = ChecklistTemplateMapper::getAll()
|
||||
->sort('id', OrderType::DESC)
|
||||
->execute();
|
||||
->executeGetArray();
|
||||
|
||||
return $view;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ return ['Checklist' => [
|
|||
'Templates' => 'Vorlagen',
|
||||
'TimeInMinutes' => 'Zeit in Minuten.',
|
||||
'Title' => 'Titel',
|
||||
'Template' => 'Template',
|
||||
'Template' => 'Template',
|
||||
'Start' => 'Start',
|
||||
'End' => 'Ende',
|
||||
'End' => 'Ende',
|
||||
]];
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ return ['Checklist' => [
|
|||
'Templates' => 'Templates',
|
||||
'TimeInMinutes' => 'Time in minutes',
|
||||
'Title' => 'Title',
|
||||
'Template' => 'Template',
|
||||
'Template' => 'Template',
|
||||
'Start' => 'Start',
|
||||
'End' => 'End',
|
||||
'End' => 'End',
|
||||
]];
|
||||
|
|
|
|||
|
|
@ -12,8 +12,6 @@
|
|||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
use phpOMS\Uri\UriFactory;
|
||||
|
||||
/**
|
||||
* @var \phpOMS\Views\View $this
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ echo $this->data['nav']->render(); ?>
|
|||
<div class="portlet-head">
|
||||
<?= $this->getHtml('Tasks'); ?>
|
||||
<span class="end-xs">
|
||||
<a class="button" href="<?= \phpOMS\Uri\UriFactory::build('{/base}/checklist/template/task?{?}&csrf={$CSRF}'); ?>"><?= $this->getHtml('Add', '0', '0'); ?></a>
|
||||
<a class="button" href="<?= \phpOMS\Uri\UriFactory::build('{/base}/checklist/template/task/create?{?}&csrf={$CSRF}'); ?>"><?= $this->getHtml('Add', '0', '0'); ?></a>
|
||||
</span>
|
||||
</div>
|
||||
<div class="slider">
|
||||
|
|
@ -105,7 +105,7 @@ echo $this->data['nav']->render(); ?>
|
|||
<tbody>
|
||||
<?php $c = 0;
|
||||
foreach ($this->data['template']->tasks as $key => $task) : ++$c;
|
||||
$url = \phpOMS\Uri\UriFactory::build('{/base}/checklist/template/task?{?}&id=' . $task->id);
|
||||
$url = \phpOMS\Uri\UriFactory::build('{/base}/checklist/template/task/view?{?}&id=' . $task->id);
|
||||
?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
<td><?php if ($task->priority === TaskPriority::NONE) : ?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user