start fixing uris

This commit is contained in:
Dennis Eichhorn 2019-12-29 17:15:50 +01:00
parent a25e67a602
commit b30d9ed631

View File

@ -36,7 +36,7 @@ echo $this->getData('nav')->render(); ?>
data-ui-element="#task header, #task .task-content" data-ui-element="#task header, #task .task-content"
data-tag="form" data-tag="form"
data-method="POST" data-method="POST"
data-uri="<?= \phpOMS\Uri\UriFactory::build('{/api}task?{?}&csrf={$CSRF}'); ?>"> data-uri="<?= \phpOMS\Uri\UriFactory::build('{/api}task?id={?id}&csrf={$CSRF}'); ?>">
<div class="inner"> <div class="inner">
<?php if ($task->isEditable()) : ?> <?php if ($task->isEditable()) : ?>
<template><!-- todo: this needs to be here for the form js to work (edit). find a way to remove these. maybe check if add functionality is available. --></template> <template><!-- todo: this needs to be here for the form js to work (edit). find a way to remove these. maybe check if add functionality is available. --></template>
@ -55,7 +55,7 @@ echo $this->getData('nav')->render(); ?>
'plain', 'plain',
'taskElementEdit', 'taskElementEdit',
'', '', '', '',
'/content', '{%}' '/content', '{/api}task?id={?id}'
); ?> ); ?>
<!--<textarea data-tpl-text="/content" data-tpl-value="/content" data-value=""></textarea>--> <!--<textarea data-tpl-text="/content" data-tpl-value="/content" data-value=""></textarea>-->
</div> </div>
@ -73,7 +73,7 @@ echo $this->getData('nav')->render(); ?>
<h1 data-tpl-text="/title" data-tpl-value="/title" data-value=""><?= $this->printHtml($task->getTitle()); ?></h1> <h1 data-tpl-text="/title" data-tpl-value="/title" data-value=""><?= $this->printHtml($task->getTitle()); ?></h1>
</header> </header>
<div class="inner task-content"> <div class="inner task-content">
<article data-tpl-text="/content" data-tpl-value="{%}" data-value=""><?= $task->getDescription(); ?></article> <article data-tpl-text="/content" data-tpl-value="{/api}task?id={?id}" data-value=""><?= $task->getDescription(); ?></article>
</div> </div>
<?php if (!empty($taskMedia)) : ?> <?php if (!empty($taskMedia)) : ?>
@ -125,7 +125,7 @@ echo $this->getData('nav')->render(); ?>
</div> </div>
<div class="inner taskelement-content"> <div class="inner taskelement-content">
<article data-tpl-text="/content" data-tpl-value="{%}" data-value=""></article> <article data-tpl-text="/content" data-tpl-value="{/api}task?id={?id}" data-value=""></article>
</div> </div>
<div class="inner"> <div class="inner">
@ -156,7 +156,7 @@ echo $this->getData('nav')->render(); ?>
'plain', 'plain',
'taskElementEdit', 'taskElementEdit',
'', '', '', '',
'/content', '{%}' '/content', '{/api}task?id={?id}'
); ?> ); ?>
<!--<textarea data-tpl-text="/content" data-tpl-value="/content" data-value=""></textarea>--> <!--<textarea data-tpl-text="/content" data-tpl-value="/content" data-value=""></textarea>-->
</div> </div>
@ -183,7 +183,7 @@ echo $this->getData('nav')->render(); ?>
<?php if ($element->getDescription() !== '') : ?> <?php if ($element->getDescription() !== '') : ?>
<div class="inner taskelement-content"> <div class="inner taskelement-content">
<article data-tpl-text="/content" data-tpl-value="{%}" data-value=""><?= $element->getDescription(); ?></article> <article data-tpl-text="/content" data-tpl-value="{/api}task?id={?id}" data-value=""><?= $element->getDescription(); ?></article>
</div> </div>
<?php endif; ?> <?php endif; ?>
@ -262,7 +262,7 @@ echo $this->getData('nav')->render(); ?>
'plain', 'plain',
'taskElementCreate', 'taskElementCreate',
'', '', '', '',
'/content', '{%}' '/content', '{/api}task?id={?id}'
); ?> ); ?>
<tr><td><label for="iPriority"><?= $this->getHtml('Priority') ?></label> <tr><td><label for="iPriority"><?= $this->getHtml('Priority') ?></label>
<tr><td> <tr><td>