More flexbox implementations

This commit is contained in:
Dennis Eichhorn 2017-01-29 19:59:37 +01:00
parent d31ce4e49a
commit dfcdd52506
2 changed files with 53 additions and 45 deletions

View File

@ -16,30 +16,34 @@
echo $this->getData('nav')->render(); ?> echo $this->getData('nav')->render(); ?>
<section class="box w-50"> <div class="row">
<header><h1><?= $this->getText('Event'); ?></h1></header> <div class="col-xs-12 col-md-6">
<div class="inner"> <section class="box wf-100">
<form> <header><h1><?= $this->getText('Event'); ?></h1></header>
<table class="layout wf-100"> <div class="inner">
<tr><td colspan="3"><label for="iName"><?= $this->getText('Name'); ?></label> <form>
<tr><td colspan="2"><input type="text" id="iName" name="name" placeholder="" required><td> <table class="layout wf-100">
<tr><td colspan="3"><label for="iDescription"><?= $this->getText('Description'); ?></label> <tr><td colspan="3"><label for="iName"><?= $this->getText('Name'); ?></label>
<tr><td colspan="2"><textarea id="iDescription" name="description"></textarea><td> <tr><td colspan="2"><input type="text" id="iName" name="name" placeholder="" required><td>
<tr><td colspan="3"><label for="iStatus"><?= $this->getText('Status'); ?></label> <tr><td colspan="3"><label for="iDescription"><?= $this->getText('Description'); ?></label>
<tr><td colspan="2"><select id="iStatus" name="status"> <tr><td colspan="2"><textarea id="iDescription" name="description"></textarea><td>
<option value=""> <tr><td colspan="3"><label for="iStatus"><?= $this->getText('Status'); ?></label>
</select><td> <tr><td colspan="2"><select id="iStatus" name="status">
<tr><td colspan="3"><label for="iFiles"><?= $this->getText('Files'); ?></label> <option value="">
<tr><td colspan="2"><input type="file" id="iFiles" name="file" multiple><td> </select><td>
<tr><td><label for="iStart"><?= $this->getText('Start') ?><label><td><label for="iEnd"><?= $this->getText('End') ?><label><td> <tr><td colspan="3"><label for="iFiles"><?= $this->getText('Files'); ?></label>
<tr><td><input type="datetime-local" id="iStart" name="start" required><td><input type="datetime-local" id="iEnd" name="end" required><td> <tr><td colspan="2"><input type="file" id="iFiles" name="file" multiple><td>
<tr><td><label for="iResponsibility"><?= $this->getText('Responsibility'); ?></label><td><label for="iUser"><?= $this->getText('UserGroup'); ?></label><td> <tr><td><label for="iStart"><?= $this->getText('Start') ?><label><td><label for="iEnd"><?= $this->getText('End') ?><label><td>
<tr><td><select id="iStatus" name="status"> <tr><td><input type="datetime-local" id="iStart" name="start" required><td><input type="datetime-local" id="iEnd" name="end" required><td>
<option value=""> <tr><td><label for="iResponsibility"><?= $this->getText('Responsibility'); ?></label><td><label for="iUser"><?= $this->getText('UserGroup'); ?></label><td>
</select> <tr><td><select id="iStatus" name="status">
<td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input type="text" id="iUser" name="user" placeholder=""></span><td><button><?= $this->getText('Add', 0, 0); ?></button> <option value="">
<tr><td colspan="3"><input type="submit" value="<?= $this->getText('Create', 0, 0); ?>"> </select>
</table> <td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input type="text" id="iUser" name="user" placeholder=""></span><td><button><?= $this->getText('Add', 0, 0); ?></button>
</form> <tr><td colspan="3"><input type="submit" value="<?= $this->getText('Create', 0, 0); ?>">
</table>
</form>
</div>
</section>
</div> </div>
</section> </div>

View File

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