mirror of
https://github.com/Karaka-Management/oms-ClientManagement.git
synced 2026-02-13 23:38:43 +00:00
Make app,localization in url optional+tld+subdomain
This commit is contained in:
parent
8629f0155e
commit
9ab1552fd4
|
|
@ -1,11 +1,11 @@
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"id": 1003102001,
|
"id": 1003102001,
|
||||||
"pid": "/backend",
|
"pid": "/",
|
||||||
"type": 2,
|
"type": 2,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "Clients",
|
"name": "Clients",
|
||||||
"uri": "{/lang}/backend/sales/client/list?{?}",
|
"uri": "{/prefix}sales/client/list?{?}",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 1,
|
"order": 1,
|
||||||
|
|
@ -15,11 +15,11 @@
|
||||||
"children": [
|
"children": [
|
||||||
{
|
{
|
||||||
"id": 1003102101,
|
"id": 1003102101,
|
||||||
"pid": "/backend/sales/client",
|
"pid": "/sales/client",
|
||||||
"type": 3,
|
"type": 3,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "List",
|
"name": "List",
|
||||||
"uri": "{/lang}/backend/sales/client/list?{?}",
|
"uri": "{/prefix}sales/client/list?{?}",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 1,
|
"order": 1,
|
||||||
|
|
@ -30,11 +30,11 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 1003102201,
|
"id": 1003102201,
|
||||||
"pid": "/backend/sales/client",
|
"pid": "/sales/client",
|
||||||
"type": 3,
|
"type": 3,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "Create",
|
"name": "Create",
|
||||||
"uri": "{/lang}/backend/sales/client/create?{?}",
|
"uri": "{/prefix}sales/client/create?{?}",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 1,
|
"order": 1,
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ use phpOMS\Router\RouteVerb;
|
||||||
|
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'^.*/backend/sales/client/list.*$' => [
|
'^.*/sales/client/list.*$' => [
|
||||||
[
|
[
|
||||||
'dest' => '\Modules\ClientManagement\Controller\BackendController:viewClientManagementClientList',
|
'dest' => '\Modules\ClientManagement\Controller\BackendController:viewClientManagementClientList',
|
||||||
'verb' => RouteVerb::GET,
|
'verb' => RouteVerb::GET,
|
||||||
|
|
@ -18,7 +18,7 @@ return [
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'^.*/backend/sales/client/create.*$' => [
|
'^.*/sales/client/create.*$' => [
|
||||||
[
|
[
|
||||||
'dest' => '\Modules\ClientManagement\Controller\BackendController:viewClientManagementClientCreate',
|
'dest' => '\Modules\ClientManagement\Controller\BackendController:viewClientManagementClientCreate',
|
||||||
'verb' => RouteVerb::GET,
|
'verb' => RouteVerb::GET,
|
||||||
|
|
@ -29,7 +29,7 @@ return [
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'^.*/backend/sales/client/profile.*$' => [
|
'^.*/sales/client/profile.*$' => [
|
||||||
[
|
[
|
||||||
'dest' => '\Modules\ClientManagement\Controller\BackendController:viewClientManagementClientProfile',
|
'dest' => '\Modules\ClientManagement\Controller\BackendController:viewClientManagementClientProfile',
|
||||||
'verb' => RouteVerb::GET,
|
'verb' => RouteVerb::GET,
|
||||||
|
|
@ -40,7 +40,7 @@ return [
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'^.*/backend/sales/client/analysis.*$' => [
|
'^.*/sales/client/analysis.*$' => [
|
||||||
[
|
[
|
||||||
'dest' => '\Modules\ClientManagement\Controller\BackendController:viewClientManagementClientAnalysis',
|
'dest' => '\Modules\ClientManagement\Controller\BackendController:viewClientManagementClientAnalysis',
|
||||||
'verb' => RouteVerb::GET,
|
'verb' => RouteVerb::GET,
|
||||||
|
|
|
||||||
|
|
@ -183,7 +183,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<section class="box wf-100">
|
<section class="box wf-100">
|
||||||
<header><h1><?= $this->getHtml('Price'); ?></h1></header>
|
<header><h1><?= $this->getHtml('Price'); ?></h1></header>
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
<form action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/...'); ?>" method="post">
|
<form action="<?= \phpOMS\Uri\UriFactory::build('{/api}...'); ?>" method="post">
|
||||||
<table class="layout wf-100">
|
<table class="layout wf-100">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr><td colspan="2"><label for="iPType"><?= $this->getHtml('Type'); ?></label>
|
<tr><td colspan="2"><label for="iPType"><?= $this->getHtml('Type'); ?></label>
|
||||||
|
|
@ -225,7 +225,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<section class="box wf-100">
|
<section class="box wf-100">
|
||||||
<header><h1><?= $this->getHtml('AreaManager'); ?></h1></header>
|
<header><h1><?= $this->getHtml('AreaManager'); ?></h1></header>
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
<form action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/...'); ?>" method="post">
|
<form action="<?= \phpOMS\Uri\UriFactory::build('{/api}...'); ?>" method="post">
|
||||||
<table class="layout wf-100">
|
<table class="layout wf-100">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr><td><label for="iManager"><?= $this->getHtml('AreaManager'); ?></label>
|
<tr><td><label for="iManager"><?= $this->getHtml('AreaManager'); ?></label>
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<td colspan="8">
|
<td colspan="8">
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php $count = 0; foreach ($clients as $key => $value) : ++$count;
|
<?php $count = 0; foreach ($clients as $key => $value) : ++$count;
|
||||||
$url = \phpOMS\Uri\UriFactory::build('{/lang}/backend/sales/client/profile?{?}&id=' . $value->getId()); ?>
|
$url = \phpOMS\Uri\UriFactory::build('{/prefix}sales/client/profile?{?}&id=' . $value->getId()); ?>
|
||||||
<tr data-href="<?= $url; ?>">
|
<tr data-href="<?= $url; ?>">
|
||||||
<td data-label="<?= $this->getHtml('ID', 0, 0) ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getNumber()); ?></a>
|
<td data-label="<?= $this->getHtml('ID', 0, 0) ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getNumber()); ?></a>
|
||||||
<td data-label="<?= $this->getHtml('Name1') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getProfile()->getAccount()->getName1()); ?></a>
|
<td data-label="<?= $this->getHtml('Name1') ?>"><a href="<?= $url; ?>"><?= $this->printHtml($value->getProfile()->getAccount()->getName1()); ?></a>
|
||||||
|
|
|
||||||
|
|
@ -192,7 +192,7 @@ echo $this->getData('nav')->render();
|
||||||
<section class="box wf-100">
|
<section class="box wf-100">
|
||||||
<header><h1><?= $this->getHtml('Price'); ?></h1></header>
|
<header><h1><?= $this->getHtml('Price'); ?></h1></header>
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
<form action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/...'); ?>" method="post">
|
<form action="<?= \phpOMS\Uri\UriFactory::build('{/api}...'); ?>" method="post">
|
||||||
<table class="layout wf-100">
|
<table class="layout wf-100">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr><td colspan="2"><label for="iPType"><?= $this->getHtml('Type'); ?></label>
|
<tr><td colspan="2"><label for="iPType"><?= $this->getHtml('Type'); ?></label>
|
||||||
|
|
@ -234,7 +234,7 @@ echo $this->getData('nav')->render();
|
||||||
<section class="box wf-100">
|
<section class="box wf-100">
|
||||||
<header><h1><?= $this->getHtml('AreaManager'); ?></h1></header>
|
<header><h1><?= $this->getHtml('AreaManager'); ?></h1></header>
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
<form action="<?= \phpOMS\Uri\UriFactory::build('{/lang}/api/...'); ?>" method="post">
|
<form action="<?= \phpOMS\Uri\UriFactory::build('{/api}...'); ?>" method="post">
|
||||||
<table class="layout wf-100">
|
<table class="layout wf-100">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr><td><label for="iManager"><?= $this->getHtml('AreaManager'); ?></label>
|
<tr><td><label for="iManager"><?= $this->getHtml('AreaManager'); ?></label>
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
"load": [
|
"load": [
|
||||||
{
|
{
|
||||||
"pid": [
|
"pid": [
|
||||||
"/backend/sales/customer"
|
"/sales/customer"
|
||||||
],
|
],
|
||||||
"type": 4,
|
"type": 4,
|
||||||
"for": 0,
|
"for": 0,
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"pid": [
|
"pid": [
|
||||||
"/backend"
|
"/"
|
||||||
],
|
],
|
||||||
"type": 5,
|
"type": 5,
|
||||||
"from": "ClientManagement",
|
"from": "ClientManagement",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user