Fix absolute path to relative paths

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

View File

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

View File

@ -35,7 +35,7 @@ echo $this->getData('nav')->render(); ?>
<td colspan="5">
<tbody>
<?php $count = 0; foreach ($list as $key => $value) : $count++;
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/projectmanagement/profile?{?}&id=' . $value->getId());?>
$url = \phpOMS\Uri\UriFactory::build('{/lang}/backend/projectmanagement/profile?{?}&id=' . $value->getId());?>
<tr data-href="<?= $url; ?>">
<td data-label="<?= $this->getHtml('Title') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getName()); ?></a>
<td data-label="<?= $this->getHtml('Start') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getStart()->format('Y-m-d')); ?></a>

View File

@ -19,7 +19,7 @@ echo $this->getData('nav')->render(); ?>
<section class="box wf-100">
<header><h1><?= $this->printHtml($project->getName()); ?></h1></header>
<div class="inner">
<form id="fProject" method="POST" action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/projectmanagement?{?}&csrf={$CSRF}'); ?>">
<form id="fProject" method="POST" action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/projectmanagement?{?}&csrf={$CSRF}'); ?>">
<table class="layout wf-100">
<tbody>
<tr><td colspan="2"><label for="iName"><?= $this->getHtml('Name') ?></label>