mirror of
https://github.com/Karaka-Management/oms-Editor.git
synced 2026-02-08 14:38:40 +00:00
Fix absolute path to relative paths
This commit is contained in:
parent
d2a5a28481
commit
b42096b519
|
|
@ -5,7 +5,7 @@
|
|||
"type": 2,
|
||||
"subtype": 1,
|
||||
"name": "Editor",
|
||||
"uri": "/{/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": "/{/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": "/{/lang}/backend/editor/create?{?}",
|
||||
"uri": "{/lang}/backend/editor/create?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 15,
|
||||
|
|
|
|||
|
|
@ -48,8 +48,8 @@ final class BackendController extends Controller
|
|||
public function setUpEditorEditor(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
|
||||
{
|
||||
$head = $response->get('Content')->getData('head');
|
||||
$head->addAsset(AssetType::JSLATE, '/Modules/Editor/Models/Editor.js');
|
||||
$head->addAsset(AssetType::JSLATE, '/Modules/Editor/Controller.js');
|
||||
$head->addAsset(AssetType::JSLATE, 'Modules/Editor/Models/Editor.js');
|
||||
$head->addAsset(AssetType::JSLATE, 'Modules/Editor/Controller.js');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -41,8 +41,8 @@ class BaseView extends View
|
|||
parent::__construct($app, $request, $response);
|
||||
$this->setTemplate('/Modules/Editor/Theme/Backend/Components/Editor/inline-editor-tools');
|
||||
|
||||
$response->get('Content')->getData('head')->addAsset(AssetType::JSLATE, '/Modules/Editor/Models/Editor.js');
|
||||
$response->get('Content')->getData('head')->addAsset(AssetType::JSLATE, '/Modules/Editor/Controller.js');
|
||||
$response->get('Content')->getData('head')->addAsset(AssetType::JSLATE, 'Modules/Editor/Models/Editor.js');
|
||||
$response->get('Content')->getData('head')->addAsset(AssetType::JSLATE, 'Modules/Editor/Controller.js');
|
||||
|
||||
$view = new TextView($app, $request, $response);
|
||||
$this->addData('text', $view);
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<div class="col-xs-12">
|
||||
<section class="box wf-100">
|
||||
<div class="inner">
|
||||
<form id="fEditor" method="PUT" action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/editor?{?}&csrf={$CSRF}'); ?>">
|
||||
<form id="fEditor" method="PUT" action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/editor?{?}&csrf={$CSRF}'); ?>">
|
||||
<div class="ipt-wrap">
|
||||
<div class="ipt-first"><input name="title" type="text" class="wf-100"></div>
|
||||
<div class="ipt-second"><input type="submit" value="<?= $this->getHtml('Save') ?>"></div>
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<td colspan="3">
|
||||
<tbody>
|
||||
<?php $count = 0; foreach ($docs as $key => $value) : $count++;
|
||||
$url = \phpOMS\Uri\UriFactory::build('/{/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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user