mirror of
https://github.com/Karaka-Management/oms-Admin.git
synced 2026-02-02 14:48:39 +00:00
Language display optimized
see previous commit
This commit is contained in:
parent
34081fc20c
commit
1ee8a163a8
|
|
@ -16,64 +16,64 @@
|
|||
echo $this->getData('nav')->render(); ?>
|
||||
|
||||
<section class="box w-66 floatLeft">
|
||||
<header><h1><?= $this->l11n->lang['Admin']['Account'] ?></h1></header>
|
||||
<header><h1><?= $this->l11n->getText('Admin', 'Account') ?></h1></header>
|
||||
<div class="inner">
|
||||
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/account'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td><label for="iType"><?= $this->l11n->lang['Admin']['Type'] ?></label>
|
||||
<tr><td><label for="iType"><?= $this->l11n->getText('Admin', 'Type') ?></label>
|
||||
<tr><td><select id="iType" name="type">
|
||||
<option><?= $this->l11n->lang['Admin']['Person'] ?>
|
||||
<option><?= $this->l11n->lang['Admin']['Organization'] ?>
|
||||
<option><?= $this->l11n->getText('Admin', 'Person') ?>
|
||||
<option><?= $this->l11n->getText('Admin', 'Organization') ?>
|
||||
</select>
|
||||
<tr><td><label for="iStatus"><?= $this->l11n->lang['Admin']['Status'] ?></label>
|
||||
<tr><td><label for="iStatus"><?= $this->l11n->getText('Admin', 'Status') ?></label>
|
||||
<tr><td><select id="iStatus" name="status">
|
||||
<option><?= $this->l11n->lang['Admin']['Active'] ?>
|
||||
<option><?= $this->l11n->lang['Admin']['Inactive'] ?>
|
||||
<option><?= $this->l11n->lang['Admin']['Timeout'] ?>
|
||||
<option><?= $this->l11n->lang['Admin']['Banned'] ?>
|
||||
<option><?= $this->l11n->getText('Admin', 'Active') ?>
|
||||
<option><?= $this->l11n->getText('Admin', 'Inactive') ?>
|
||||
<option><?= $this->l11n->getText('Admin', 'Timeout') ?>
|
||||
<option><?= $this->l11n->getText('Admin', 'Banned') ?>
|
||||
</select>
|
||||
<tr><td><label for="iUsername"><?= $this->l11n->lang['Admin']['Username'] ?></label>
|
||||
<tr><td><label for="iUsername"><?= $this->l11n->getText('Admin', 'Username') ?></label>
|
||||
<tr><td><input id="iUsername" name="name" type="text" placeholder=" Fred">
|
||||
<tr><td><label for="iName1"><?= $this->l11n->lang['Admin']['Name1'] ?></label>
|
||||
<tr><td><label for="iName1"><?= $this->l11n->getText('Admin', 'Name1') ?></label>
|
||||
<tr><td><input id="iName1" name="name1" type="text" placeholder=" Donald" required>
|
||||
<tr><td><label for="iName2"><?= $this->l11n->lang['Admin']['Name2'] ?></label>
|
||||
<tr><td><label for="iName2"><?= $this->l11n->getText('Admin', 'Name2') ?></label>
|
||||
<tr><td><input id="iName2" name="name2" type="text" placeholder=" Fauntleroy">
|
||||
<tr><td><label for="iName3"><?= $this->l11n->lang['Admin']['Name3'] ?></label>
|
||||
<tr><td><label for="iName3"><?= $this->l11n->getText('Admin', 'Name3') ?></label>
|
||||
<tr><td><input id="iName3" name="name3" type="text" placeholder=" Duck">
|
||||
<tr><td><label for="iEmail"><?= $this->l11n->lang['Admin']['Email'] ?></label>
|
||||
<tr><td><label for="iEmail"><?= $this->l11n->getText('Admin', 'Email') ?></label>
|
||||
<tr><td><input id="iEmail" name="email" type="email" placeholder=" d.duck@duckburg.com">
|
||||
<tr><td><label for="iPassword"><?= $this->l11n->lang['Admin']['Name3'] ?></label>
|
||||
<tr><td><label for="iPassword"><?= $this->l11n->getText('Admin', 'Name3') ?></label>
|
||||
<tr><td><input id="iPassword" name="password" type="text" placeholder=" Pa55ssw0rd?">
|
||||
<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>
|
||||
</section>
|
||||
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->l11n->lang['Admin']['Groups'] ?></h1></header>
|
||||
<header><h1><?= $this->l11n->getText('Admin', 'Groups') ?></h1></header>
|
||||
<div class="inner">
|
||||
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td><label for="iGroup"><?= $this->l11n->lang['Admin']['Name'] ?></label>
|
||||
<tr><td><label for="iGroup"><?= $this->l11n->getText('Admin', 'Name') ?></label>
|
||||
<tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input id="iGroup" name="group" type="text" placeholder=" Guest" required></span>
|
||||
<tr><td><input type="submit" value="<?= $this->l11n->lang[0]['Add'] ?>">
|
||||
<tr><td><input type="submit" value="<?= $this->l11n->getText(0, 'Add') ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->l11n->lang['Admin']['Permissions'] ?></h1></header>
|
||||
<header><h1><?= $this->l11n->getText('Admin', 'Permissions') ?></h1></header>
|
||||
<div class="inner">
|
||||
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td><label for="iGroup"><?= $this->l11n->lang['Admin']['Name'] ?></label>
|
||||
<tr><td><label for="iGroup"><?= $this->l11n->getText('Admin', 'Name') ?></label>
|
||||
<tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input id="iGroup" name="group" type="text" placeholder=" news_create" required></span>
|
||||
<tr><td><input type="submit" value="<?= $this->l11n->lang[0]['Add'] ?>">
|
||||
<tr><td><input type="submit" value="<?= $this->l11n->getText(0, 'Add') ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -28,14 +28,14 @@ echo $this->getData('nav')->render(); ?>
|
|||
|
||||
<div class="box w-100">
|
||||
<table class="table">
|
||||
<caption><?= $this->l11n->lang['Admin']['Groups']; ?></caption>
|
||||
<caption><?= $this->l11n->getText('Admin', 'Groups'); ?></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td><?= $this->l11n->lang[0]['ID']; ?>
|
||||
<td class="wf-100"><?= $this->l11n->lang['Admin']['Name']; ?>
|
||||
<td><?= $this->l11n->lang['Admin']['Parents']; ?>
|
||||
<td><?= $this->l11n->lang['Admin']['Children']; ?>
|
||||
<td><?= $this->l11n->lang['Admin']['Members']; ?>
|
||||
<td><?= $this->l11n->getText(0, 'ID'); ?>
|
||||
<td class="wf-100"><?= $this->l11n->getText('Admin', 'Name'); ?>
|
||||
<td><?= $this->l11n->getText('Admin', 'Parents'); ?>
|
||||
<td><?= $this->l11n->getText('Admin', 'Children'); ?>
|
||||
<td><?= $this->l11n->getText('Admin', 'Members'); ?>
|
||||
<tfoot>
|
||||
<tr><td colspan="5"><?= $footerView->render(); ?>
|
||||
<tbody>
|
||||
|
|
@ -49,7 +49,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<td>
|
||||
<?php endforeach; ?>
|
||||
<?php if($c === 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>
|
||||
|
|
|
|||
|
|
@ -22,60 +22,60 @@ $group = $this->getData('group');
|
|||
echo $this->getData('nav')->render(); ?>
|
||||
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->l11n->lang['Admin']['Group'] ?></h1></header>
|
||||
<header><h1><?= $this->l11n->getText('Admin', 'Group') ?></h1></header>
|
||||
<div class="inner">
|
||||
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td><label for="iGid"><?= $this->l11n->lang[0]['ID'] ?></label>
|
||||
<tr><td><label for="iGid"><?= $this->l11n->getText(0, 'ID') ?></label>
|
||||
<tr><td><input id="iGid" name="gid" type="text" value="<?= $group->getId(); ?>" disabled>
|
||||
<tr><td><label for="iGname"><?= $this->l11n->lang['Admin']['Name'] ?></label>
|
||||
<tr><td><label for="iGname"><?= $this->l11n->getText('Admin', 'Name') ?></label>
|
||||
<tr><td><input id="iGname" name="gname" type="text" placeholder=" Guest" value="<?= $group->getName(); ?>">
|
||||
<tr><td><label for="iGroupDescription"><?= $this->l11n->lang['Admin']['Description'] ?></label>
|
||||
<tr><td><label for="iGroupDescription"><?= $this->l11n->getText('Admin', 'Description') ?></label>
|
||||
<tr><td><textarea id="iGroupDescription" name="description" placeholder=""><?= $group->getDescription(); ?></textarea>
|
||||
<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>
|
||||
</section>
|
||||
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->l11n->lang['Admin']['Parent'] ?></h1></header>
|
||||
<header><h1><?= $this->l11n->getText('Admin', 'Parent') ?></h1></header>
|
||||
<div class="inner">
|
||||
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td><label for="iGParentName"><?= $this->l11n->lang['Admin']['Name'] ?></label>
|
||||
<tr><td><label for="iGParentName"><?= $this->l11n->getText('Admin', 'Name') ?></label>
|
||||
<tr><td><input id="iGParentName" name="parentname" type="text" placeholder=" Guest">
|
||||
<tr><td><input type="submit" value="<?= $this->l11n->lang[0]['Add'] ?>">
|
||||
<tr><td><input type="submit" value="<?= $this->l11n->getText(0, 'Add') ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->l11n->lang['Admin']['Permissions'] ?></h1></header>
|
||||
<header><h1><?= $this->l11n->getText('Admin', 'Permissions') ?></h1></header>
|
||||
<div class="inner">
|
||||
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td><label for="iPermissionName"><?= $this->l11n->lang['Admin']['Name'] ?></label>
|
||||
<tr><td><label for="iPermissionName"><?= $this->l11n->getText('Admin', 'Name') ?></label>
|
||||
<tr><td><input id="iPermissionName" name="permissionname" type="text" placeholder=" Admin">
|
||||
<tr><td><input type="submit" value="<?= $this->l11n->lang[0]['Add'] ?>">
|
||||
<tr><td><input type="submit" value="<?= $this->l11n->getText(0, 'Add') ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->l11n->lang['Admin']['Accounts'] ?></h1></header>
|
||||
<header><h1><?= $this->l11n->getText('Admin', 'Accounts') ?></h1></header>
|
||||
<div class="inner">
|
||||
<form action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/group'); ?>" method="post">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td><label for="iGParentName"><?= $this->l11n->lang['Admin']['Name'] ?></label>
|
||||
<tr><td><label for="iGParentName"><?= $this->l11n->getText('Admin', 'Name') ?></label>
|
||||
<tr><td><input id="iGParentName" name="parentname" type="text" placeholder=" Donald Duck">
|
||||
<tr><td><input type="submit" value="<?= $this->l11n->lang[0]['Add'] ?>">
|
||||
<tr><td><input type="submit" value="<?= $this->l11n->getText(0, 'Add') ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -31,13 +31,13 @@ $footerView->setResults(count($modules));
|
|||
|
||||
<div class="box w-100">
|
||||
<table class="table">
|
||||
<caption><?= $this->l11n->lang['Admin']['Modules']; ?></caption>
|
||||
<caption><?= $this->l11n->getText('Admin', 'Modules'); ?></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td><?= $this->l11n->lang[0]['ID']; ?>
|
||||
<td class="wf-100"><?= $this->l11n->lang['Admin']['Name']; ?>
|
||||
<td><?= $this->l11n->lang['Admin']['Version']; ?>
|
||||
<td><?= $this->l11n->lang['Admin']['Status']; ?>
|
||||
<td><?= $this->l11n->getText(0, 'ID'); ?>
|
||||
<td class="wf-100"><?= $this->l11n->getText('Admin', 'Name'); ?>
|
||||
<td><?= $this->l11n->getText('Admin', 'Version'); ?>
|
||||
<td><?= $this->l11n->getText('Admin', 'Status'); ?>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="4"><?= $footerView->render(); ?>
|
||||
|
|
@ -49,14 +49,14 @@ $footerView->setResults(count($modules));
|
|||
<td><a href="<?= $url; ?>"><?= $module['name']['external']; ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $module['version']; ?></a>
|
||||
<td><a href="<?= $url; ?>"><?php if (in_array($module['name']['internal'], $active))
|
||||
echo strtolower($this->l11n->lang['Admin']['Active']);
|
||||
echo strtolower($this->l11n->getText('Admin', 'Active'));
|
||||
elseif (in_array($module['name']['internal'], $installed))
|
||||
echo strtolower($this->l11n->lang['Admin']['Inactive']);
|
||||
echo strtolower($this->l11n->getText('Admin', 'Inactive'));
|
||||
else
|
||||
echo strtolower($this->l11n->lang['Admin']['Available']); ?></a>
|
||||
echo strtolower($this->l11n->getText('Admin', 'Available')); ?></a>
|
||||
<?php endforeach; ?>
|
||||
<?php if($count === 0) : ?>
|
||||
<tr><td colspan="4" class="empty"><?= $this->l11n->lang[0]['Empty']; ?>
|
||||
<tr><td colspan="4" class="empty"><?= $this->l11n->getText(0, 'Empty'); ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -31,38 +31,38 @@ $id = $this->request->getData('id') ?? 1;
|
|||
<table class="list wf-100">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><?= $this->l11n->lang['Admin']['Name'] ?>
|
||||
<td><?= $this->l11n->getText('Admin', 'Name') ?>
|
||||
<td><?= $modules[$id]['name']['external']; ?>
|
||||
<tr>
|
||||
<td><?= $this->l11n->lang['Admin']['Version'] ?>
|
||||
<td><?= $this->l11n->getText('Admin', 'Version') ?>
|
||||
<td><?= $modules[$id]['version'] ?>
|
||||
<tr>
|
||||
<td><?= $this->l11n->lang['Admin']['CreatedBy'] ?>
|
||||
<td><?= $this->l11n->getText('Admin', 'CreatedBy') ?>
|
||||
<td><?= $modules[$id]['creator']['name'] ?>
|
||||
<tr>
|
||||
<td><?= $this->l11n->lang['Admin']['Website'] ?>
|
||||
<td><?= $this->l11n->getText('Admin', 'Website') ?>
|
||||
<td><?= $modules[$id]['creator']['website'] ?>
|
||||
<tr>
|
||||
<td><?= $this->l11n->lang['Admin']['Description'] ?>
|
||||
<td><?= $this->l11n->getText('Admin', 'Description') ?>
|
||||
<td><?= $modules[$id]['description'] ?>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<?php if (in_array($id, $active)) : ?>
|
||||
<button
|
||||
data-reload="<?= \phpOMS\Uri\UriFactory::build('POST:/{/lang}/backend/admin/module/status?status=deactivate&module=' . $id); ?>"><?= $this->l11n->lang['Admin']['Deactivate'] ?></button>
|
||||
data-reload="<?= \phpOMS\Uri\UriFactory::build('POST:/{/lang}/backend/admin/module/status?status=deactivate&module=' . $id); ?>"><?= $this->l11n->getText('Admin', 'Deactivate') ?></button>
|
||||
<?php elseif (in_array($id, $installed)) : ?>
|
||||
<button data-reload="<?= \phpOMS\Uri\UriFactory::build('POST:/{/lang}/backend/admin/module/deactivate?id=' . $id); ?>"><?= $this->l11n->lang['Admin']['Uninstall'] ?></button>
|
||||
<button data-reload="<?= \phpOMS\Uri\UriFactory::build('POST:/{/lang}/backend/admin/module/deactivate?id=' . $id); ?>"><?= $this->l11n->lang['Admin']['Activate'] ?></button>
|
||||
<button data-reload="<?= \phpOMS\Uri\UriFactory::build('POST:/{/lang}/backend/admin/module/deactivate?id=' . $id); ?>"><?= $this->l11n->getText('Admin', 'Uninstall') ?></button>
|
||||
<button data-reload="<?= \phpOMS\Uri\UriFactory::build('POST:/{/lang}/backend/admin/module/deactivate?id=' . $id); ?>"><?= $this->l11n->getText('Admin', 'Activate') ?></button>
|
||||
<?php elseif (isset($modules[$id])) : ?>
|
||||
<button data-reload="<?= \phpOMS\Uri\UriFactory::build('PUT:/{/lang}/backend/admin/module/install?id=' . $id); ?>"><?= $this->l11n->lang['Admin']['Install'] ?></button>
|
||||
<button data-reload="<?= \phpOMS\Uri\UriFactory::build('DELETE:/{/lang}/backend/admin/module/delete?id=' . $id); ?>"><?= $this->l11n->lang['Admin']['Delete'] ?></button>
|
||||
<button data-reload="<?= \phpOMS\Uri\UriFactory::build('PUT:/{/lang}/backend/admin/module/install?id=' . $id); ?>"><?= $this->l11n->getText('Admin', 'Install') ?></button>
|
||||
<button data-reload="<?= \phpOMS\Uri\UriFactory::build('DELETE:/{/lang}/backend/admin/module/delete?id=' . $id); ?>"><?= $this->l11n->getText('Admin', 'Delete') ?></button>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->l11n->lang['Admin']['Settings'] ?></h1></header>
|
||||
<header><h1><?= $this->l11n->getText('Admin', 'Settings') ?></h1></header>
|
||||
|
||||
<div class="inner">
|
||||
|
||||
|
|
@ -70,7 +70,7 @@ $id = $this->request->getData('id') ?? 1;
|
|||
</section>
|
||||
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->l11n->lang['Admin']['Groups'] ?></h1></header>
|
||||
<header><h1><?= $this->l11n->getText('Admin', 'Groups') ?></h1></header>
|
||||
|
||||
<div class="inner">
|
||||
|
||||
|
|
@ -78,7 +78,7 @@ $id = $this->request->getData('id') ?? 1;
|
|||
</section>
|
||||
|
||||
<section class="box w-33 floatLeft">
|
||||
<header><h1><?= $this->l11n->lang['Admin']['Permissions'] ?></h1></header>
|
||||
<header><h1><?= $this->l11n->getText('Admin', 'Permissions') ?></h1></header>
|
||||
|
||||
<div class="inner">
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user