More flexbox implementations

This commit is contained in:
Dennis Eichhorn 2017-01-29 19:59:42 +01:00
parent 4acfadca92
commit 96cd2fa136
4 changed files with 104 additions and 88 deletions

View File

@ -19,26 +19,30 @@
echo $this->getData('nav')->render(); ?>
<section class="box w-50">
<header><h1><?= $this->getText('Promotion') ?></h1></header>
<div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/reporter/template'); ?>" method="post">
<table class="layout wf-100">
<tbody>
<tr><td colspan="2"><label for="iTitle"><?= $this->getText('Type') ?></label>
<tr><td colspan="2"><select></select>
<tr><td colspan="2"><label for="iBudget"><?= $this->getText('Title'); ?></label>
<tr><td colspan="2"><input type="text">
<tr><td colspan="2"><label for="iBudget"><?= $this->getText('Description'); ?></label>
<tr><td colspan="2"><textarea></textarea>
<tr><td><label for="iTitle"><?= $this->getText('Start'); ?></label><td><label for="iTitle"><?= $this->getText('End'); ?></label>
<tr><td><input type="datetime-local"><td><input type="datetime-local">
<tr><td colspan="2"><label for="iBudget"><?= $this->getText('Budget'); ?></label>
<tr><td colspan="2"><input type="text" id="iBudget" name="budget" placeholder="">
<tr><td colspan="2"><label for="iBudget"><?= $this->getText('Limit'); ?></label>
<tr><td colspan="2"><input type="text">
<tr><td colspan="2"><input type="submit" value="<?= $this->getText('Create', 0, 0); ?>">
</table>
</form>
<div class="row">
<div class="col-xs-12 col-md-6">
<section class="box wf-100">
<header><h1><?= $this->getText('Promotion') ?></h1></header>
<div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/reporter/template'); ?>" method="post">
<table class="layout wf-100">
<tbody>
<tr><td colspan="2"><label for="iTitle"><?= $this->getText('Type') ?></label>
<tr><td colspan="2"><select></select>
<tr><td colspan="2"><label for="iBudget"><?= $this->getText('Title'); ?></label>
<tr><td colspan="2"><input type="text">
<tr><td colspan="2"><label for="iBudget"><?= $this->getText('Description'); ?></label>
<tr><td colspan="2"><textarea></textarea>
<tr><td><label for="iTitle"><?= $this->getText('Start'); ?></label><td><label for="iTitle"><?= $this->getText('End'); ?></label>
<tr><td><input type="datetime-local"><td><input type="datetime-local">
<tr><td colspan="2"><label for="iBudget"><?= $this->getText('Budget'); ?></label>
<tr><td colspan="2"><input type="text" id="iBudget" name="budget" placeholder="">
<tr><td colspan="2"><label for="iBudget"><?= $this->getText('Limit'); ?></label>
<tr><td colspan="2"><input type="text">
<tr><td colspan="2"><input type="submit" value="<?= $this->getText('Create', 0, 0); ?>">
</table>
</form>
</div>
</section>
</div>
</section>
</div>

View File

@ -21,26 +21,30 @@ $footerView->setPage(1);
echo $this->getData('nav')->render(); ?>
<div class="box w-100">
<table class="table">
<caption><?= $this->getText('Events') ?></caption>
<thead>
<tr>
<td><?= $this->getText('Status'); ?>
<td class="wf-100"><?= $this->getText('Title'); ?>
<td><?= $this->getText('Start'); ?>
<td><?= $this->getText('End'); ?>
<td><?= $this->getText('Expenses'); ?>
<td><?= $this->getText('Sales'); ?>
<td><?= $this->getText('Budget'); ?>
<tfoot>
<tr>
<td colspan="7"><?= $footerView->render(); ?>
<tbody>
<?php $count = 0; foreach([] as $key => $value) : $count++; ?>
<?php endforeach; ?>
<?php if($count === 0) : ?>
<tr><td colspan="7" class="empty"><?= $this->getText('Empty', 0, 0); ?>
<?php endif; ?>
</table>
</div>
<div class="row">
<div class="col-xs-12">
<div class="box wf-100">
<table class="table">
<caption><?= $this->getText('Events') ?></caption>
<thead>
<tr>
<td><?= $this->getText('Status'); ?>
<td class="wf-100"><?= $this->getText('Title'); ?>
<td><?= $this->getText('Start'); ?>
<td><?= $this->getText('End'); ?>
<td><?= $this->getText('Expenses'); ?>
<td><?= $this->getText('Sales'); ?>
<td><?= $this->getText('Budget'); ?>
<tfoot>
<tr>
<td colspan="7"><?= $footerView->render(); ?>
<tbody>
<?php $count = 0; foreach([] as $key => $value) : $count++; ?>
<?php endforeach; ?>
<?php if($count === 0) : ?>
<tr><td colspan="7" class="empty"><?= $this->getText('Empty', 0, 0); ?>
<?php endif; ?>
</table>
</div>
</div>
</div>

