mirror of
https://github.com/Karaka-Management/oms-Draw.git
synced 2026-02-13 05:38:41 +00:00
Fix absolute path to relative paths
This commit is contained in:
parent
9c74f96f8d
commit
e019f7619f
|
|
@ -5,7 +5,7 @@
|
||||||
"type": 2,
|
"type": 2,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "Draw",
|
"name": "Draw",
|
||||||
"uri": "/{/lang}/backend/draw/list?{?}",
|
"uri": "{/lang}/backend/draw/list?{?}",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 70,
|
"order": 70,
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
"type": 3,
|
"type": 3,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "List",
|
"name": "List",
|
||||||
"uri": "/{/lang}/backend/draw/list?{?}",
|
"uri": "{/lang}/backend/draw/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": "/{/lang}/backend/draw/create?{?}",
|
"uri": "{/lang}/backend/draw/create?{?}",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 15,
|
"order": 15,
|
||||||
|
|
|
||||||
|
|
@ -48,9 +48,9 @@ final class BackendController extends Controller
|
||||||
{
|
{
|
||||||
/** @var \phpOMS\Model\Html\Head $head */
|
/** @var \phpOMS\Model\Html\Head $head */
|
||||||
$head = $response->get('Content')->getData('head');
|
$head = $response->get('Content')->getData('head');
|
||||||
$head->addAsset(AssetType::JSLATE, '/Modules/Draw/Controller.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/DrawType.js');
|
||||||
$head->addAsset(AssetType::JSLATE, '/Modules/Draw/Models/Editor.js');
|
$head->addAsset(AssetType::JSLATE, 'Modules/Draw/Models/Editor.js');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,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="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-wrap">
|
||||||
<div class="ipt-first"><input type="text" id="iTitle" name="title" class="wf-100"></div>
|
<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>
|
<div class="ipt-second"><input type="submit" value="<?= $this->getHtml('Create', 0, 0); ?>"></div>
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<td colspan="3">
|
<td colspan="3">
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php $count = 0; foreach ($images as $key => $value) : $count++;
|
<?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>
|
<tr>
|
||||||
<td data-label="<?= $this->getHtml('Name') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getMedia()->getName()); ?></a>
|
<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>
|
<td data-label="<?= $this->getHtml('Creator') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getMedia()->getCreatedBy()->getName()); ?></a>
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,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="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-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-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>
|
<div class="ipt-second"><input type="submit" value="<?= $this->getHtml('Save', 0, 0); ?>"></div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user