Language display optimized

see previous commit
This commit is contained in:
Dennis Eichhorn 2016-07-02 14:15:02 +02:00
parent d3648ef6a6
commit efc92d904a
2 changed files with 14 additions and 14 deletions

View File

@ -20,15 +20,15 @@ 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['Support']['Tickets']; ?></caption> <caption><?= $this->l11n->getText('Support', 'Tickets'); ?></caption>
<thead> <thead>
<tr><td><?= $this->l11n->lang[0]['ID']; ?> <tr><td><?= $this->l11n->getText(0, 'ID'); ?>
<td><?= $this->l11n->lang['Support']['Status']; ?> <td><?= $this->l11n->getText('Support', 'Status'); ?>
<td><?= $this->l11n->lang['Support']['Priority']; ?> <td><?= $this->l11n->getText('Support', 'Priority'); ?>
<td class="full"><?= $this->l11n->lang['Support']['Title']; ?> <td class="full"><?= $this->l11n->getText('Support', 'Title'); ?>
<td><?= $this->l11n->lang['Support']['Responsible']; ?> <td><?= $this->l11n->getText('Support', 'Responsible'); ?>
<tfoot> <tfoot>
<tbody> <tbody>
<tr><td colspan="5" class="empty"><?= $this->l11n->lang[0]['Empty']; ?> <tr><td colspan="5" class="empty"><?= $this->l11n->getText(0, 'Empty'); ?>
</table> </table>
</div> </div>

View File

@ -19,22 +19,22 @@
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['Support']['Ticket'] ?></h1></header> <header><h1><?= $this->l11n->getText('Support', 'Ticket') ?></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><label for="iTitle"><?= $this->l11n->lang['Support']['Department'] ?></label> <tr><td><label for="iTitle"><?= $this->l11n->getText('Support', 'Department') ?></label>
<tr><td><select></select> <tr><td><select></select>
<tr><td><label for="iTitle"><?= $this->l11n->lang['Support']['Topic'] ?></label> <tr><td><label for="iTitle"><?= $this->l11n->getText('Support', 'Topic') ?></label>
<tr><td><select></select> <tr><td><select></select>
<tr><td><label for="iTitle"><?= $this->l11n->lang['Support']['Title'] ?></label> <tr><td><label for="iTitle"><?= $this->l11n->getText('Support', 'Title') ?></label>
<tr><td><input id="iTitle" name="name" type="text" required> <tr><td><input id="iTitle" name="name" type="text" required>
<tr><td><label for="iTitle"><?= $this->l11n->lang['Support']['Description'] ?></label> <tr><td><label for="iTitle"><?= $this->l11n->getText('Support', 'Description') ?></label>
<tr><td><textarea required></textarea> <tr><td><textarea required></textarea>
<tr><td><label for="iFile"><?= $this->l11n->lang['Support']['Files'] ?></label> <tr><td><label for="iFile"><?= $this->l11n->getText('Support', 'Files') ?></label>
<tr><td><input id="iFile" name="fileVisual" type="file" multiple><input id="iFileHidden" name="files" type="hidden"> <tr><td><input id="iFile" name="fileVisual" type="file" multiple><input id="iFileHidden" name="files" type="hidden">
<tr><td><input type="submit" value="<?= $this->l11n->lang[0]['Create'] ?>"> <tr><td><input type="submit" value="<?= $this->l11n->getText(0, 'Create') ?>">
</table> </table>
</form> </form>
</div> </div>