This commit is contained in:
Dennis Eichhorn 2017-11-08 22:39:51 +01:00
parent 24a720f77f
commit 36c982139b
5 changed files with 9 additions and 9 deletions

View File

@ -5,7 +5,7 @@
"type": 2,
"subtype": 1,
"name": "Draw",
"uri": "{/base}/{/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": "{/base}/{/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": "{/base}/{/lang}/backend/draw/create?{?}",
"uri": "/{/lang}/backend/draw/create?{?}",
"target": "self",
"icon": null,
"order": 15,

View File

@ -107,9 +107,9 @@ class Controller extends ModuleAbstract implements WebInterface
{
/** @var Head $head */
$head = $response->get('Content')->getData('head');
$head->addAsset(AssetType::JSLATE, $request->getUri()->getBase() . 'Modules/Draw/Controller.js');
$head->addAsset(AssetType::JSLATE, $request->getUri()->getBase() . 'Modules/Draw/Models/DrawType.enum.js');
$head->addAsset(AssetType::JSLATE, $request->getUri()->getBase() . 'Modules/Draw/Models/Editor.js');
$head->addAsset(AssetType::JSLATE, '/Modules/Draw/Controller.js');
$head->addAsset(AssetType::JSLATE, '/Modules/Draw/Models/DrawType.enum.js');
$head->addAsset(AssetType::JSLATE, '/Modules/Draw/Models/Editor.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="drawForm" action="<?= \phpOMS\Uri\UriFactory::build('{/base}/{/lang}/api/draw?{?}&csrf={$CSRF}'); ?>" method="POST">
<form id="drawForm" action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/draw?{?}&csrf={$CSRF}'); ?>" method="POST">
<input type="text" id="iTitle" name="title" class="wf-100"><input type="submit" value="<?= $this->getHtml('Create', 0, 0); ?>">
</form>
</div>

View File

@ -38,7 +38,7 @@ echo $this->getData('nav')->render(); ?>
<td colspan="3"><?= $footerView->render(); ?>
<tbody>
<?php $count = 0; foreach ($images as $key => $value) : $count++;
$url = \phpOMS\Uri\UriFactory::build('{/base}/{/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()); ?></a>

View File

@ -23,7 +23,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('{/base}/{/lang}/api/draw?{?}&csrf={$CSRF}'); ?>" method="POST">
<form id="drawForm" action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/draw?{?}&csrf={$CSRF}'); ?>" method="POST">
<input type="text" id="iTitle" name="title" class="wf-100" value="<?= $this->printHtml($image->getMedia()->getName()); ?>"><input type="submit" value="<?= $this->getHtml('Save', 0, 0); ?>">
</form>
</div>