mirror of
https://github.com/Karaka-Management/oms-Admin.git
synced 2026-02-15 12:08:40 +00:00
Pass uri query parameter
This commit is contained in:
parent
a7cc9179bb
commit
dee8621fba
|
|
@ -44,7 +44,7 @@ echo $this->getData('nav')->render();
|
||||||
<tr><td colspan="5"><?= $footerView->render(); ?>
|
<tr><td colspan="5"><?= $footerView->render(); ?>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php $c = 0; foreach ($this->getData('list:elements') as $key => $value) : $c++;
|
<?php $c = 0; foreach ($this->getData('list:elements') as $key => $value) : $c++;
|
||||||
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/admin/account/settings?id=' . $value->getId()); ?>
|
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/admin/account/settings?{?}id=' . $value->getId()); ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
|
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
|
||||||
<td><a href="<?= $url; ?>"><?= $value->getStatus(); ?></a>
|
<td><a href="<?= $url; ?>"><?= $value->getStatus(); ?></a>
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<tr><td colspan="5"><?= $footerView->render(); ?>
|
<tr><td colspan="5"><?= $footerView->render(); ?>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php $c = 0; foreach ($this->getData('list:elements') as $key => $value) : $c++;
|
<?php $c = 0; foreach ($this->getData('list:elements') as $key => $value) : $c++;
|
||||||
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/admin/group/settings?id=' . $value->getId()); ?>
|
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/admin/group/settings?{?}id=' . $value->getId()); ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
|
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
|
||||||
<td><a href="<?= $url; ?>"><?= $value->getName(); ?></a>
|
<td><a href="<?= $url; ?>"><?= $value->getName(); ?></a>
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ $footerView->setResults(count($modules));
|
||||||
<td colspan="4"><?= $footerView->render(); ?>
|
<td colspan="4"><?= $footerView->render(); ?>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php $count = 0; foreach ($modules as $key => $module) : $count++;
|
<?php $count = 0; foreach ($modules as $key => $module) : $count++;
|
||||||
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/admin/module/settings?id=' . $module['name']['internal']); ?>
|
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/admin/module/settings?{?}id=' . $module['name']['internal']); ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="<?= $url; ?>"><?= $module['name']['internal']; ?></a>
|
<td><a href="<?= $url; ?>"><?= $module['name']['internal']; ?></a>
|
||||||
<td><a href="<?= $url; ?>"><?= $module['name']['external']; ?></a>
|
<td><a href="<?= $url; ?>"><?= $module['name']['external']; ?></a>
|
||||||
|
|
|
||||||
|
|
@ -51,13 +51,13 @@ $id = $this->request->getData('id') ?? 1;
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<?php if (in_array($id, $active)) : ?>
|
<?php if (in_array($id, $active)) : ?>
|
||||||
<button
|
<button
|
||||||
data-reload="<?= \phpOMS\Uri\UriFactory::build('POST:/{/lang}/backend/admin/module/status?status=deactivate&module=' . $id); ?>"><?= $this->getText('Deactivate') ?></button>
|
data-reload="<?= \phpOMS\Uri\UriFactory::build('POST:/{/lang}/backend/admin/module/status?{?}status=deactivate&module=' . $id); ?>"><?= $this->getText('Deactivate') ?></button>
|
||||||
<?php elseif (in_array($id, $installed)) : ?>
|
<?php elseif (in_array($id, $installed)) : ?>
|
||||||
<button data-reload="<?= \phpOMS\Uri\UriFactory::build('POST:/{/lang}/backend/admin/module/deactivate?id=' . $id); ?>"><?= $this->getText('Uninstall') ?></button>
|
<button data-reload="<?= \phpOMS\Uri\UriFactory::build('POST:/{/lang}/backend/admin/module/deactivate?{?}id=' . $id); ?>"><?= $this->getText('Uninstall') ?></button>
|
||||||
<button data-reload="<?= \phpOMS\Uri\UriFactory::build('POST:/{/lang}/backend/admin/module/deactivate?id=' . $id); ?>"><?= $this->getText('Activate') ?></button>
|
<button data-reload="<?= \phpOMS\Uri\UriFactory::build('POST:/{/lang}/backend/admin/module/deactivate?{?}id=' . $id); ?>"><?= $this->getText('Activate') ?></button>
|
||||||
<?php elseif (isset($modules[$id])) : ?>
|
<?php elseif (isset($modules[$id])) : ?>
|
||||||
<button data-reload="<?= \phpOMS\Uri\UriFactory::build('PUT:/{/lang}/backend/admin/module/install?id=' . $id); ?>"><?= $this->getText('Install') ?></button>
|
<button data-reload="<?= \phpOMS\Uri\UriFactory::build('PUT:/{/lang}/backend/admin/module/install?{?}id=' . $id); ?>"><?= $this->getText('Install') ?></button>
|
||||||
<button data-reload="<?= \phpOMS\Uri\UriFactory::build('DELETE:/{/lang}/backend/admin/module/delete?id=' . $id); ?>"><?= $this->getText('Delete', 0) ?></button>
|
<button data-reload="<?= \phpOMS\Uri\UriFactory::build('DELETE:/{/lang}/backend/admin/module/delete?{?}id=' . $id); ?>"><?= $this->getText('Delete', 0) ?></button>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user