mirror of
https://github.com/Karaka-Management/oms-ProjectManagement.git
synced 2026-02-06 11:18:41 +00:00
Make app,localization in url optional+tld+subdomain
This commit is contained in:
parent
fbc0f9cf3e
commit
72269c5ed1
|
|
@ -1,11 +1,11 @@
|
|||
[
|
||||
{
|
||||
"id": 1001701001,
|
||||
"pid": "/backend",
|
||||
"pid": "/",
|
||||
"type": 2,
|
||||
"subtype": 1,
|
||||
"name": "ProjectManagement",
|
||||
"uri": "{/lang}/backend/projectmanagement/list?{?}",
|
||||
"uri": "{/prefix}projectmanagement/list?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 60,
|
||||
|
|
@ -15,11 +15,11 @@
|
|||
"children": [
|
||||
{
|
||||
"id": 1001702001,
|
||||
"pid": "/backend/projectmanagement",
|
||||
"pid": "/projectmanagement",
|
||||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "List",
|
||||
"uri": "{/lang}/backend/projectmanagement/list?{?}",
|
||||
"uri": "{/prefix}projectmanagement/list?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 1,
|
||||
|
|
@ -30,11 +30,11 @@
|
|||
},
|
||||
{
|
||||
"id": 1001703001,
|
||||
"pid": "/backend/projectmanagement",
|
||||
"pid": "/projectmanagement",
|
||||
"type": 3,
|
||||
"subtype": 1,
|
||||
"name": "Create",
|
||||
"uri": "{/lang}/backend/projectmanagement/create?{?}",
|
||||
"uri": "{/prefix}projectmanagement/create?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 5,
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ use phpOMS\Account\PermissionType;
|
|||
use phpOMS\Router\RouteVerb;
|
||||
|
||||
return [
|
||||
'^.*/backend/projectmanagement/list.*$' => [
|
||||
'^.*/projectmanagement/list.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\ProjectManagement\Controller\BackendController:viewProjectManagementList',
|
||||
'verb' => RouteVerb::GET,
|
||||
|
|
@ -17,7 +17,7 @@ return [
|
|||
],
|
||||
],
|
||||
],
|
||||
'^.*/backend/projectmanagement/create.*$' => [
|
||||
'^.*/projectmanagement/create.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\ProjectManagement\Controller\BackendController:viewProjectManagementCreate',
|
||||
'verb' => RouteVerb::GET,
|
||||
|
|
@ -28,7 +28,7 @@ return [
|
|||
],
|
||||
],
|
||||
],
|
||||
'^.*/backend/projectmanagement/profile.*$' => [
|
||||
'^.*/projectmanagement/profile.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\ProjectManagement\Controller\BackendController:viewProjectManagementProfile',
|
||||
'verb' => RouteVerb::GET,
|
||||
|
|
|
|||
|
|
@ -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('{/prefix}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>
|
||||
|
|
|
|||
|
|
@ -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('{/api}projectmanagement?{?}&csrf={$CSRF}'); ?>">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td colspan="2"><label for="iName"><?= $this->getHtml('Name') ?></label>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user