mirror of
https://github.com/Karaka-Management/oms-Editor.git
synced 2026-02-01 11:18:40 +00:00
started with template fixes
This commit is contained in:
parent
e1ec5dbdf9
commit
d0964e3151
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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)) : ?>
|
||||
|
|
|
|||
|
|
@ -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; ?>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user