mirror of
https://github.com/Karaka-Management/oms-ResearchDevelopment.git
synced 2026-01-11 14:08:41 +00:00
Dynamic language loading
This commit is contained in:
parent
67ef8ffdc6
commit
1ae8c98f88
|
|
@ -16,35 +16,35 @@
|
|||
echo $this->getData('nav')->render(); ?>
|
||||
|
||||
<section class="box w-50">
|
||||
<header><h1><?= $this->l11n->getText('ResearchDevelopment', 'Project'); ?></h1></header>
|
||||
<header><h1><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Project'); ?></h1></header>
|
||||
<div class="inner">
|
||||
<form>
|
||||
<table class="layout wf-100">
|
||||
<tr><td colspan="3"><label for="iName"><?= $this->l11n->getText('ResearchDevelopment', 'Name'); ?></label>
|
||||
<tr><td colspan="3"><label for="iName"><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Name'); ?></label>
|
||||
<tr><td colspan="2"><input type="text" id="iName" name="name" placeholder=""><td>
|
||||
<tr><td colspan="3"><label for="iDescription"><?= $this->l11n->getText('ResearchDevelopment', 'Description'); ?></label>
|
||||
<tr><td colspan="3"><label for="iDescription"><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Description'); ?></label>
|
||||
<tr><td colspan="2"><textarea id="iDescription" name="description"></textarea><td>
|
||||
<tr><td colspan="3"><label for="iStatus"><?= $this->l11n->getText('ResearchDevelopment', 'Status'); ?></label>
|
||||
<tr><td colspan="3"><label for="iStatus"><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Status'); ?></label>
|
||||
<tr><td colspan="2"><select id="iStatus" name="status">
|
||||
<option value="<?= \Modules\ProjectManagement\Models\ProjectStatus::ACTIVE ?>"><?= $this->l11n->getText('ResearchDevelopment', 'Active'); ?>
|
||||
<option value="<?= \Modules\ProjectManagement\Models\ProjectStatus::INACTIVE ?>"><?= $this->l11n->getText('ResearchDevelopment', 'Inactive'); ?>
|
||||
<option value="<?= \Modules\ProjectManagement\Models\ProjectStatus::FINISHED ?>"><?= $this->l11n->getText('ResearchDevelopment', 'Finished'); ?>
|
||||
<option value="<?= \Modules\ProjectManagement\Models\ProjectStatus::CANCELED ?>"><?= $this->l11n->getText('ResearchDevelopment', 'Canceled'); ?>
|
||||
<option value="<?= \Modules\ProjectManagement\Models\ProjectStatus::HOLD ?>"><?= $this->l11n->getText('ResearchDevelopment', 'Hold'); ?>
|
||||
<option value="<?= \Modules\ProjectManagement\Models\ProjectStatus::ACTIVE ?>"><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Active'); ?>
|
||||
<option value="<?= \Modules\ProjectManagement\Models\ProjectStatus::INACTIVE ?>"><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Inactive'); ?>
|
||||
<option value="<?= \Modules\ProjectManagement\Models\ProjectStatus::FINISHED ?>"><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Finished'); ?>
|
||||
<option value="<?= \Modules\ProjectManagement\Models\ProjectStatus::CANCELED ?>"><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Canceled'); ?>
|
||||
<option value="<?= \Modules\ProjectManagement\Models\ProjectStatus::HOLD ?>"><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Hold'); ?>
|
||||
</select><td>
|
||||
<tr><td colspan="3"><label for="iFiles"><?= $this->l11n->getText('ResearchDevelopment', 'Files'); ?></label>
|
||||
<tr><td colspan="3"><label for="iFiles"><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Files'); ?></label>
|
||||
<tr><td colspan="2"><input type="file" id="iFiles" name="file" multiple><td>
|
||||
<tr><td colspan="3"><label for="iBudget"><?= $this->l11n->getText('ResearchDevelopment', 'Budget'); ?></label>
|
||||
<tr><td colspan="3"><label for="iBudget"><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Budget'); ?></label>
|
||||
<tr><td colspan="2"><input type="text" id="iBudget" name="budget" placeholder=""><td>
|
||||
<tr><td><label for="iDue"><?= $this->l11n->getText('ResearchDevelopment', 'Start'); ?></label><td><label for="iDue"><?= $this->l11n->getText('ResearchDevelopment', 'Due'); ?></label><td>
|
||||
<tr><td><label for="iDue"><?= $this->l11n->getText('ResearchDevelopment', 'Start'); ?></label><td><label for="iDue"><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Due'); ?></label><td>
|
||||
<tr><td><input type="datetime-local" id="iDue" name="due"><td><input type="datetime-local" id="iDue" name="due"><td>
|
||||
<tr><td><label for="iResponsibility"><?= $this->l11n->getText('ResearchDevelopment', 'Responsibility'); ?></label><td><label for="iUser"><?= $this->l11n->getText('ResearchDevelopment', 'UserGroup'); ?></label><td>
|
||||
<tr><td><label for="iResponsibility"><?= $this->l11n->getText('ResearchDevelopment', 'Responsibility'); ?></label><td><label for="iUser"><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'UserGroup'); ?></label><td>
|
||||
<tr><td><select id="iStatus" name="status">
|
||||
<option value="<?= \Modules\ProjectManagement\Models\ProjectResponsibility::MANAGER ?>"><?= $this->l11n->getText('ResearchDevelopment', 'Manager'); ?>
|
||||
<option value="<?= \Modules\ProjectManagement\Models\ProjectResponsibility::OTHER ?>"><?= $this->l11n->getText('ResearchDevelopment', 'Other'); ?>
|
||||
<option value="<?= \Modules\ProjectManagement\Models\ProjectResponsibility::MANAGER ?>"><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Manager'); ?>
|
||||
<option value="<?= \Modules\ProjectManagement\Models\ProjectResponsibility::OTHER ?>"><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Other'); ?>
|
||||
</select>
|
||||
<td><input type="text" id="iUser" name="user" placeholder=""><td><button><?= $this->l11n->getText(0, 'Add'); ?></button>
|
||||
<tr><td colspan="3"><input type="submit" value="<?= $this->l11n->getText(0, 'Create'); ?>">
|
||||
<td><input type="text" id="iUser" name="user" placeholder=""><td><button><?= $this->l11n->getText(0, 'Backend', 'Add'); ?></button>
|
||||
<tr><td colspan="3"><input type="submit" value="<?= $this->l11n->getText(0, 'Backend', 'Create'); ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -28,14 +28,14 @@ echo $this->getData('nav')->render(); ?>
|
|||
|
||||
<div class="box w-100">
|
||||
<table class="table">
|
||||
<caption><?= $this->l11n->getText('ResearchDevelopment', 'Projects'); ?></caption>
|
||||
<caption><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Projects'); ?></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td><?= $this->l11n->getText(0, 'ID'); ?>
|
||||
<td><?= $this->l11n->getText('ResearchDevelopment', 'Status'); ?>
|
||||
<td class="wf-100"><?= $this->l11n->getText('ResearchDevelopment', 'Name'); ?>
|
||||
<td><?= $this->l11n->getText('ResearchDevelopment', 'Creator'); ?>
|
||||
<td><?= $this->l11n->getText('ResearchDevelopment', 'Created'); ?>
|
||||
<td><?= $this->l11n->getText(0, 'Backend', 'ID'); ?>
|
||||
<td><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Status'); ?>
|
||||
<td class="wf-100"><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Name'); ?>
|
||||
<td><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Creator'); ?>
|
||||
<td><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Created'); ?>
|
||||
<tfoot>
|
||||
<tr><td colspan="5"><?= $footerView->render(); ?>
|
||||
<tbody>
|
||||
|
|
@ -49,7 +49,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<?php endforeach; ?>
|
||||
<?php if($c === 0) : ?>
|
||||
<tr>
|
||||
<td colspan="5" class="empty"><?= $this->l11n->getText(0, 'Empty'); ?>
|
||||
<td colspan="5" class="empty"><?= $this->l11n->getText(0, 'Backend', 'Empty'); ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -16,35 +16,35 @@
|
|||
echo $this->getData('nav')->render(); ?>
|
||||
|
||||
<section class="box w-50">
|
||||
<header><h1><?= $this->l11n->getText('ResearchDevelopment', 'Project'); ?></h1></header>
|
||||
<header><h1><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Project'); ?></h1></header>
|
||||
<div class="inner">
|
||||
<form>
|
||||
<table class="layout wf-100">
|
||||
<tr><td colspan="3"><label for="iName"><?= $this->l11n->getText('ResearchDevelopment', 'Name'); ?></label>
|
||||
<tr><td colspan="3"><label for="iName"><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Name'); ?></label>
|
||||
<tr><td colspan="2"><input type="text" id="iName" name="name" placeholder=""><td>
|
||||
<tr><td colspan="3"><label for="iDescription"><?= $this->l11n->getText('ResearchDevelopment', 'Description'); ?></label>
|
||||
<tr><td colspan="3"><label for="iDescription"><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Description'); ?></label>
|
||||
<tr><td colspan="2"><textarea id="iDescription" name="description"></textarea><td>
|
||||
<tr><td colspan="3"><label for="iStatus"><?= $this->l11n->getText('ResearchDevelopment', 'Status'); ?></label>
|
||||
<tr><td colspan="3"><label for="iStatus"><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Status'); ?></label>
|
||||
<tr><td colspan="2"><select id="iStatus" name="status">
|
||||
<option value="<?= \Modules\ProjectManagement\Models\ProjectStatus::ACTIVE ?>"><?= $this->l11n->getText('ResearchDevelopment', 'Active'); ?>
|
||||
<option value="<?= \Modules\ProjectManagement\Models\ProjectStatus::INACTIVE ?>"><?= $this->l11n->getText('ResearchDevelopment', 'Inactive'); ?>
|
||||
<option value="<?= \Modules\ProjectManagement\Models\ProjectStatus::FINISHED ?>"><?= $this->l11n->getText('ResearchDevelopment', 'Finished'); ?>
|
||||
<option value="<?= \Modules\ProjectManagement\Models\ProjectStatus::CANCELED ?>"><?= $this->l11n->getText('ResearchDevelopment', 'Canceled'); ?>
|
||||
<option value="<?= \Modules\ProjectManagement\Models\ProjectStatus::HOLD ?>"><?= $this->l11n->getText('ResearchDevelopment', 'Hold'); ?>
|
||||
<option value="<?= \Modules\ProjectManagement\Models\ProjectStatus::ACTIVE ?>"><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Active'); ?>
|
||||
<option value="<?= \Modules\ProjectManagement\Models\ProjectStatus::INACTIVE ?>"><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Inactive'); ?>
|
||||
<option value="<?= \Modules\ProjectManagement\Models\ProjectStatus::FINISHED ?>"><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Finished'); ?>
|
||||
<option value="<?= \Modules\ProjectManagement\Models\ProjectStatus::CANCELED ?>"><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Canceled'); ?>
|
||||
<option value="<?= \Modules\ProjectManagement\Models\ProjectStatus::HOLD ?>"><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Hold'); ?>
|
||||
</select><td>
|
||||
<tr><td colspan="3"><label for="iFiles"><?= $this->l11n->getText('ResearchDevelopment', 'Files'); ?></label>
|
||||
<tr><td colspan="3"><label for="iFiles"><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Files'); ?></label>
|
||||
<tr><td colspan="2"><input type="file" id="iFiles" name="file" multiple><td>
|
||||
<tr><td colspan="3"><label for="iBudget"><?= $this->l11n->getText('ResearchDevelopment', 'Budget'); ?></label>
|
||||
<tr><td colspan="3"><label for="iBudget"><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Budget'); ?></label>
|
||||
<tr><td colspan="2"><input type="text" id="iBudget" name="budget" placeholder=""><td>
|
||||
<tr><td><label for="iDue"><?= $this->l11n->getText('ResearchDevelopment', 'Start'); ?></label><td><label for="iDue"><?= $this->l11n->getText('ResearchDevelopment', 'Due'); ?></label><td>
|
||||
<tr><td><label for="iDue"><?= $this->l11n->getText('ResearchDevelopment', 'Start'); ?></label><td><label for="iDue"><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Due'); ?></label><td>
|
||||
<tr><td><input type="datetime-local" id="iDue" name="due"><td><input type="datetime-local" id="iDue" name="due"><td>
|
||||
<tr><td><label for="iResponsibility"><?= $this->l11n->getText('ResearchDevelopment', 'Responsibility'); ?></label><td><label for="iUser"><?= $this->l11n->getText('ResearchDevelopment', 'UserGroup'); ?></label><td>
|
||||
<tr><td><label for="iResponsibility"><?= $this->l11n->getText('ResearchDevelopment', 'Responsibility'); ?></label><td><label for="iUser"><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'UserGroup'); ?></label><td>
|
||||
<tr><td><select id="iStatus" name="status">
|
||||
<option value="<?= \Modules\ProjectManagement\Models\ProjectResponsibility::MANAGER ?>"><?= $this->l11n->getText('ResearchDevelopment', 'Manager'); ?>
|
||||
<option value="<?= \Modules\ProjectManagement\Models\ProjectResponsibility::OTHER ?>"><?= $this->l11n->getText('ResearchDevelopment', 'Other'); ?>
|
||||
<option value="<?= \Modules\ProjectManagement\Models\ProjectResponsibility::MANAGER ?>"><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Manager'); ?>
|
||||
<option value="<?= \Modules\ProjectManagement\Models\ProjectResponsibility::OTHER ?>"><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Other'); ?>
|
||||
</select>
|
||||
<td><input type="text" id="iUser" name="user" placeholder=""><td><button><?= $this->l11n->getText(0, 'Add'); ?></button>
|
||||
<tr><td colspan="3"><input type="submit" value="<?= $this->l11n->getText(0, 'Create'); ?>">
|
||||
<td><input type="text" id="iUser" name="user" placeholder=""><td><button><?= $this->l11n->getText(0, 'Backend', 'Add'); ?></button>
|
||||
<tr><td colspan="3"><input type="submit" value="<?= $this->l11n->getText(0, 'Backend', 'Create'); ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -28,14 +28,14 @@ echo $this->getData('nav')->render(); ?>
|
|||
|
||||
<div class="box w-100">
|
||||
<table class="table">
|
||||
<caption><?= $this->l11n->getText('ResearchDevelopment', 'Projects'); ?></caption>
|
||||
<caption><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Projects'); ?></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td><?= $this->l11n->getText(0, 'ID'); ?>
|
||||
<td><?= $this->l11n->getText('ResearchDevelopment', 'Status'); ?>
|
||||
<td class="wf-100"><?= $this->l11n->getText('ResearchDevelopment', 'Name'); ?>
|
||||
<td><?= $this->l11n->getText('ResearchDevelopment', 'Creator'); ?>
|
||||
<td><?= $this->l11n->getText('ResearchDevelopment', 'Created'); ?>
|
||||
<td><?= $this->l11n->getText(0, 'Backend', 'ID'); ?>
|
||||
<td><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Status'); ?>
|
||||
<td class="wf-100"><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Name'); ?>
|
||||
<td><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Creator'); ?>
|
||||
<td><?= $this->l11n->getText('ResearchDevelopment', 'Backend', 'Created'); ?>
|
||||
<tfoot>
|
||||
<tr><td colspan="5"><?= $footerView->render(); ?>
|
||||
<tbody>
|
||||
|
|
@ -49,7 +49,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<?php endforeach; ?>
|
||||
<?php if($c === 0) : ?>
|
||||
<tr>
|
||||
<td colspan="5" class="empty"><?= $this->l11n->getText(0, 'Empty'); ?>
|
||||
<td colspan="5" class="empty"><?= $this->l11n->getText(0, 'Backend', 'Empty'); ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user