Fix absolute path to relative paths

This commit is contained in:
Dennis Eichhorn 2019-02-11 11:38:15 +01:00
parent 9c74f96f8d
commit e019f7619f
5 changed files with 9 additions and 9 deletions

View File

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

View File

@ -48,9 +48,9 @@ final class BackendController extends Controller
{
/** @var \phpOMS\Model\Html\Head $head */
$head = $response->get('Content')->getData('head');
$head->addAsset(AssetType::JSLATE, '/Modules/Draw/Controller.js');
$head->addAsset(AssetType::JSLATE, '/Modules/Draw/Models/DrawType.js');
$head->addAsset(AssetType::JSLATE, '/Modules/Draw/Models/Editor.js');
$head->addAsset(AssetType::JSLATE, 'Modules/Draw/Controller.js');
$head->addAsset(AssetType::JSLATE, 'Modules/Draw/Models/DrawType.js');
$head->addAsset(AssetType::JSLATE, 'Modules/Draw/Models/Editor.js');
}
/**

View File

@ -20,7 +20,7 @@ echo $this->getData('nav')->render(); ?>
<div class="col-xs-12">
<section class="box wf-100">
<div class="inner">
<form id="drawForm" action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/draw?{?}&csrf={$CSRF}'); ?>" method="POST">
<form id="drawForm" action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/draw?{?}&csrf={$CSRF}'); ?>" method="POST">
<div class="ipt-wrap">
<div class="ipt-first"><input type="text" id="iTitle" name="title" class="wf-100"></div>
<div class="ipt-second"><input type="submit" value="<?= $this->getHtml('Create', 0, 0); ?>"></div>

View File

@ -37,7 +37,7 @@ echo $this->getData('nav')->render(); ?>
<td colspan="3">
<tbody>
<?php $count = 0; foreach ($images as $key => $value) : $count++;
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/draw/single?{?}&id=' . $value->getId()); ?>
$url = \phpOMS\Uri\UriFactory::build('{/lang}/backend/draw/single?{?}&id=' . $value->getId()); ?>
<tr>
<td data-label="<?= $this->getHtml('Name') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getMedia()->getName()); ?></a>
<td data-label="<?= $this->getHtml('Creator') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getMedia()->getCreatedBy()->getName()); ?></a>

View File

@ -22,7 +22,7 @@ echo $this->getData('nav')->render(); ?>
<div class="col-xs-12">
<section class="box wf-100">
<div class="inner">
<form id="drawForm" action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/draw?{?}&csrf={$CSRF}'); ?>" method="POST">
<form id="drawForm" action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/draw?{?}&csrf={$CSRF}'); ?>" method="POST">
<div class="ipt-wrap">
<div class="ipt-first"><input type="text" id="iTitle" name="title" class="wf-100" value="<?= $this->printHtml($image->getMedia()->getName()); ?>"></div>
<div class="ipt-second"><input type="submit" value="<?= $this->getHtml('Save', 0, 0); ?>"></div>