Fix absolute path to relative paths

This commit is contained in:
Dennis Eichhorn 2019-02-11 11:38:15 +01:00
parent caf432a721
commit 6e697bbe79
4 changed files with 7 additions and 7 deletions

View File

@ -5,7 +5,7 @@
"type": 2,
"subtype": 1,
"name": "Checklist",
"uri": "/{/lang}/backend/checklist/list?{?}",
"uri": "{/lang}/backend/checklist/list?{?}",
"target": "self",
"icon": null,
"order": 65,
@ -19,7 +19,7 @@
"type": 3,
"subtype": 1,
"name": "List",
"uri": "/{/lang}/backend/checklist/list?{?}",
"uri": "{/lang}/backend/checklist/list?{?}",
"target": "self",
"icon": null,
"order": 1,
@ -34,7 +34,7 @@
"type": 3,
"subtype": 5,
"name": "Templates",
"uri": "/{/lang}/backend/checklist/template/list?{?}",
"uri": "{/lang}/backend/checklist/template/list?{?}",
"target": "self",
"icon": null,
"order": 5,
@ -49,7 +49,7 @@
"type": 3,
"subtype": 5,
"name": "CreateTemplate",
"uri": "/{/lang}/backend/checklist/template/create?{?}",
"uri": "{/lang}/backend/checklist/template/create?{?}",
"target": "self",
"icon": null,
"order": 15,

View File

@ -39,7 +39,7 @@ echo $this->getData('nav')->render(); ?>
<tr><td colspan="5">
<tbody>
<?php $c = 0; foreach ([] as $key => $value) : $c++;
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/checklist/single?{?}&id=' . $value->getId()); ?>
$url = \phpOMS\Uri\UriFactory::build('{/lang}/backend/checklist/single?{?}&id=' . $value->getId()); ?>
<tr>
<td data-label="<?= $this->getHtml('ID', 0, 0) ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
<td data-label="<?= $this->getHtml('Status') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>

View File

@ -21,7 +21,7 @@ echo $this->getData('nav')->render(); ?>
<section class="box wf-100">
<header><h1><?= $this->getHtml('General') ?></h1></header>
<div class="inner">
<form id="fChecklist" method="put" action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/checklist/template?{?}&csrf={$CSRF}'); ?>">
<form id="fChecklist" method="put" action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/checklist/template?{?}&csrf={$CSRF}'); ?>">
<table class="layout wf-100">
<tr><td><label for="iName"><?= $this->getHtml('Name') ?></label><td>
<tr><td><input type="text" id="iName" name="name" required><td>

View File

@ -39,7 +39,7 @@ echo $this->getData('nav')->render(); ?>
<tr><td colspan="5">
<tbody>
<?php $c = 0; foreach ([] as $key => $value) : $c++;
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/checklist/single?{?}&id=' . $value->getId()); ?>
$url = \phpOMS\Uri\UriFactory::build('{/lang}/backend/checklist/single?{?}&id=' . $value->getId()); ?>
<tr>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>