View File

@ -19,23 +19,27 @@
echo $this->getData('nav')->render(); ?>
<section class="box w-50">
<header><h1><?= $this->getText('Event') ?></h1></header>
<div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/reporter/template'); ?>" method="post">
<table class="layout wf-100">
<tbody>
<tr><td colspan="2"><label for="iTitle"><?= $this->getText('Type') ?></label>
<tr><td colspan="2"><select></select>
<tr><td colspan="2"><label for="iBudget"><?= $this->getText('Title'); ?></label>
<tr><td colspan="2"><input type="text">
<tr><td colspan="2"><label for="iBudget"><?= $this->getText('Description'); ?></label>
<tr><td colspan="2"><textarea></textarea>
<tr><td><label for="iTitle"><?= $this->getText('Start') ?></label><td><label for="iTitle"><?= $this->getText('End') ?></label>
<tr><td><input type="datetime-local"><td><input type="datetime-local">
<tr><td colspan="2"><label for="iBudget"><?= $this->getText('Budget'); ?></label>
<tr><td colspan="2"><input type="text" id="iBudget" name="budget" placeholder="">
</table>
</form>
<div class="row">
<div class="col-xs-12 col-md-6">
<section class="box wf-100">
<header><h1><?= $this->getText('Event') ?></h1></header>
<div class="inner">
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/reporter/template'); ?>" method="post">
<table class="layout wf-100">
<tbody>
<tr><td colspan="2"><label for="iTitle"><?= $this->getText('Type') ?></label>
<tr><td colspan="2"><select></select>
<tr><td colspan="2"><label for="iBudget"><?= $this->getText('Title'); ?></label>
<tr><td colspan="2"><input type="text">
<tr><td colspan="2"><label for="iBudget"><?= $this->getText('Description'); ?></label>
<tr><td colspan="2"><textarea></textarea>
<tr><td><label for="iTitle"><?= $this->getText('Start') ?></label><td><label for="iTitle"><?= $this->getText('End') ?></label>
<tr><td><input type="datetime-local"><td><input type="datetime-local">
<tr><td colspan="2"><label for="iBudget"><?= $this->getText('Budget'); ?></label>
<tr><td colspan="2"><input type="text" id="iBudget" name="budget" placeholder="">
</table>
</form>
</div>
</section>
</div>
</section>
</div>

View File

@ -21,28 +21,32 @@ $footerView->setPage(1);
echo $this->getData('nav')->render(); ?>
<div class="box w-100">
<table class="table">
<caption><?= $this->getText('Events') ?></caption>
<thead>
<tr>
<td><?= $this->getText('Status'); ?>
<td><?= $this->getText('Type'); ?>
<td class="wf-100"><?= $this->getText('Title'); ?>
<td><?= $this->getText('Start'); ?>
<td><?= $this->getText('End'); ?>
<td><?= $this->getText('Location'); ?>
<td><?= $this->getText('Expenses'); ?>
<td><?= $this->getText('Sales'); ?>
<td><?= $this->getText('Budget'); ?>
<tfoot>
<tr>
<td colspan="9"><?= $footerView->render(); ?>
<tbody>
<?php $count = 0; foreach([] as $key => $value) : $count++; ?>
<?php endforeach; ?>
<?php if($count === 0) : ?>
<tr><td colspan="9" class="empty"><?= $this->getText('Empty', 0, 0); ?>
<?php endif; ?>
</table>
<div class="row">
<div class="col-xs-12">
<div class="box wf-100">
<table class="table">
<caption><?= $this->getText('Events') ?></caption>
<thead>
<tr>
<td><?= $this->getText('Status'); ?>
<td><?= $this->getText('Type'); ?>
<td class="wf-100"><?= $this->getText('Title'); ?>
<td><?= $this->getText('Start'); ?>
<td><?= $this->getText('End'); ?>
<td><?= $this->getText('Location'); ?>
<td><?= $this->getText('Expenses'); ?>
<td><?= $this->getText('Sales'); ?>
<td><?= $this->getText('Budget'); ?>
<tfoot>
<tr>
<td colspan="9"><?= $footerView->render(); ?>
<tbody>
<?php $count = 0; foreach([] as $key => $value) : $count++; ?>
<?php endforeach; ?>
<?php if($count === 0) : ?>
<tr><td colspan="9" class="empty"><?= $this->getText('Empty', 0, 0); ?>
<?php endif; ?>
</table>
</div>
</div>
</div>