mirror of
https://github.com/Karaka-Management/oms-Checklist.git
synced 2026-01-21 12:08:42 +00:00
Case fix!
This commit is contained in:
parent
a611acdbeb
commit
2f2ba411d0
21
Theme/Backend/Lang/Navigation.en.lang.php
Normal file
21
Theme/Backend/Lang/Navigation.en.lang.php
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.0
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright 2013 Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
$MODLANG['Navigation'] = [
|
||||
'Checklist' => 'Checklist',
|
||||
'Checklists' => 'Checklists',
|
||||
'CreateCheclist' => 'CreateCheclist',
|
||||
'Templates' => 'Templates',
|
||||
];
|
||||
17
Theme/Backend/Lang/api.en.lang.php
Normal file
17
Theme/Backend/Lang/api.en.lang.php
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.0
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright 2013 Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
$MODLANG['Navigation'] = [
|
||||
];
|
||||
30
Theme/Backend/Lang/en.lang.php
Normal file
30
Theme/Backend/Lang/en.lang.php
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.0
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright 2013 Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
$MODLANG['Checklist'] = [
|
||||
'Checklist' => 'Checklist',
|
||||
'Checklists' => 'Checklists',
|
||||
'Created' => 'Created',
|
||||
'Creator' => 'Creator',
|
||||
'Description' => 'Description',
|
||||
'Files' => 'Files',
|
||||
'General' => 'General',
|
||||
'Name' => 'Name',
|
||||
'Permissions' => 'Permissions',
|
||||
'Status' => 'Status',
|
||||
'Tasks' => 'Tasks',
|
||||
'Templates' => 'Templates',
|
||||
'Title' => 'Title',
|
||||
];
|
||||
55
Theme/Backend/checklist-list.tpl.php
Normal file
55
Theme/Backend/checklist-list.tpl.php
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.0
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright 2013 Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
/**
|
||||
* @var \phpOMS\Views\View $this
|
||||
*/
|
||||
|
||||
$footerView = new \Web\Views\Lists\PaginationView($this->app, $this->request, $this->response);
|
||||
$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig');
|
||||
|
||||
$footerView->setPages(1 / 25);
|
||||
$footerView->setPage(1);
|
||||
$footerView->setResults(1);
|
||||
|
||||
echo $this->getData('nav')->render(); ?>
|
||||
|
||||
<section class="box w-100">
|
||||
<table class="table">
|
||||
<caption><?= $this->l11n->lang['Checklist']['Checklists']; ?></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td><?= $this->l11n->lang[0]['ID']; ?>
|
||||
<td><?= $this->l11n->lang['Checklist']['Status']; ?>
|
||||
<td class="wf-100"><?= $this->l11n->lang['Checklist']['Name']; ?>
|
||||
<td><?= $this->l11n->lang['Checklist']['Creator']; ?>
|
||||
<td><?= $this->l11n->lang['Checklist']['Created']; ?>
|
||||
<tfoot>
|
||||
<tr><td colspan="5"><?= $footerView->render(); ?>
|
||||
<tbody>
|
||||
<?php $c = 0; foreach ([] as $key => $value) : $c++;
|
||||
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/checklist/single?id=' . $value->getId()); ?>
|
||||
<tr>
|
||||
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $value->getName(); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $value->getParent(); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $value->getUnit(); ?></a>
|
||||
<?php endforeach; ?>
|
||||
<?php if($c === 0) : ?>
|
||||
<tr>
|
||||
<td colspan="5" class="empty"><?= $this->l11n->lang[0]['Empty']; ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</section>
|
||||
58
Theme/Backend/checklist-template-create.tpl.php
Normal file
58
Theme/Backend/checklist-template-create.tpl.php
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.0
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright 2013 Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
/**
|
||||
* @var \phpOMS\Views\View $this
|
||||
*/
|
||||
|
||||
echo $this->getData('nav')->render(); ?>
|
||||
|
||||
<section class="box w-33">
|
||||
<h1><?= $this->l11n->lang['Checklist']['General']; ?></h1>
|
||||
<div class="inner">
|
||||
<form id="fChecklist">
|
||||
<table class="layout wf-100">
|
||||
<tr><td><label for="iName"><?= $this->l11n->lang['Checklist']['Name']; ?></label><td>
|
||||
<tr><td><input type="text" id="iName" name="name" required><td>
|
||||
<tr><td><label for="iDescription"><?= $this->l11n->lang['Checklist']['Description']; ?></label><td>
|
||||
<tr><td><textarea id="iDescription" name="description"></textarea><td>
|
||||
<tr><td><label for="iPermission"><?= $this->l11n->lang['Checklist']['Permissions']; ?></label><td>
|
||||
<tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input type="text" id="iPermission" name="permission"></span><td><button><?= $this->l11n->lang[0]['Add']; ?></button>
|
||||
<tr><td><label for="iFiles"><?= $this->l11n->lang['Checklist']['Files']; ?></label><td>
|
||||
<tr><td><input id="iFiles" name="files" type="file" multiple><td>
|
||||
<tr><td><input type="submit" value="<?= $this->l11n->lang[0]['Create']; ?>"><td>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="box w-33">
|
||||
<h1><?= $this->l11n->lang['Checklist']['Tasks']; ?></h1>
|
||||
<div class="inner">
|
||||
<form>
|
||||
<table class="layout wf-100">
|
||||
<tr><td><label for="iETitle"><?= $this->l11n->lang['Checklist']['Title']; ?></label><td>
|
||||
<tr><td><input type="text" id="iETitle" name="eTitle" required><td>
|
||||
<tr><td><label for="iEDescription"><?= $this->l11n->lang['Checklist']['Description']; ?></label><td>
|
||||
<tr><td><textarea id="iEDescription" name="eDescription"></textarea><td>
|
||||
<tr><td><label for="iEPermission"><?= $this->l11n->lang['Checklist']['Permissions']; ?></label><td>
|
||||
<tr><td><span class="input"><button type="button" formaction=""><i class="fa fa-book"></i></button><input type="text" id="iEPermission" name="ePermission"></span><td><button><?= $this->l11n->lang[0]['Add']; ?></button>
|
||||
<tr><td><label for="iEFiles"><?= $this->l11n->lang['Checklist']['Files']; ?></label><td>
|
||||
<tr><td><input id="iEFiles" name="eFiles" type="file" multiple><td>
|
||||
<tr><td><input type="submit" value="<?= $this->l11n->lang[0]['Add']; ?>"><td>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
55
Theme/Backend/checklist-template-list.tpl.php
Normal file
55
Theme/Backend/checklist-template-list.tpl.php
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.0
|
||||
*
|
||||
* @category TBD
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
* @copyright 2013 Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://orange-management.com
|
||||
*/
|
||||
/**
|
||||
* @var \phpOMS\Views\View $this
|
||||
*/
|
||||
|
||||
$footerView = new \Web\Views\Lists\PaginationView($this->app, $this->request, $this->response);
|
||||
$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig');
|
||||
|
||||
$footerView->setPages(1 / 25);
|
||||
$footerView->setPage(1);
|
||||
$footerView->setResults(1);
|
||||
|
||||
echo $this->getData('nav')->render(); ?>
|
||||
|
||||
<section class="box w-100">
|
||||
<table class="table">
|
||||
<caption><?= $this->l11n->lang['Checklist']['Templates']; ?></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td><?= $this->l11n->lang[0]['ID']; ?>
|
||||
<td><?= $this->l11n->lang['Checklist']['Status']; ?>
|
||||
<td class="wf-100"><?= $this->l11n->lang['Checklist']['Name']; ?>
|
||||
<td><?= $this->l11n->lang['Checklist']['Creator']; ?>
|
||||
<td><?= $this->l11n->lang['Checklist']['Created']; ?>
|
||||
<tfoot>
|
||||
<tr><td colspan="5"><?= $footerView->render(); ?>
|
||||
<tbody>
|
||||
<?php $c = 0; foreach ([] as $key => $value) : $c++;
|
||||
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/checklist/single?id=' . $value->getId()); ?>
|
||||
<tr>
|
||||
<td><a href="<?= $url; ?>"><?= $value->getId(); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $value->getName(); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $value->getParent(); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $value->getUnit(); ?></a>
|
||||
<?php endforeach; ?>
|
||||
<?php if($c === 0) : ?>
|
||||
<tr>
|
||||
<td colspan="5" class="empty"><?= $this->l11n->lang[0]['Empty']; ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</section>
|
||||
Loading…
Reference in New Issue
Block a user