mirror of
https://github.com/Karaka-Management/oms-Admin.git
synced 2026-02-15 20:18:40 +00:00
draft tags and portlets
This commit is contained in:
parent
cdf1357c5c
commit
4a11ffe120
|
|
@ -273,6 +273,10 @@ final class BackendController extends Controller
|
||||||
$view = new View($this->app->l11nManager, $request, $response);
|
$view = new View($this->app->l11nManager, $request, $response);
|
||||||
$view->setTemplate('/Modules/Admin/Theme/Backend/modules-list');
|
$view->setTemplate('/Modules/Admin/Theme/Backend/modules-list');
|
||||||
|
|
||||||
|
$view->setData('modules', $this->app->moduleManager->getAllModules());
|
||||||
|
$view->setData('active', $this->app->moduleManager->getActiveModules());
|
||||||
|
$view->setData('installed', $this->app->moduleManager->getInstalledModules());
|
||||||
|
|
||||||
return $view;
|
return $view;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,18 +12,19 @@
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
use phpOMS\Uri\UriFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \phpOMS\Views\View $this
|
* @var \phpOMS\Views\View $this
|
||||||
*/
|
*/
|
||||||
echo $this->getData('nav')->render(); ?>
|
echo $this->getData('nav')->render(); ?>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12 col-md-4">
|
<div class="col-xs-12 col-md-4">
|
||||||
<section class="box wf-100">
|
<div class="portlet">
|
||||||
<header><h1><?= $this->getHtml('Account'); ?></h1></header>
|
<form id="fAccount" action="<?= UriFactory::build('{/api}admin/account'); ?>" method="put">
|
||||||
<div class="inner">
|
<div class="portlet-head"><?= $this->getHtml('Account'); ?></div>
|
||||||
<form id="fAccount" action="<?= \phpOMS\Uri\UriFactory::build('{/api}admin/account'); ?>" method="put">
|
<div class="portlet-body">
|
||||||
<table class="layout wf-100">
|
<table class="layout wf-100">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr><td><label for="iType"><?= $this->getHtml('Type'); ?></label>
|
<tr><td><label for="iType"><?= $this->getHtml('Type'); ?></label>
|
||||||
|
|
@ -50,10 +51,12 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<tr><td><input id="iEmail" name="email" type="email" placeholder=" d.duck@duckburg.com">
|
<tr><td><input id="iEmail" name="email" type="email" placeholder=" d.duck@duckburg.com">
|
||||||
<tr><td><label for="iPassword"><?= $this->getHtml('Name3'); ?></label>
|
<tr><td><label for="iPassword"><?= $this->getHtml('Name3'); ?></label>
|
||||||
<tr><td><input id="iPassword" name="password" type="password" placeholder=" Pa55ssw0rd?">
|
<tr><td><input id="iPassword" name="password" type="password" placeholder=" Pa55ssw0rd?">
|
||||||
<tr><td><input id="account-create-submit" name="createSubmit" type="submit" value="<?= $this->getHtml('Create', '0', '0'); ?>">
|
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
|
<div class="portlet-foot">
|
||||||
|
<input id="account-create-submit" name="createSubmit" type="submit" value="<?= $this->getHtml('Create', '0', '0'); ?>">
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -22,9 +22,9 @@ echo $this->getData('nav')->render(); ?>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12">
|
<div class="col-xs-12">
|
||||||
<div class="box wf-100">
|
<div class="portlet">
|
||||||
|
<div class="portlet-head"><?= $this->getHtml('Accounts') ?><i class="fa fa-download floatRight download btn"></i></div>
|
||||||
<table id="accountList" class="default">
|
<table id="accountList" class="default">
|
||||||
<caption><?= $this->getHtml('Groups') ?><i class="fa fa-download floatRight download btn"></i></caption>
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?= $this->getHtml('ID', '0', '0'); ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
<td><?= $this->getHtml('ID', '0', '0'); ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
||||||
|
|
@ -55,6 +55,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<tr><td colspan="5" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
<tr><td colspan="5" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</table>
|
</table>
|
||||||
|
<div class="portlet-foot"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@ declare(strict_types=1);
|
||||||
use phpOMS\Account\AccountStatus;
|
use phpOMS\Account\AccountStatus;
|
||||||
use phpOMS\Account\AccountType;
|
use phpOMS\Account\AccountType;
|
||||||
use phpOMS\Account\PermissionType;
|
use phpOMS\Account\PermissionType;
|
||||||
|
use phpOMS\Uri\UriFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @todo Orange-Management/Modules#122
|
* @todo Orange-Management/Modules#122
|
||||||
|
|
@ -41,10 +42,10 @@ echo $this->getData('nav')->render(); ?>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12 col-md-6">
|
<div class="col-xs-12 col-md-6">
|
||||||
<section class="box wf-100">
|
<div class="portlet">
|
||||||
<header><h1><?= $this->getHtml('Account'); ?></h1></header>
|
<form id="account-edit" action="<?= UriFactory::build('{/api}admin/account'); ?>" method="post">
|
||||||
<div class="inner">
|
<div class="portlet-head"><?= $this->getHtml('Account'); ?></div>
|
||||||
<form id="account-edit" action="<?= \phpOMS\Uri\UriFactory::build('{/api}admin/account'); ?>" method="post">
|
<div class="portlet-body">
|
||||||
<table class="layout wf-100">
|
<table class="layout wf-100">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr><td><label for="iId"><?= $this->getHtml('ID', '0', '0'); ?></label>
|
<tr><td><label for="iId"><?= $this->getHtml('ID', '0', '0'); ?></label>
|
||||||
|
|
@ -102,7 +103,9 @@ echo $this->getData('nav')->render(); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="ipt-second"> or <button><?= $this->getHtml('Reset'); ?></button></div>
|
<div class="ipt-second"> or <button><?= $this->getHtml('Reset'); ?></button></div>
|
||||||
</div>
|
</div>
|
||||||
<tr><td>
|
</table>
|
||||||
|
</div>
|
||||||
|
<div class="portlet-foot">
|
||||||
<input id="account-edit-submit" name="editSubmit" type="submit" value="<?= $this->getHtml('Save', '0', '0'); ?>">
|
<input id="account-edit-submit" name="editSubmit" type="submit" value="<?= $this->getHtml('Save', '0', '0'); ?>">
|
||||||
<button id="account-profile-create" data-action='[
|
<button id="account-profile-create" data-action='[
|
||||||
{
|
{
|
||||||
|
|
@ -114,15 +117,15 @@ echo $this->getData('nav')->render(); ?>
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]'><?= $this->getHtml('CreateProfile'); ?></button>
|
]'><?= $this->getHtml('CreateProfile'); ?></button>
|
||||||
</table>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-xs-12 col-md-6">
|
<div class="col-xs-12 col-md-6">
|
||||||
<table id="groupTable" class="box table default">
|
<div class="portlet">
|
||||||
<caption><?= $this->getHtml('Groups') ?><i class="fa fa-download floatRight download btn"></i></caption>
|
<div class="portlet-head"><?= $this->getHtml('Groups') ?><i class="fa fa-download floatRight download btn"></i></div>
|
||||||
|
<table id="groupTable" class="default">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
|
@ -130,7 +133,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<td class="wf-100"><?= $this->getHtml('Name') ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
<td class="wf-100"><?= $this->getHtml('Name') ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php $c = 0; $groups = $account->getGroups(); foreach ($groups as $key => $value) : ++$c;
|
<?php $c = 0; $groups = $account->getGroups(); foreach ($groups as $key => $value) : ++$c;
|
||||||
$url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/group/settings?{?}&id=' . $value->getId()); ?>
|
$url = UriFactory::build('{/prefix}admin/group/settings?{?}&id=' . $value->getId()); ?>
|
||||||
<tr data-href="<?= $url; ?>">
|
<tr data-href="<?= $url; ?>">
|
||||||
<td><a href="#"><i class="fa fa-times"></i></a>
|
<td><a href="#"><i class="fa fa-times"></i></a>
|
||||||
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
|
<td><a href="<?= $url; ?>"><?= $this->printHtml($value->getId()); ?></a>
|
||||||
|
|
@ -140,27 +143,30 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<tr><td colspan="5" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
<tr><td colspan="5" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
<section class="box wf-100">
|
<div class="portlet">
|
||||||
<header><h1><?= $this->getHtml('Groups'); ?></h1></header>
|
<form id="iAddGroupToAccount" action="<?= UriFactory::build('{/api}admin/account/group'); ?>" method="put">
|
||||||
<div class="inner">
|
<div class="portlet-head"><?= $this->getHtml('Groups'); ?></div>
|
||||||
<form id="iAddGroupToAccount" action="<?= \phpOMS\Uri\UriFactory::build('{/api}admin/account/group'); ?>" method="put">
|
<div class="portlet-body">
|
||||||
<table class="layout wf-100">
|
<table class="layout wf-100">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr><td><label for="iGroup"><?= $this->getHtml('Name'); ?></label>
|
<tr><td><label for="iGroup"><?= $this->getHtml('Name'); ?></label>
|
||||||
<tr><td><?= $this->getData('grpSelector')->render('iGroup', true); ?>
|
<tr><td><?= $this->getData('grpSelector')->render('iGroup', true); ?>
|
||||||
<tr><td>
|
</table>
|
||||||
|
</div>
|
||||||
|
<div class="portlet-foot">
|
||||||
<input name="account" type="hidden" value="<?= $this->printHtml($account->getId()); ?>">
|
<input name="account" type="hidden" value="<?= $this->printHtml($account->getId()); ?>">
|
||||||
<input type="submit" value="<?= $this->getHtml('Add', '0', '0'); ?>">
|
<input type="submit" value="<?= $this->getHtml('Add', '0', '0'); ?>">
|
||||||
</table>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-xs-12 col-md-6">
|
<div class="col-xs-12 col-md-6">
|
||||||
<table class="box table default">
|
<div class="portlet">
|
||||||
<caption><?= $this->getHtml('Permissions') ?><i class="fa fa-download floatRight download btn"></i></caption>
|
<div class="portlet-head"><?= $this->getHtml('Permissions') ?><i class="fa fa-download floatRight download btn"></i></div>
|
||||||
|
<table class="default">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
|
@ -196,11 +202,12 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<tr><td colspan="10" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
<tr><td colspan="10" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
<section class="box wf-100">
|
<div class="portlet">
|
||||||
<header><h1><?= $this->getHtml('Permissions'); ?></h1></header>
|
<form id="fAccountAddPermission" action="<?= UriFactory::build('{/api}admin/account/permission'); ?>" method="put">
|
||||||
<div class="inner">
|
<div class="portlet-head"><?= $this->getHtml('Permissions'); ?></div>
|
||||||
<form id="fAccountAddPermission" action="<?= \phpOMS\Uri\UriFactory::build('{/api}admin/account/permission'); ?>" method="put">
|
<div class="portlet-body">
|
||||||
<table class="layout wf-100">
|
<table class="layout wf-100">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr><td><label for="iPermissionUnit"><?= $this->getHtml('Unit'); ?></label>
|
<tr><td><label for="iPermissionUnit"><?= $this->getHtml('Unit'); ?></label>
|
||||||
|
|
@ -237,13 +244,14 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<input id="iPermissionPermission" name="permissionpermission" type="checkbox" value="<?= PermissionType::PERMISSION ?>">
|
<input id="iPermissionPermission" name="permissionpermission" type="checkbox" value="<?= PermissionType::PERMISSION ?>">
|
||||||
<label for="iPermissionPermission"><?= $this->getHtml('Permission') ?></label>
|
<label for="iPermissionPermission"><?= $this->getHtml('Permission') ?></label>
|
||||||
</span>
|
</span>
|
||||||
<tr><td>
|
</table>
|
||||||
|
</div>
|
||||||
|
<div class="portlet-foot">
|
||||||
<input type="hidden" name="permissionref" value="<?= $this->printHtml($account->getId()); ?>">
|
<input type="hidden" name="permissionref" value="<?= $this->printHtml($account->getId()); ?>">
|
||||||
<input type="hidden" name="permissionowner" value="<?= \phpOMS\Account\PermissionOwner::ACCOUNT ?>">
|
<input type="hidden" name="permissionowner" value="<?= \phpOMS\Account\PermissionOwner::ACCOUNT ?>">
|
||||||
<input type="submit" value="<?= $this->getHtml('Add', '0', '0'); ?>">
|
<input type="submit" value="<?= $this->getHtml('Add', '0', '0'); ?>">
|
||||||
</table>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -12,6 +12,7 @@
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
use phpOMS\Uri\UriFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \phpOMS\Views\View $this
|
* @var \phpOMS\Views\View $this
|
||||||
|
|
@ -20,10 +21,10 @@ echo $this->getData('nav')->render(); ?>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12 col-md-4">
|
<div class="col-xs-12 col-md-4">
|
||||||
<section class="box wf-100">
|
<div class="portlet">
|
||||||
<header><h1><?= $this->getHtml('Group'); ?></h1></header>
|
<form id="fGroupCreate" action="<?= UriFactory::build('{/api}admin/group'); ?>" method="put">
|
||||||
<div class="inner">
|
<div class="portlet-head"><?= $this->getHtml('Group'); ?></div>
|
||||||
<form id="fGroupCreate" action="<?= \phpOMS\Uri\UriFactory::build('{/api}admin/group'); ?>" method="put">
|
<div class="portlet-body">
|
||||||
<table class="layout wf-100" style="table-layout: fixed">
|
<table class="layout wf-100" style="table-layout: fixed">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr><td><label for="iStatus"><?= $this->getHtml('Status'); ?></label>
|
<tr><td><label for="iStatus"><?= $this->getHtml('Status'); ?></label>
|
||||||
|
|
@ -36,10 +37,12 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<tr><td><input id="iGname" name="name" type="text" placeholder=" Guest" required>
|
<tr><td><input id="iGname" name="name" type="text" placeholder=" Guest" required>
|
||||||
<tr><td><?= $this->getData('editor')->render('group-editor'); ?>
|
<tr><td><?= $this->getData('editor')->render('group-editor'); ?>
|
||||||
<tr><td><?= $this->getData('editor')->getData('text')->render('group-editor', 'description', 'fGroupCreate'); ?>
|
<tr><td><?= $this->getData('editor')->getData('text')->render('group-editor', 'description', 'fGroupCreate'); ?>
|
||||||
<tr><td><input type="submit" id="iCreate" name="create" value="<?= $this->getHtml('Create', '0', '0'); ?>">
|
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
|
<div class="portlet-foot">
|
||||||
|
<input type="submit" id="iCreate" name="create" value="<?= $this->getHtml('Create', '0', '0'); ?>">
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -20,16 +20,15 @@ echo $this->getData('nav')->render(); ?>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12">
|
<div class="col-xs-12">
|
||||||
<table id="groupList" class="box table default">
|
<div class="portlet">
|
||||||
<caption><?= $this->getHtml('Groups') ?><i class="fa fa-download floatRight download btn"></i></caption>
|
<div class="portlet-head"><?= $this->getHtml('Groups') ?><i class="fa fa-download floatRight download btn"></i></div>
|
||||||
|
<table id="groupList" class="default">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?= $this->getHtml('ID', '0', '0'); ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
<td><?= $this->getHtml('ID', '0', '0'); ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
||||||
<td><?= $this->getHtml('Status') ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
<td><?= $this->getHtml('Status') ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
||||||
<td class="wf-100"><?= $this->getHtml('Name') ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
<td class="wf-100"><?= $this->getHtml('Name') ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
||||||
<td><?= $this->getHtml('Members') ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
<td><?= $this->getHtml('Members') ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
||||||
<tfoot>
|
|
||||||
<tr><td colspan="5">
|
|
||||||
<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('{/prefix}admin/group/settings?{?}&id=' . $value->getId());
|
$url = \phpOMS\Uri\UriFactory::build('{/prefix}admin/group/settings?{?}&id=' . $value->getId());
|
||||||
|
|
@ -47,5 +46,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<tr><td colspan="5" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
<tr><td colspan="5" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</table>
|
</table>
|
||||||
|
<div class="portlet-foot"></div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -12,6 +12,8 @@
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
use phpOMS\Uri\UriFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @todo Orange-Management/Modules#122
|
* @todo Orange-Management/Modules#122
|
||||||
* Add group account removal
|
* Add group account removal
|
||||||
|
|
@ -59,10 +61,10 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<div class="tab">
|
<div class="tab">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12 col-md-6">
|
<div class="col-xs-12 col-md-6">
|
||||||
<section class="box wf-100">
|
<div class="portlet">
|
||||||
<header><h1><?= $this->getHtml('Group'); ?></h1></header>
|
<form id="fGroupEdit" action="<?= UriFactory::build('{/api}admin/group'); ?>" method="post">
|
||||||
<div class="inner">
|
<div class="portlet-head"><?= $this->getHtml('Group'); ?></div>
|
||||||
<form id="fGroupEdit" action="<?= \phpOMS\Uri\UriFactory::build('{/api}admin/group'); ?>" method="post">
|
<div class="portlet-body">
|
||||||
<label for="iGid"><?= $this->getHtml('ID', '0', '0'); ?></label>
|
<label for="iGid"><?= $this->getHtml('ID', '0', '0'); ?></label>
|
||||||
<input id="iGid" name="id" type="text" value="<?= $this->printHtml($group->getId()); ?>" disabled>
|
<input id="iGid" name="id" type="text" value="<?= $this->printHtml($group->getId()); ?>" disabled>
|
||||||
<label for="iGname"><?= $this->getHtml('Name'); ?></label>
|
<label for="iGname"><?= $this->getHtml('Name'); ?></label>
|
||||||
|
|
@ -81,15 +83,18 @@ echo $this->getData('nav')->render(); ?>
|
||||||
$group->getDescriptionRaw(),
|
$group->getDescriptionRaw(),
|
||||||
$group->getDescription()
|
$group->getDescription()
|
||||||
); ?>
|
); ?>
|
||||||
|
</div>
|
||||||
|
<div class="portlet-foot">
|
||||||
<input id="groupSubmit" name="groupsubmit" type="submit" value="<?= $this->getHtml('Save', '0', '0'); ?>">
|
<input id="groupSubmit" name="groupsubmit" type="submit" value="<?= $this->getHtml('Save', '0', '0'); ?>">
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-xs-12 col-md-6">
|
<div class="col-xs-12 col-md-6">
|
||||||
<table class="box table default wf-100">
|
<div class="portlet">
|
||||||
<caption><?= $this->getHtml('Accounts') ?><i class="fa fa-download floatRight download btn"></i></caption>
|
<div class="portlet-head"><?= $this->getHtml('Accounts') ?><i class="fa fa-download floatRight download btn"></i></div>
|
||||||
|
<table class="default">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?= $this->getHtml('ID', '0', '0'); ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
<td><?= $this->getHtml('ID', '0', '0'); ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
||||||
|
|
@ -98,28 +103,33 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<?php $c = 0; foreach ($accounts as $key => $value) : ++$c; ?>
|
<?php $c = 0; foreach ($accounts as $key => $value) : ++$c; ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="#"><i class="fa fa-times"></i></a>
|
<td><a href="#"><i class="fa fa-times"></i></a>
|
||||||
<td><a href="<?= \phpOMS\Uri\UriFactory::build('{/prefix}admin/account/settings?{?}&id=' . $value->getId()) ?>"><?= $value->getName1(); ?></a>
|
<td><a href="<?= UriFactory::build('{/prefix}admin/account/settings?{?}&id=' . $value->getId()) ?>"><?= $value->getName1(); ?></a>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<?php if ($c === 0) : ?>
|
<?php if ($c === 0) : ?>
|
||||||
<tr><td colspan="2" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
<tr><td colspan="2" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</table>
|
</table>
|
||||||
|
<div class="portlet-foot"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<section class="box wf-100">
|
<div class="portlet">
|
||||||
<header><h1><?= $this->getHtml('Accounts'); ?></h1></header>
|
<form id="iAddAccountToGroup" action="<?= UriFactory::build('{/api}admin/group/account'); ?>" method="put">
|
||||||
<div class="inner">
|
<div class="portlet-head"><?= $this->getHtml('Accounts'); ?></div>
|
||||||
<form id="iAddAccountToGroup" action="<?= \phpOMS\Uri\UriFactory::build('{/api}admin/group/account'); ?>" method="put">
|
<div class="portlet-body">
|
||||||
<label for="iAccount"><?= $this->getHtml('Name'); ?></label>
|
<label for="iAccount"><?= $this->getHtml('Name'); ?></label>
|
||||||
<?= $this->getData('accGrpSelector')->render('iAccount', 'group', true); ?>
|
<?= $this->getData('accGrpSelector')->render('iAccount', 'group', true); ?>
|
||||||
|
</div>
|
||||||
|
<div class="portlet-foot">
|
||||||
<input type="submit" value="<?= $this->getHtml('Add', '0', '0'); ?>">
|
<input type="submit" value="<?= $this->getHtml('Add', '0', '0'); ?>">
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-xs-12 col-md-6">
|
<div class="col-xs-12 col-md-6">
|
||||||
<table id="groupPermissions" class="box table default wf-100" data-table-form="fGroupAddPermission">
|
<div class="portlet">
|
||||||
<caption><?= $this->getHtml('Permissions') ?><i class="fa fa-download floatRight download btn"></i></caption>
|
<div class="portlet-head"><?= $this->getHtml('Permissions') ?><i class="fa fa-download floatRight download btn"></i></div>
|
||||||
|
<table id="groupPermissions" class="default" data-table-form="fGroupAddPermission">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
|
@ -175,11 +185,14 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<tr><td colspan="10" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
<tr><td colspan="10" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</table>
|
</table>
|
||||||
|
<div class="portlet-foot"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<section class="box wf-100">
|
|
||||||
<header><h1><?= $this->getHtml('Permissions'); ?></h1></header>
|
<div class="portlet">
|
||||||
<div class="inner">
|
<form id="fGroupAddPermission" action="<?= UriFactory::build('{/api}admin/group/permission'); ?>" method="put">
|
||||||
<form id="fGroupAddPermission" action="<?= \phpOMS\Uri\UriFactory::build('{/api}admin/group/permission'); ?>" method="put">
|
<div class="portlet-head"><?= $this->getHtml('Permissions'); ?></div>
|
||||||
|
<div class="portlet-body">
|
||||||
<table class="layout wf-100">
|
<table class="layout wf-100">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr><td><label for="iPermissionUnit"><?= $this->getHtml('Unit'); ?></label>
|
<tr><td><label for="iPermissionUnit"><?= $this->getHtml('Unit'); ?></label>
|
||||||
|
|
@ -216,14 +229,15 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<input id="iPermissionPermission" name="permissionpermission" type="checkbox" value="<?= \phpOMS\Account\PermissionType::PERMISSION ?>" data-tpl-text="/perm/p" data-tpl-value="/perm/p">
|
<input id="iPermissionPermission" name="permissionpermission" type="checkbox" value="<?= \phpOMS\Account\PermissionType::PERMISSION ?>" data-tpl-text="/perm/p" data-tpl-value="/perm/p">
|
||||||
<label for="iPermissionPermission"><?= $this->getHtml('Permission') ?></label>
|
<label for="iPermissionPermission"><?= $this->getHtml('Permission') ?></label>
|
||||||
</span>
|
</span>
|
||||||
<tr><td>
|
</table>
|
||||||
|
</div>
|
||||||
|
<div class="portlet-foot">
|
||||||
<input type="hidden" name="permissionref" value="<?= $this->printHtml($group->getId()); ?>">
|
<input type="hidden" name="permissionref" value="<?= $this->printHtml($group->getId()); ?>">
|
||||||
<input type="hidden" name="permissionowner" value="<?= \phpOMS\Account\PermissionOwner::GROUP ?>">
|
<input type="hidden" name="permissionowner" value="<?= \phpOMS\Account\PermissionOwner::GROUP ?>">
|
||||||
<input type="submit" value="<?= $this->getHtml('Add', '0', '0'); ?>">
|
<input type="submit" value="<?= $this->getHtml('Add', '0', '0'); ?>">
|
||||||
</table>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -232,8 +246,9 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<div class="tab">
|
<div class="tab">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12">
|
<div class="col-xs-12">
|
||||||
<table class="box table default wf-100">
|
<div class="portlet">
|
||||||
<caption><?= $this->getHtml('AuditLog') ?><i class="fa fa-download floatRight download btn"></i></caption>
|
<div class="portlet-head"><?= $this->getHtml('AuditLog') ?><i class="fa fa-download floatRight download btn"></i></div>
|
||||||
|
<table class="default">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?= $this->getHtml('ID', '0', '0'); ?>
|
<td><?= $this->getHtml('ID', '0', '0'); ?>
|
||||||
|
|
@ -249,6 +264,8 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<tr><td colspan="2" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
<tr><td colspan="2" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</table>
|
</table>
|
||||||
|
<div class="portlet-foot"></div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -18,16 +18,16 @@ use phpOMS\Module\ModuleStatus;
|
||||||
* @var \phpOMS\Views\View $this
|
* @var \phpOMS\Views\View $this
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$modules = $this->app->moduleManager->getAllModules();
|
$modules = $this->getData('modules') ?? [];
|
||||||
$active = $this->app->moduleManager->getActiveModules();
|
$active = $this->getData('active') ?? [];
|
||||||
$installed = $this->app->moduleManager->getInstalledModules();
|
$isntalled = $this->getData('isntalled') ?? [];
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12">
|
<div class="col-xs-12">
|
||||||
<div class="box wf-100">
|
<div class="portlet">
|
||||||
|
<div class="portlet-head"><?= $this->getHtml('Modules') ?><i class="fa fa-download floatRight download btn"></i></div>
|
||||||
<table id="moduleList" class="default">
|
<table id="moduleList" class="default">
|
||||||
<caption><?= $this->getHtml('Modules') ?><i class="fa fa-download floatRight download btn"></i></caption>
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?= $this->getHtml('ID', '0', '0'); ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
<td><?= $this->getHtml('ID', '0', '0'); ?><i class="sort-asc fa fa-chevron-up"></i><i class="sort-desc fa fa-chevron-down"></i>
|
||||||
|
|
@ -71,6 +71,7 @@ $installed = $this->app->moduleManager->getInstalledModules();
|
||||||
<tr><td colspan="4" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
<tr><td colspan="4" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</table>
|
</table>
|
||||||
|
<div class="portlet-foot"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -32,10 +32,10 @@ if ($nav !== null) {
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12 col-md-4">
|
<div class="col-xs-12 col-md-4">
|
||||||
<section class="box wf-100">
|
<div class="portlet">
|
||||||
<header><h1><?= $this->printHtml($modules[$id]['name']['external']); ?></h1></header>
|
<div class="portlet-head"><?= $this->printHtml($modules[$id]['name']['external']); ?></div>
|
||||||
|
|
||||||
<div class="inner">
|
<div class="portlet-body">
|
||||||
<table class="list wf-100">
|
<table class="list wf-100">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -53,8 +53,9 @@ if ($nav !== null) {
|
||||||
<tr>
|
<tr>
|
||||||
<td><?= $this->getHtml('Description'); ?>
|
<td><?= $this->getHtml('Description'); ?>
|
||||||
<td><?= $this->printHtml($modules[$id]['description']); ?>
|
<td><?= $this->printHtml($modules[$id]['description']); ?>
|
||||||
<tr>
|
</table>
|
||||||
<td colspan="2">
|
</div>
|
||||||
|
<div class="portlet-foot">
|
||||||
<?php if (isset($active[$id])) : ?>
|
<?php if (isset($active[$id])) : ?>
|
||||||
<form id="fModuleDeactivate" action="<?= \phpOMS\Uri\UriFactory::build('{/api}admin/module/status?module=' . $id); ?>" method="POST">
|
<form id="fModuleDeactivate" action="<?= \phpOMS\Uri\UriFactory::build('{/api}admin/module/status?module=' . $id); ?>" method="POST">
|
||||||
<button id="fModuleDeactivateButton" name="status" type="submit" value="<?= ModuleStatusUpdateType::DEACTIVATE ?>"><?= $this->getHtml('Deactivate'); ?></button>
|
<button id="fModuleDeactivateButton" name="status" type="submit" value="<?= ModuleStatusUpdateType::DEACTIVATE ?>"><?= $this->getHtml('Deactivate'); ?></button>
|
||||||
|
|
@ -86,23 +87,23 @@ if ($nav !== null) {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</table>
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-xs-12 col-md-4">
|
<div class="col-xs-12 col-md-4">
|
||||||
<section class="box wf-100">
|
<div class="portlet">
|
||||||
<header><h1><?= $this->getHtml('Settings'); ?></h1></header>
|
<div class="portlet-head"><?= $this->getHtml('Settings'); ?></div>
|
||||||
|
|
||||||
<div class="inner">
|
<div class="portlet-body">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-xs-12 col-md-4">
|
<div class="col-xs-12 col-md-4">
|
||||||
<table id="iModuleGroupList" class="box table default wf-100">
|
<div class="portlet">
|
||||||
|
<table id="iModuleGroupList" class="default">
|
||||||
<caption><?= $this->getHtml('Permissions') ?><i class="fa fa-download floatRight download btn"></i></caption>
|
<caption><?= $this->getHtml('Permissions') ?><i class="fa fa-download floatRight download btn"></i></caption>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -123,4 +124,5 @@ if ($nav !== null) {
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user