Fix absolute path to relative paths

This commit is contained in:
Dennis Eichhorn 2019-02-11 11:38:15 +01:00
parent 3a71c45c68
commit a086a2c5b2
6 changed files with 11 additions and 11 deletions

View File

@ -5,7 +5,7 @@
"type": 2,
"subtype": 1,
"name": "Helper",
"uri": "/{/lang}/backend/helper/list?{?}",
"uri": "{/lang}/backend/helper/list?{?}",
"target": "self",
"icon": null,
"order": 60,
@ -19,7 +19,7 @@
"type": 3,
"subtype": 1,
"name": "List",
"uri": "/{/lang}/backend/helper/list?{?}",
"uri": "{/lang}/backend/helper/list?{?}",
"target": "self",
"icon": null,
"order": 1,
@ -34,7 +34,7 @@
"type": 3,
"subtype": 5,
"name": "CreateReport",
"uri": "/{/lang}/backend/helper/report/create?{?}",
"uri": "{/lang}/backend/helper/report/create?{?}",
"target": "self",
"icon": null,
"order": 5,
@ -49,7 +49,7 @@
"type": 3,
"subtype": 5,
"name": "CreateTemplate",
"uri": "/{/lang}/backend/helper/template/create?{?}",
"uri": "{/lang}/backend/helper/template/create?{?}",
"target": "self",
"icon": null,
"order": 10,

View File

@ -22,7 +22,7 @@ echo $this->getData('nav')->render(); ?>
<section class="box wf-100">
<header><h1><?= $this->getHtml('Report'); ?></h1></header>
<div class="inner">
<form id="helper-report-create" action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/helper/report/report'); ?>" method="post">
<form id="helper-report-create" action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/helper/report/report'); ?>" method="post">
<table class="layout wf-100">
<tbody>
<tr><td><label for="iTitle"><?= $this->getHtml('Title'); ?></label>

View File

@ -24,7 +24,7 @@ echo $this->getData('nav')->render(); ?>
<div class="bc-1">
<ul class="l-1">
<li>
<a href="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/backend/helper/single?{?}&id=' . $this->getData('name')); ?>"
<a href="<?= \phpOMS\Uri\UriFactory::build('{/lang}/backend/helper/single?{?}&id=' . $this->getData('name')); ?>"
class="button"><?= $this->getHtml('Report') ?></a>
</ul>
</div>

View File

@ -45,7 +45,7 @@ echo $this->getData('nav')->render(); ?>
<td colspan="4"><?= $this->getHtml('Empty', 0, 0); ?>
<?php endif; ?>
<?php foreach ($templates as $key => $template) :
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/helper/report/view?{?}&id=' . $template->getId()); ?>
$url = \phpOMS\Uri\UriFactory::build('{/lang}/backend/helper/report/view?{?}&id=' . $template->getId()); ?>
<tr data-href="<?= $url; ?>">
<td data-label="<?= $this->getHtml('ID', 0, 0) ?>"><a href="<?= $url; ?>"><?= $this->printHtml($template->getId()); ?></a>
<td data-label="<?= $this->getHtml('Name') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($template->getName()); ?></a>

View File

@ -28,7 +28,7 @@ echo $this->getData('nav')->render(); ?>
<div class="row" style="height: calc(100% - 85px);">
<div class="col-xs-12 col-md-9">
<div class="wf-100" style="height: 100%;">
<iframe src="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/helper/report/export/?id=' . $template->getId()); ?>" allowfullscreen></iframe>
<iframe src="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/helper/report/export/?id=' . $template->getId()); ?>" allowfullscreen></iframe>
</div>
</div>
@ -38,7 +38,7 @@ echo $this->getData('nav')->render(); ?>
<header><h1><?= $this->getHtml('Reports') ?></h1></header>
<div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/helper/template'); ?>" method="post">
<form action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/helper/template'); ?>" method="post">
<table class="layout wf-100">
<tbody>
<?php if (count($reportLanguage) > 1) : ?>
@ -68,7 +68,7 @@ echo $this->getData('nav')->render(); ?>
<header><h1><?= $this->getHtml('Export') ?></h1></header>
<div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/helper/template'); ?>" method="post">
<form action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/helper/template'); ?>" method="post">
<table class="layout wf-100">
<tbody>
<tr>

View File

@ -21,7 +21,7 @@ echo $this->getData('nav')->render(); ?>
<section class="box wf-100">
<header><h1><?= $this->getHtml('Template'); ?></h1></header>
<div class="inner">
<form id="helper-template-create" action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/helper/report/template'); ?>" method="post">
<form id="helper-template-create" action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/helper/report/template'); ?>" method="post">
<table class="layout wf-100" style="table-layout: fixed">
<tbody>
<tr><td><label for="iTitle"><?= $this->getHtml('Title'); ?></label>