oms-Admin/Theme/Backend/modules-single.tpl.php
Dennis Eichhorn 34081fc20c Language display optimized
Language is now no longer direct array access but provided through a
function. This can be later used to hot load language files instead of
pre-loading them.
2016-07-02 14:14:31 +02:00

87 lines
3.3 KiB
PHP

<?php
/**
* Orange Management
*
* PHP Version 7.0
*
* @category TBD
* @package TBD
* @author OMS Development Team <dev@oms.com>
* @author Dennis Eichhorn <d.eichhorn@oms.com>
* @copyright 2013 Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://orange-management.com
*/
/**
* @var \phpOMS\Views\View $this
*/
$modules = $this->app->moduleManager->getAllModules();
$active = $this->app->moduleManager->getActiveModules();
$installed = $this->app->moduleManager->getInstalledModules();
$id = $this->request->getData('id') ?? 1;
?>
<section class="box w-33 floatLeft">
<header><h1><?= $modules[$id]['name']['external'] ?></h1></header>
<div class="inner">
<table class="list wf-100">
<tbody>
<tr>
<td><?= $this->l11n->getText('Admin', 'Name') ?>
<td><?= $modules[$id]['name']['external']; ?>
<tr>
<td><?= $this->l11n->getText('Admin', 'Version') ?>
<td><?= $modules[$id]['version'] ?>
<tr>
<td><?= $this->l11n->getText('Admin', 'CreatedBy') ?>
<td><?= $modules[$id]['creator']['name'] ?>
<tr>
<td><?= $this->l11n->getText('Admin', 'Website') ?>
<td><?= $modules[$id]['creator']['website'] ?>
<tr>
<td><?= $this->l11n->getText('Admin', 'Description') ?>
<td><?= $modules[$id]['description'] ?>
<tr>
<td colspan="2">
<?php if (in_array($id, $active)) : ?>
<button
data-reload="<?= \phpOMS\Uri\UriFactory::build('POST:/{/lang}/backend/admin/module/status?status=deactivate&module=' . $id); ?>"><?= $this->l11n->getText('Admin', 'Deactivate') ?></button>
<?php elseif (in_array($id, $installed)) : ?>
<button data-reload="<?= \phpOMS\Uri\UriFactory::build('POST:/{/lang}/backend/admin/module/deactivate?id=' . $id); ?>"><?= $this->l11n->getText('Admin', 'Uninstall') ?></button>
<button data-reload="<?= \phpOMS\Uri\UriFactory::build('POST:/{/lang}/backend/admin/module/deactivate?id=' . $id); ?>"><?= $this->l11n->getText('Admin', 'Activate') ?></button>
<?php elseif (isset($modules[$id])) : ?>
<button data-reload="<?= \phpOMS\Uri\UriFactory::build('PUT:/{/lang}/backend/admin/module/install?id=' . $id); ?>"><?= $this->l11n->getText('Admin', 'Install') ?></button>
<button data-reload="<?= \phpOMS\Uri\UriFactory::build('DELETE:/{/lang}/backend/admin/module/delete?id=' . $id); ?>"><?= $this->l11n->getText('Admin', 'Delete') ?></button>
<?php endif; ?>
</table>
</div>
</section>
<section class="box w-33 floatLeft">
<header><h1><?= $this->l11n->getText('Admin', 'Settings') ?></h1></header>
<div class="inner">
</div>
</section>
<section class="box w-33 floatLeft">
<header><h1><?= $this->l11n->getText('Admin', 'Groups') ?></h1></header>
<div class="inner">
</div>
</section>
<section class="box w-33 floatLeft">
<header><h1><?= $this->l11n->getText('Admin', 'Permissions') ?></h1></header>
<div class="inner">
</div>
</section>