started with template fixes

This commit is contained in:
Dennis Eichhorn 2024-03-29 15:26:00 +00:00
parent e1ec5dbdf9
commit d0964e3151
5 changed files with 10 additions and 3 deletions

View File

@ -22,6 +22,7 @@ return [
[
'dest' => '\Modules\Editor\Controller\ApiController:apiEditorCreate',
'verb' => RouteVerb::PUT,
'csrf' => true,
'permission' => [
'module' => ApiController::NAME,
'type' => PermissionType::CREATE,
@ -31,6 +32,7 @@ return [
[
'dest' => '\Modules\Editor\Controller\ApiController:apiEditorUpdate',
'verb' => RouteVerb::SET,
'csrf' => true,
'permission' => [
'module' => ApiController::NAME,
'type' => PermissionType::MODIFY,
@ -40,6 +42,7 @@ return [
[
'dest' => '\Modules\Editor\Controller\ApiController:apiEditorGet',
'verb' => RouteVerb::GET,
'csrf' => true,
'permission' => [
'module' => ApiController::NAME,
'type' => PermissionType::READ,
@ -49,6 +52,7 @@ return [
[
'dest' => '\Modules\Editor\Controller\ApiController:apiEditorDelete',
'verb' => RouteVerb::DELETE,
'csrf' => true,
'permission' => [
'module' => ApiController::NAME,
'type' => PermissionType::DELETE,
@ -60,6 +64,7 @@ return [
[
'dest' => '\Modules\Editor\Controller\ApiController:apiDocExport',
'verb' => RouteVerb::GET,
'csrf' => true,
'permission' => [
'module' => ApiController::NAME,
'type' => PermissionType::READ,

View File

@ -40,7 +40,7 @@
<?php foreach ($this->docs as $doc) : ?>
<tr data-tpl-value="/id" data-value="" data-uuid="" data-name="editor-list">
<td>
<td data-tpl-text="/id" data-tpl-value="/id" data-value=""><?= $this->printHtml($doc->id); ?></td>
<td data-tpl-text="/id" data-tpl-value="/id" data-value=""><?= $doc->id; ?></td>
<td data-tpl-text="/title" data-tpl-value="/title" data-value=""><?= $this->printHtml($doc->title); ?></td>
<?php endforeach; ?>
<?php if (empty($this->docs)) : ?>

View File

@ -73,7 +73,7 @@ use phpOMS\Uri\UriFactory;
<input id="iNote-<?= $doc->id; ?>" type="radio" name="doc_doc" value="<?= $doc->id; ?>"<?= \end($this->docs)->id === $doc->id ? ' checked' : ''; ?>>
<span class="checkmark"></span>
</label>
<td data-tpl-text="/id" data-tpl-value="/id" data-value=""><?= $this->printHtml((string) $doc->id); ?></td>
<td data-tpl-text="/id" data-tpl-value="/id" data-value=""><?= $doc->id; ?></td>
<td data-tpl-text="/name" data-tpl-value="/name" data-value=""><?= $this->printHtml($doc->title); ?></td>
<td><a href="<?= $url; ?>"><i class="g-icon">attachment</i></a>
<?php endforeach; ?>

View File

@ -71,7 +71,7 @@ echo $this->data['nav']->render(); ?>
<option>
</select>
<tr><td colspan="2"><label><?= $this->getHtml('GroupUser'); ?></label>
<tr><td><input id="iPermission" name="group" type="text" placeholder=""><td><button><?= $this->getHtml('Add'); ?></button>
<tr><td><input id="iPermission" name="group" type="text"><td><button><?= $this->getHtml('Add'); ?></button>
</table>
</form>
</div>

View File

@ -154,9 +154,11 @@ echo $this->data['nav']->render(); ?>
<?php endif; ?>
</table>
</div>
<!--
<div class="portlet-foot">
<a tabindex="0" class="button" href="<?= UriFactory::build($previous); ?>"><?= $this->getHtml('Previous', '0', '0'); ?></a>
<a tabindex="0" class="button" href="<?= UriFactory::build($next); ?>"><?= $this->getHtml('Next', '0', '0'); ?></a>
</div>
-->
</div>
</div>