Admin tpl flexbox implementation

This commit is contained in:
Dennis Eichhorn 2017-01-28 19:56:03 +01:00
parent 4510dc4a9a
commit b4e1fcdb27
4 changed files with 194 additions and 176 deletions

View File

@ -32,7 +32,9 @@ $details = '* Uri: `' . trim($log['path']) . "`\n"
echo $this->getData('nav')->render(); ?> echo $this->getData('nav')->render(); ?>
<section class="box w-100"> <div class="row">
<div class="col-xs-12 col-md-6">
<section class="box wf-100">
<header><h1><?= $this->getText('Logs'); ?></h1></header> <header><h1><?= $this->getText('Logs'); ?></h1></header>
<div class="inner"> <div class="inner">
@ -88,4 +90,6 @@ echo $this->getData('nav')->render(); ?>
href="https://gitreports.com/issue/Orange-Management/Orange-Management/?name=Guest&issue_title=<?= urlencode($log['message']); ?>&details=<?= urlencode($details); ?>"><?= $this->getText('Report'); ?></a> href="https://gitreports.com/issue/Orange-Management/Orange-Management/?name=Guest&issue_title=<?= urlencode($log['message']); ?>&details=<?= urlencode($details); ?>"><?= $this->getText('Report'); ?></a>
</table> </table>
</div> </div>
</section> </section>
</div>
</div>

View File

@ -18,7 +18,9 @@ $penetrators = $this->app->logger->getHighestPerpetrator();
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('System') ?></h1></header> <header><h1><?= $this->getText('System') ?></h1></header>
<div class="inner"> <div class="inner">
<table class="list wf-100"> <table class="list wf-100">
@ -32,9 +34,11 @@ echo $this->getData('nav')->render(); ?>
<tr><td><?= $this->getText('CPUUsage') ?><td><?= \phpOMS\System\SystemUtils::getCpuUsage(); ?>% <tr><td><?= $this->getText('CPUUsage') ?><td><?= \phpOMS\System\SystemUtils::getCpuUsage(); ?>%
</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('Logs') ?></h1></header> <header><h1><?= $this->getText('Logs') ?></h1></header>
<div class="inner"> <div class="inner">
<table class="list wf-100"> <table class="list wf-100">
@ -50,9 +54,11 @@ echo $this->getData('nav')->render(); ?>
<tr><td><?= $this->getText('Total') ?><td><?= array_sum($logs); ?> <tr><td><?= $this->getText('Total') ?><td><?= array_sum($logs); ?>
</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('Penetrators') ?></h1></header> <header><h1><?= $this->getText('Penetrators') ?></h1></header>
<div class="inner"> <div class="inner">
<table class="list wf-100"> <table class="list wf-100">
@ -62,4 +68,6 @@ echo $this->getData('nav')->render(); ?>
<?php endforeach; ?> <?php endforeach; ?>
</table> </table>
</div> </div>
</section> </section>
</div>
</div>

View File

@ -32,7 +32,9 @@ $details = '* Uri: `' . trim($log['path']) . "`\n"
echo $this->getData('nav')->render(); ?> echo $this->getData('nav')->render(); ?>
<section class="box w-100"> <div class="row">
<div class="col-xs-12 col-md-6">
<section class="box wf-100">
<header><h1><?= $this->getText('Logs'); ?></h1></header> <header><h1><?= $this->getText('Logs'); ?></h1></header>
<div class="inner"> <div class="inner">
@ -88,4 +90,6 @@ echo $this->getData('nav')->render(); ?>
href="https://gitreports.com/issue/Orange-Management/Orange-Management/?name=Guest&issue_title=<?= urlencode($log['message']); ?>&details=<?= urlencode($details); ?>"><?= $this->getText('Report'); ?></a> href="https://gitreports.com/issue/Orange-Management/Orange-Management/?name=Guest&issue_title=<?= urlencode($log['message']); ?>&details=<?= urlencode($details); ?>"><?= $this->getText('Report'); ?></a>
</table> </table>
</div> </div>
</section> </section>
</div>
</div>

View File

@ -28,7 +28,8 @@ $logs = array_reverse($this->app->logger->get(25), true);
echo $this->getData('nav')->render(); ?> echo $this->getData('nav')->render(); ?>
<div class="box w-100"> <div class="row">
<div class="box col-xs-12 wf-100">
<table class="table"> <table class="table">
<caption><?= $this->getText('Logs'); ?></caption> <caption><?= $this->getText('Logs'); ?></caption>
<thead> <thead>
@ -54,4 +55,5 @@ echo $this->getData('nav')->render(); ?>
<td colspan="4"> <td colspan="4">
<?php endif; ?> <?php endif; ?>
</table> </table>
</div>
</div> </div>