Admin tpl flexbox implementation

This commit is contained in:
Dennis Eichhorn 2017-01-28 19:56:03 +01:00
parent 5c01bd782d
commit 77a44ebb1b
8 changed files with 444 additions and 386 deletions

View File

@ -15,7 +15,9 @@
*/
echo $this->getData('nav')->render(); ?>
<section class="box w-66 floatLeft">
<div class="row">
<div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getText('Account') ?></h1></header>
<div class="inner">
<form id="fAccount" action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/account'); ?>" method="put">
@ -49,9 +51,11 @@ echo $this->getData('nav')->render(); ?>
</table>
</form>
</div>
</section>
</section>
</div>
<section class="box w-33 floatLeft">
<div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getText('Groups') ?></h1></header>
<div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="post">
@ -63,9 +67,11 @@ echo $this->getData('nav')->render(); ?>
</table>
</form>
</div>
</section>
</section>
</div>
<section class="box w-33 floatLeft">
<div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getText('Permissions') ?></h1></header>
<div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="post">
@ -77,4 +83,6 @@ echo $this->getData('nav')->render(); ?>
</table>
</form>
</div>
</section>
</section>
</div>
</div>

View File

@ -21,7 +21,9 @@ $group = $this->getData('group');
echo $this->getData('nav')->render(); ?>
<section class="box w-33 floatLeft">
<div class="row">
<div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getText('Group') ?></h1></header>
<div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="post">
@ -37,9 +39,11 @@ echo $this->getData('nav')->render(); ?>
</table>
</form>
</div>
</section>
</section>
</div>
<section class="box w-33 floatLeft">
<div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getText('Parent') ?></h1></header>
<div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="post">
@ -51,9 +55,11 @@ echo $this->getData('nav')->render(); ?>
</table>
</form>
</div>
</section>
</section>
</div>
<section class="box w-33 floatLeft">
<div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getText('Permissions') ?></h1></header>
<div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="post">
@ -65,9 +71,11 @@ echo $this->getData('nav')->render(); ?>
</table>
</form>
</div>
</section>
</section>
</div>
<section class="box w-33 floatLeft">
<div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getText('Accounts') ?></h1></header>
<div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="post">
@ -79,6 +87,6 @@ echo $this->getData('nav')->render(); ?>
</table>
</form>
</div>
</section>
</section>
</div>
</div>

View File

@ -15,7 +15,9 @@
*/
echo $this->getData('nav')->render(); ?>
<section class="box w-66 floatLeft">
<div class="row">
<div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getText('Account') ?></h1></header>
<div class="inner">
<form id="fAccount" action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/account'); ?>" method="put">
@ -49,9 +51,11 @@ echo $this->getData('nav')->render(); ?>
</table>
</form>
</div>
</section>
</section>
</div>
<section class="box w-33 floatLeft">
<div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getText('Groups') ?></h1></header>
<div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="post">
@ -63,9 +67,11 @@ echo $this->getData('nav')->render(); ?>
</table>
</form>
</div>
</section>
</section>
</div>
<section class="box w-33 floatLeft">
<div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getText('Permissions') ?></h1></header>
<div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="post">
@ -77,4 +83,6 @@ echo $this->getData('nav')->render(); ?>
</table>
</form>
</div>
</section>
</section>
</div>
</div>

View File

@ -28,7 +28,9 @@ $footerView->setResults($this->getData('list:count'));
echo $this->getData('nav')->render();
?>
<div class="box w-100">
<div class="row">
<div class="col-xs-12">
<div class="box wf-100">
<table class="table">
<caption><?= $this->getText('Groups'); ?></caption>
<thead>
@ -54,4 +56,6 @@ echo $this->getData('nav')->render();
<tr><td colspan="5" class="empty"><?= $this->getText('Empty', 0, 0); ?>
<?php endif; ?>
</table>
</div>
</div>
</div>

View File

@ -20,7 +20,9 @@
$account = $this->getData('account');
echo $this->getData('nav')->render(); ?>
<section class="box w-33 floatLeft">
<div class="row">
<div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getText('Account') ?></h1></header>
<div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/account'); ?>" method="post">
@ -56,9 +58,11 @@ echo $this->getData('nav')->render(); ?>
</table>
</form>
</div>
</section>
</section>
</div>
<section class="box w-66 floatLeft">
<div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getText('Groups') ?></h1></header>
<div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="post">
@ -70,9 +74,11 @@ echo $this->getData('nav')->render(); ?>
</table>
</form>
</div>
</section>
</section>
</div>
<section class="box w-66 floatLeft">
<div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getText('Permissions') ?></h1></header>
<div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="post">
@ -84,4 +90,6 @@ echo $this->getData('nav')->render(); ?>
</table>
</form>
</div>
</section>
</section>
</div>
</div>

View File

@ -21,7 +21,9 @@ $group = $this->getData('group');
echo $this->getData('nav')->render(); ?>
<section class="box w-33 floatLeft">
<div class="row">
<div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getText('Group') ?></h1></header>
<div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="post">
@ -37,9 +39,11 @@ echo $this->getData('nav')->render(); ?>
</table>
</form>
</div>
</section>
</section>
</div>
<section class="box w-33 floatLeft">
<div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getText('Parent') ?></h1></header>
<div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="post">
@ -51,9 +55,11 @@ echo $this->getData('nav')->render(); ?>
</table>
</form>
</div>
</section>
</section>
</div>
<section class="box w-33 floatLeft">
<div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getText('Permissions') ?></h1></header>
<div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="post">
@ -65,9 +71,11 @@ echo $this->getData('nav')->render(); ?>
</table>
</form>
</div>
</section>
</section>
</div>
<section class="box w-33 floatLeft">
<div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getText('Accounts') ?></h1></header>
<div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="post">
@ -79,6 +87,6 @@ echo $this->getData('nav')->render(); ?>
</table>
</form>
</div>
</section>
</section>
</div>
</div>

View File

@ -29,7 +29,9 @@ $footerView->setPage(1);
$footerView->setResults(count($modules));
?>
<div class="box w-100">
<div class="row">
<div class="col-xs-12">
<div class="box w-100">
<table class="table">
<caption><?= $this->getText('Modules'); ?></caption>
<thead>
@ -59,4 +61,6 @@ $footerView->setResults(count($modules));
<tr><td colspan="4" class="empty"><?= $this->getText('Empty', 0, 0); ?>
<?php endif; ?>
</table>
</div>
</div>
</div>

View File

@ -24,7 +24,9 @@ $installed = $this->app->moduleManager->getInstalledModules();
$id = $this->request->getData('id') ?? 1;
?>
<section class="box w-33 floatLeft">
<div class="row">
<div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $modules[$id]['name']['external'] ?></h1></header>
<div class="inner">
@ -59,28 +61,36 @@ $id = $this->request->getData('id') ?? 1;
<?php endif; ?>
</table>
</div>
</section>
</section>
</div>
<section class="box w-33 floatLeft">
<div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getText('Settings') ?></h1></header>
<div class="inner">
</div>
</section>
</section>
</div>
<section class="box w-33 floatLeft">
<div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getText('Groups') ?></h1></header>
<div class="inner">
</div>
</section>
</section>
</div>
<section class="box w-33 floatLeft">
<div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->getText('Permissions') ?></h1></header>
<div class="inner">
</div>
</section>
</section>
</div>
</div>