mirror of
https://github.com/Karaka-Management/oms-Editor.git
synced 2026-02-13 16:58:44 +00:00
Fix #13
This commit is contained in:
parent
c84db549aa
commit
b84ebaca6c
|
|
@ -5,7 +5,7 @@
|
||||||
"type": 2,
|
"type": 2,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "Editor",
|
"name": "Editor",
|
||||||
"uri": "{/base}/{/lang}/backend/editor/list?{?}",
|
"uri": "/{/lang}/backend/editor/list?{?}",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 75,
|
"order": 75,
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
"type": 3,
|
"type": 3,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "List",
|
"name": "List",
|
||||||
"uri": "{/base}/{/lang}/backend/editor/list?{?}",
|
"uri": "/{/lang}/backend/editor/list?{?}",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 1,
|
"order": 1,
|
||||||
|
|
@ -34,7 +34,7 @@
|
||||||
"type": 3,
|
"type": 3,
|
||||||
"subtype": 5,
|
"subtype": 5,
|
||||||
"name": "Create",
|
"name": "Create",
|
||||||
"uri": "{/base}/{/lang}/backend/editor/create?{?}",
|
"uri": "/{/lang}/backend/editor/create?{?}",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 15,
|
"order": 15,
|
||||||
|
|
|
||||||
|
|
@ -104,8 +104,8 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
public function setUpEditorEditor(RequestAbstract $request, ResponseAbstract $response, $data = null)
|
public function setUpEditorEditor(RequestAbstract $request, ResponseAbstract $response, $data = null)
|
||||||
{
|
{
|
||||||
$head = $response->get('Content')->getData('head');
|
$head = $response->get('Content')->getData('head');
|
||||||
$head->addAsset(AssetType::JSLATE, $request->getUri()->getBase() . 'Modules/Editor/Models/Editor.js');
|
$head->addAsset(AssetType::JSLATE, '/Modules/Editor/Models/Editor.js');
|
||||||
$head->addAsset(AssetType::JSLATE, $request->getUri()->getBase() . 'Modules/Editor/Controller.js');
|
$head->addAsset(AssetType::JSLATE, '/Modules/Editor/Controller.js');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<div class="col-xs-12">
|
<div class="col-xs-12">
|
||||||
<section class="box wf-100">
|
<section class="box wf-100">
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
<form id="fEditor" method="POST" action="<?= \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/api/editor?{?}&csrf={$CSRF}'); ?>">
|
<form id="fEditor" method="POST" action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/editor?{?}&csrf={$CSRF}'); ?>">
|
||||||
<input name="title" type="text" class="wf-100">
|
<input name="title" type="text" class="wf-100">
|
||||||
<input type="submit" value="<?= $this->getHtml('Save') ?>">
|
<input type="submit" value="<?= $this->getHtml('Save') ?>">
|
||||||
</form>
|
</form>
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<td colspan="3"><?= $footerView->render(); ?>
|
<td colspan="3"><?= $footerView->render(); ?>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php $count = 0; foreach ($docs as $key => $value) : $count++;
|
<?php $count = 0; foreach ($docs as $key => $value) : $count++;
|
||||||
$url = \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/backend/editor/single?{?}&id=' . $value->getId()); ?>
|
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/editor/single?{?}&id=' . $value->getId()); ?>
|
||||||
<tr data-href="<?= $url; ?>">
|
<tr data-href="<?= $url; ?>">
|
||||||
<td data-label="<?= $this->getHtml('Title') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getTitle()); ?></a>
|
<td data-label="<?= $this->getHtml('Title') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getTitle()); ?></a>
|
||||||
<td data-label="<?= $this->getHtml('Creator') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getCreatedBy()->getName1()); ?></a>
|
<td data-label="<?= $this->getHtml('Creator') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getCreatedBy()->getName1()); ?></a>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user