Admin tpl flexbox implementation

This commit is contained in:
Dennis Eichhorn 2017-01-28 19:56:13 +01:00
parent 77a44ebb1b
commit 64cf0a06ce
4 changed files with 188 additions and 162 deletions

View File

@ -28,7 +28,9 @@ $footerView->setResults($this->getData('list:count'));
echo $this->getData('nav')->render(); 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"> <table class="table">
<caption><?= $this->getText('Groups'); ?></caption> <caption><?= $this->getText('Groups'); ?></caption>
<thead> <thead>
@ -55,3 +57,5 @@ echo $this->getData('nav')->render();
<?php endif; ?> <?php endif; ?>
</table> </table>
</div> </div>
</div>
</div>

View File

@ -20,7 +20,9 @@
$account = $this->getData('account'); $account = $this->getData('account');
echo $this->getData('nav')->render(); ?> 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> <header><h1><?= $this->getText('Account') ?></h1></header>
<div class="inner"> <div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/account'); ?>" method="post"> <form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/account'); ?>" method="post">
@ -57,8 +59,10 @@ echo $this->getData('nav')->render(); ?>
</form> </form>
</div> </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> <header><h1><?= $this->getText('Groups') ?></h1></header>
<div class="inner"> <div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="post"> <form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="post">
@ -71,8 +75,10 @@ echo $this->getData('nav')->render(); ?>
</form> </form>
</div> </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> <header><h1><?= $this->getText('Permissions') ?></h1></header>
<div class="inner"> <div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="post"> <form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="post">
@ -85,3 +91,5 @@ echo $this->getData('nav')->render(); ?>
</form> </form>
</div> </div>
</section> </section>
</div>
</div>

View File

@ -29,6 +29,8 @@ $footerView->setPage(1);
$footerView->setResults(count($modules)); $footerView->setResults(count($modules));
?> ?>
<div class="row">
<div class="col-xs-12">
<div class="box w-100"> <div class="box w-100">
<table class="table"> <table class="table">
<caption><?= $this->getText('Modules'); ?></caption> <caption><?= $this->getText('Modules'); ?></caption>
@ -60,3 +62,5 @@ $footerView->setResults(count($modules));
<?php endif; ?> <?php endif; ?>
</table> </table>
</div> </div>
</div>
</div>

View File

@ -24,7 +24,9 @@ $installed = $this->app->moduleManager->getInstalledModules();
$id = $this->request->getData('id') ?? 1; $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> <header><h1><?= $modules[$id]['name']['external'] ?></h1></header>
<div class="inner"> <div class="inner">
@ -60,27 +62,35 @@ $id = $this->request->getData('id') ?? 1;
</table> </table>
</div> </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> <header><h1><?= $this->getText('Settings') ?></h1></header>
<div class="inner"> <div class="inner">
</div> </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> <header><h1><?= $this->getText('Groups') ?></h1></header>
<div class="inner"> <div class="inner">
</div> </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> <header><h1><?= $this->getText('Permissions') ?></h1></header>
<div class="inner"> <div class="inner">
</div> </div>
</section> </section>
</div>
</div>