This commit is contained in:
Dennis Eichhorn 2017-11-08 22:39:51 +01:00
parent c84db549aa
commit b84ebaca6c
4 changed files with 7 additions and 7 deletions

View File

@ -5,7 +5,7 @@
"type": 2,
"subtype": 1,
"name": "Editor",
"uri": "{/base}/{/lang}/backend/editor/list?{?}",
"uri": "/{/lang}/backend/editor/list?{?}",
"target": "self",
"icon": null,
"order": 75,
@ -19,7 +19,7 @@
"type": 3,
"subtype": 1,
"name": "List",
"uri": "{/base}/{/lang}/backend/editor/list?{?}",
"uri": "/{/lang}/backend/editor/list?{?}",
"target": "self",
"icon": null,
"order": 1,
@ -34,7 +34,7 @@
"type": 3,
"subtype": 5,
"name": "Create",
"uri": "{/base}/{/lang}/backend/editor/create?{?}",
"uri": "/{/lang}/backend/editor/create?{?}",
"target": "self",
"icon": null,
"order": 15,

View File

@ -104,8 +104,8 @@ class Controller extends ModuleAbstract implements WebInterface
public function setUpEditorEditor(RequestAbstract $request, ResponseAbstract $response, $data = null)
{
$head = $response->get('Content')->getData('head');
$head->addAsset(AssetType::JSLATE, $request->getUri()->getBase() . 'Modules/Editor/Models/Editor.js');
$head->addAsset(AssetType::JSLATE, $request->getUri()->getBase() . 'Modules/Editor/Controller.js');
$head->addAsset(AssetType::JSLATE, '/Modules/Editor/Models/Editor.js');
$head->addAsset(AssetType::JSLATE, '/Modules/Editor/Controller.js');
}
/**

View File

@ -21,7 +21,7 @@ echo $this->getData('nav')->render(); ?>
<div class="col-xs-12">
<section class="box wf-100">
<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 type="submit" value="<?= $this->getHtml('Save') ?>">
</form>

View File

@ -38,7 +38,7 @@ echo $this->getData('nav')->render(); ?>
<td colspan="3"><?= $footerView->render(); ?>
<tbody>
<?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; ?>">
<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>