Language display optimized

see previous commit
This commit is contained in:
Dennis Eichhorn 2016-07-02 14:15:02 +02:00
parent 59bdb1876a
commit 411140716b
3 changed files with 26 additions and 26 deletions

View File

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

View File

@ -23,18 +23,18 @@ echo $this->getData('nav')->render(); ?>
<div class="box w-100"> <div class="box w-100">
<table class="table"> <table class="table">
<caption><?= $this->l11n->lang['Marketing']['Events'] ?></caption> <caption><?= $this->l11n->getText('Marketing', 'Events') ?></caption>
<thead> <thead>
<tr> <tr>
<td><?= $this->l11n->lang['Marketing']['Status']; ?> <td><?= $this->l11n->getText('Marketing', 'Status'); ?>
<td><?= $this->l11n->lang['Marketing']['Type']; ?> <td><?= $this->l11n->getText('Marketing', 'Type'); ?>
<td class="wf-100"><?= $this->l11n->lang['Marketing']['Title']; ?> <td class="wf-100"><?= $this->l11n->getText('Marketing', 'Title'); ?>
<td><?= $this->l11n->lang['Marketing']['Start']; ?> <td><?= $this->l11n->getText('Marketing', 'Start'); ?>
<td><?= $this->l11n->lang['Marketing']['End']; ?> <td><?= $this->l11n->getText('Marketing', 'End'); ?>
<td><?= $this->l11n->lang['Marketing']['Location']; ?> <td><?= $this->l11n->getText('Marketing', 'Location'); ?>
<td><?= $this->l11n->lang['Marketing']['Expenses']; ?> <td><?= $this->l11n->getText('Marketing', 'Expenses'); ?>
<td><?= $this->l11n->lang['Marketing']['Sales']; ?> <td><?= $this->l11n->getText('Marketing', 'Sales'); ?>
<td><?= $this->l11n->lang['Marketing']['Budget']; ?> <td><?= $this->l11n->getText('Marketing', 'Budget'); ?>
<tfoot> <tfoot>
<tr> <tr>
<td colspan="9"><?= $footerView->render(); ?> <td colspan="9"><?= $footerView->render(); ?>
@ -42,7 +42,7 @@ echo $this->getData('nav')->render(); ?>
<?php $count = 0; foreach([] as $key => $value) : $count++; ?> <?php $count = 0; foreach([] as $key => $value) : $count++; ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php if($count === 0) : ?> <?php if($count === 0) : ?>
<tr><td colspan="9" class="empty"><?= $this->l11n->lang[0]['Empty']; ?> <tr><td colspan="9" class="empty"><?= $this->l11n->getText(0, 'Empty'); ?>
<?php endif; ?> <?php endif; ?>
</table> </table>
</div> </div>

View File

@ -23,16 +23,16 @@ echo $this->getData('nav')->render(); ?>
<div class="box w-100"> <div class="box w-100">
<table class="table"> <table class="table">
<caption><?= $this->l11n->lang['Marketing']['Events'] ?></caption> <caption><?= $this->l11n->getText('Marketing', 'Events') ?></caption>
<thead> <thead>
<tr> <tr>
<td><?= $this->l11n->lang['Marketing']['Status']; ?> <td><?= $this->l11n->getText('Marketing', 'Status'); ?>
<td class="wf-100"><?= $this->l11n->lang['Marketing']['Title']; ?> <td class="wf-100"><?= $this->l11n->getText('Marketing', 'Title'); ?>
<td><?= $this->l11n->lang['Marketing']['Start']; ?> <td><?= $this->l11n->getText('Marketing', 'Start'); ?>
<td><?= $this->l11n->lang['Marketing']['End']; ?> <td><?= $this->l11n->getText('Marketing', 'End'); ?>
<td><?= $this->l11n->lang['Marketing']['Expenses']; ?> <td><?= $this->l11n->getText('Marketing', 'Expenses'); ?>
<td><?= $this->l11n->lang['Marketing']['Sales']; ?> <td><?= $this->l11n->getText('Marketing', 'Sales'); ?>
<td><?= $this->l11n->lang['Marketing']['Budget']; ?> <td><?= $this->l11n->getText('Marketing', 'Budget'); ?>
<tfoot> <tfoot>
<tr> <tr>
<td colspan="7"><?= $footerView->render(); ?> <td colspan="7"><?= $footerView->render(); ?>
@ -40,7 +40,7 @@ echo $this->getData('nav')->render(); ?>
<?php $count = 0; foreach([] as $key => $value) : $count++; ?> <?php $count = 0; foreach([] as $key => $value) : $count++; ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php if($count === 0) : ?> <?php if($count === 0) : ?>
<tr><td colspan="7" class="empty"><?= $this->l11n->lang[0]['Empty']; ?> <tr><td colspan="7" class="empty"><?= $this->l11n->getText(0, 'Empty'); ?>
<?php endif; ?> <?php endif; ?>
</table> </table>
</div> </div>