Case fix!

This commit is contained in:
Dennis Eichhorn 2016-03-26 18:59:38 +01:00
parent a611acdbeb
commit 2f2ba411d0
6 changed files with 236 additions and 0 deletions

View 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',
];

View 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'] = [
];

View 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',
];

View 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>

View 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>

View 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>