mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-02-08 13:38:42 +00:00
Language display optimized
Language is now no longer direct array access but provided through a function. This can be later used to hot load language files instead of pre-loading them.
This commit is contained in:
parent
2211d64d93
commit
5b021b5a84
|
|
@ -19,15 +19,15 @@
|
|||
|
||||
echo $this->getData('nav')->render(); ?>
|
||||
<section class="box w-50">
|
||||
<header><h1><?= $this->l11n->lang['Media']['Upload']; ?></h1></header>
|
||||
<header><h1><?= $this->l11n->getText('Media', 'Upload'); ?></h1></header>
|
||||
<div class="inner">
|
||||
<form method="POST" id="media-uploader" action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/media'); ?>">
|
||||
<table class="layout wf-100">
|
||||
<tr><td><label for="iName"><?= $this->l11n->lang['Media']['Name']; ?></label>
|
||||
<tr><td><label for="iName"><?= $this->l11n->getText('Media', 'Name'); ?></label>
|
||||
<tr><td><input type="text" id="iName" name="name" placeholder="">
|
||||
<tr><td><label for="iFiles"><?= $this->l11n->lang['Media']['Files']; ?></label>
|
||||
<tr><td><label for="iFiles"><?= $this->l11n->getText('Media', 'Files'); ?></label>
|
||||
<tr><td><input type="file" id="iFiles" name="files" multiple><input name="media" 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>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -26,14 +26,14 @@ $footerView->setPage(1);
|
|||
echo $this->getData('nav')->render(); ?>
|
||||
<div class="box">
|
||||
<table class="table">
|
||||
<caption><?= $this->l11n->lang['Media']['Media']; ?></caption>
|
||||
<caption><?= $this->l11n->getText('Media', 'Media'); ?></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="wf-100"><?= $this->l11n->lang['Media']['Name']; ?>
|
||||
<td><?= $this->l11n->lang['Media']['Type']; ?>
|
||||
<td><?= $this->l11n->lang['Media']['Size']; ?>
|
||||
<td><?= $this->l11n->lang['Media']['Creator']; ?>
|
||||
<td><?= $this->l11n->lang['Media']['Created']; ?>
|
||||
<td class="wf-100"><?= $this->l11n->getText('Media', 'Name'); ?>
|
||||
<td><?= $this->l11n->getText('Media', 'Type'); ?>
|
||||
<td><?= $this->l11n->getText('Media', 'Size'); ?>
|
||||
<td><?= $this->l11n->getText('Media', 'Creator'); ?>
|
||||
<td><?= $this->l11n->getText('Media', 'Created'); ?>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="3"><?= $footerView->render(); ?>
|
||||
|
|
@ -48,7 +48,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<td><a href="<?= $url; ?>"><?= $value->getCreatedAt()->format('Y-m-d H:i:s'); ?></a>
|
||||
<?php endforeach; ?>
|
||||
<?php if($count === 0) : ?>
|
||||
<tr><td colspan="5" class="empty"><?= $this->l11n->lang[0]['Empty']; ?>
|
||||
<tr><td colspan="5" class="empty"><?= $this->l11n->getText(0, 'Empty'); ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user