mirror of
https://github.com/Karaka-Management/oms-Tasks.git
synced 2026-01-11 15:38:40 +00:00
Case fix!
This commit is contained in:
parent
f109acae94
commit
bc7c18e94e
20
Theme/Backend/Lang/Navigation.en.lang.php
Normal file
20
Theme/Backend/Lang/Navigation.en.lang.php
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?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'] = [
|
||||
'Analysis' => 'Analysis',
|
||||
'Create' => 'Create',
|
||||
'Tasks' => 'Tasks',
|
||||
];
|
||||
64
Theme/Backend/Lang/en.lang.php
Normal file
64
Theme/Backend/Lang/en.lang.php
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
<?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['Tasks'] = [
|
||||
'Account' => 'Account',
|
||||
'All' => 'All',
|
||||
'AverageProcessTime' => 'Avg. Process Time',
|
||||
'AverageAmount' => 'Average Amount',
|
||||
'BCC' => 'BCC',
|
||||
'CC' => 'CC',
|
||||
'Created' => 'Created',
|
||||
'Creator' => 'Creator',
|
||||
'Default' => 'Default',
|
||||
'Day' => 'Day',
|
||||
'Due' => 'Due',
|
||||
'Forwarded' => 'Forwarded',
|
||||
'From' => 'From',
|
||||
'Group' => 'Group',
|
||||
'Interval' => 'Interval',
|
||||
'InTime' => 'In Time',
|
||||
'Message' => 'Message',
|
||||
'Media' => 'Media',
|
||||
'Month' => 'Month',
|
||||
'Name' => 'Name',
|
||||
'New' => 'New',
|
||||
'Open' => 'Open',
|
||||
'Person' => 'Person',
|
||||
'Priority' => 'Priority',
|
||||
'Received' => 'Received',
|
||||
'Redirected' => 'Redirected',
|
||||
'Select' => 'Select',
|
||||
'Settings' => 'Settings',
|
||||
'SharedVisibility' => 'Visibility is shared across all',
|
||||
'Size' => 'Size',
|
||||
'Statistics' => 'Statistics',
|
||||
'Status' => 'Status',
|
||||
'Task' => 'Task',
|
||||
'Tasks' => 'Tasks',
|
||||
'Template' => 'Template',
|
||||
'Title' => 'Title',
|
||||
'To' => 'To',
|
||||
'Today' => 'Today',
|
||||
'Type' => 'Type',
|
||||
'Upload' => 'Upload',
|
||||
'Week' => 'Week',
|
||||
'Year' => 'Year',
|
||||
'S1' => 'Open',
|
||||
'S2' => 'Working',
|
||||
'S3' => 'Suspended',
|
||||
'S4' => 'Canceled',
|
||||
'S5' => 'Done',
|
||||
];
|
||||
50
Theme/Backend/task-analysis.tpl.php
Normal file
50
Theme/Backend/task-analysis.tpl.php
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
<?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-50 floatLeft">
|
||||
<h1><?= $this->l11n->lang['Tasks']['Account']; ?></h1>
|
||||
<div class="inner">
|
||||
<form>
|
||||
<table class="layout wf-100">
|
||||
<tr><td><label for="iAccount"><?= $this->l11n->lang['Tasks']['Account']; ?></label>
|
||||
<tr><td><input type="text" id="iAccount" name="account" placeholder="">
|
||||
<tr><td><label for="iFrom"><?= $this->l11n->lang['Tasks']['From']; ?></label>
|
||||
<tr><td><input type="datetime-local" id="iFrom" name="from" value="<?= (new \DateTime('NOW'))->format('Y-m-d\TH:i:s') ?>">
|
||||
<tr><td><label for="iTo"><?= $this->l11n->lang['Tasks']['To']; ?></label>
|
||||
<tr><td><input type="datetime-local" id="iTo" name="to" value="<?= (new \DateTime('NOW'))->format('Y-m-d\TH:i:s') ?>">
|
||||
<tr><td><input type="submit" value="<?= $this->l11n->lang[0]['Submit']; ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="box w-50 floatLeft">
|
||||
<h1><?= $this->l11n->lang['Tasks']['Statistics']; ?></h1>
|
||||
<div class="inner">
|
||||
<table class="list wf-100">
|
||||
<tr><td><?= $this->l11n->lang['Tasks']['Received']; ?><td>0
|
||||
<tr><td><?= $this->l11n->lang['Tasks']['Created']; ?><td>0
|
||||
<tr><td><?= $this->l11n->lang['Tasks']['Forwarded']; ?><td>0
|
||||
<tr><td><?= $this->l11n->lang['Tasks']['AverageAmount']; ?><td>0
|
||||
<tr><td><?= $this->l11n->lang['Tasks']['AverageProcessTime']; ?><td>0
|
||||
<tr><td><?= $this->l11n->lang['Tasks']['InTime']; ?><td>0
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
58
Theme/Backend/task-create.tpl.php
Normal file
58
Theme/Backend/task-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-50 floatLeft">
|
||||
<h1><?= $this->l11n->lang['Tasks']['Task']; ?></h1>
|
||||
|
||||
<div class="inner">
|
||||
<form id="fTask" method="POST" action="<?= \phpOMS\Uri\UriFactory::build('/{/lang}/api/task/create'); ?>">
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td colspan="2"><label for="iReceiver"><?= $this->l11n->lang['Tasks']['To']; ?></label>
|
||||
<tr><td><input type="text" id="iReceiver" name="forward" placeholder=" Guest"><td><button><?= $this->l11n->lang[0]['Add']; ?></button>
|
||||
<tr><td colspan="2"><label for="iObserver"><?= $this->l11n->lang['Tasks']['CC']; ?></label>
|
||||
<tr><td><input type="text" id="iObserver" name="observer" placeholder=" Guest"><td><button><?= $this->l11n->lang[0]['Add']; ?></button>
|
||||
<tr><td colspan="2"><label for="iDue"><?= $this->l11n->lang['Tasks']['Due']; ?></label>
|
||||
<tr><td><input type="datetime-local" id="iDue" name="due" value="<?= (new \DateTime('NOW'))->format('Y-m-d\TH:i:s') ?>"><td>
|
||||
<tr><td colspan="2"><label for="iTitle"><?= $this->l11n->lang['Tasks']['Title']; ?></label>
|
||||
<tr><td><input type="text" id="iTitle" name="title" placeholder=" <?= $this->l11n->lang['Tasks']['Title']; ?>"><td>
|
||||
<tr><td colspan="2"><label for="iMessage"><?= $this->l11n->lang['Tasks']['Message']; ?></label>
|
||||
<tr><td><textarea id="iMessage" name="description" placeholder=""></textarea><td>
|
||||
<tr><td colspan="2"><input type="submit" value="<?= $this->l11n->lang[0]['Create']; ?>"><input type="hidden" name="type" value="<?= \Modules\Tasks\Models\TaskType::TASK ?>">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="box w-50 floatLeft">
|
||||
<h1><?= $this->l11n->lang['Tasks']['Media']; ?></h1>
|
||||
|
||||
<div class="inner">
|
||||
<form>
|
||||
<table class="layout wf-100">
|
||||
<tbody>
|
||||
<tr><td colspan="2"><label for="iMedia"><?= $this->l11n->lang['Tasks']['Media']; ?></label>
|
||||
<tr><td><input type="text" id="iMedia" placeholder=" File"><td><button><?= $this->l11n->lang[0]['Select']; ?></button>
|
||||
<tr><td colspan="2"><label for="iUpload"><?= $this->l11n->lang['Tasks']['Upload']; ?></label>
|
||||
<tr><td><input type="file" id="iUpload" form="fTask"><input form="fTask" type="hidden" name="type"><td>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
86
Theme/Backend/task-dashboard.tpl.php
Normal file
86
Theme/Backend/task-dashboard.tpl.php
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
<?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
|
||||
* @var \Modules\Tasks\Models\Task[] $tasks
|
||||
*/
|
||||
$tasks = $this->getData('tasks');
|
||||
echo $this->getData('nav')->render(); ?>
|
||||
|
||||
<section class="box w-75 floatLeft">
|
||||
<table class="table">
|
||||
<caption><?= $this->l11n->lang['Tasks']['Tasks']; ?></caption>
|
||||
<thead>
|
||||
<td><?= $this->l11n->lang['Tasks']['Status']; ?>
|
||||
<td><?= $this->l11n->lang['Tasks']['Due']; ?>
|
||||
<td class="full"><?= $this->l11n->lang['Tasks']['Title']; ?>
|
||||
<td><?= $this->l11n->lang['Tasks']['Creator']; ?>
|
||||
<td><?= $this->l11n->lang['Tasks']['Created']; ?>
|
||||
<tfoot>
|
||||
<tbody>
|
||||
<?php $c = 0; foreach($tasks as $key => $task) : $c++;
|
||||
$url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/task/single?id=' . $task->getId());
|
||||
$color = 'darkred';
|
||||
if($task->getStatus() === \Modules\Tasks\Models\TaskStatus::DONE) { $color = 'green'; }
|
||||
elseif($task->getStatus() === \Modules\Tasks\Models\TaskStatus::OPEN) { $color = 'darkblue'; }
|
||||
elseif($task->getStatus() === \Modules\Tasks\Models\TaskStatus::WORKING) { $color = 'purple'; }
|
||||
elseif($task->getStatus() === \Modules\Tasks\Models\TaskStatus::CANCELED) { $color = 'red'; }
|
||||
elseif($task->getStatus() === \Modules\Tasks\Models\TaskStatus::SUSPENDED) { $color = 'yellow'; } ;?>
|
||||
<tr>
|
||||
<td><a href="<?= $url; ?>"><span class="tag <?= $color; ?>"><?= $this->l11n->lang['Tasks']['S' . $task->getStatus()]; ?></span></a>
|
||||
<td><a href="<?= $url; ?>"><?= $task->getDue()->format('Y-m-d H:i'); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $task->getTitle(); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $task->getCreatedBy(); ?></a>
|
||||
<td><a href="<?= $url; ?>"><?= $task->getCreatedAt()->format('Y-m-d H:i'); ?></a>
|
||||
<?php endforeach; if($c == 0) : ?>
|
||||
<tr><td colspan="6" class="empty"><?= $this->l11n->lang[0]['Empty']; ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<section class="w-25 floatLeft">
|
||||
<section class="box w-100">
|
||||
<h1><?= $this->l11n->lang['Tasks']['Settings']; ?></h1>
|
||||
<div class="inner">
|
||||
<form>
|
||||
<table class="layout wf-100">
|
||||
<tr><td><label for="iIntervarl"><?= $this->l11n->lang['Tasks']['Interval']; ?></label>
|
||||
<tr><td><select id="iIntervarl" name="interval">
|
||||
<option><?= $this->l11n->lang['Tasks']['All']; ?>
|
||||
<option><?= $this->l11n->lang['Tasks']['Day']; ?>
|
||||
<option><?= $this->l11n->lang['Tasks']['Week']; ?>
|
||||
<option selected><?= $this->l11n->lang['Tasks']['Month']; ?>
|
||||
<option><?= $this->l11n->lang['Tasks']['Year']; ?>
|
||||
</select>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="box w-100">
|
||||
<h1><?= $this->l11n->lang['Tasks']['Settings']; ?></h1>
|
||||
<div class="inner">
|
||||
<table class="list">
|
||||
<tr><th><?= $this->l11n->lang['Tasks']['Received']; ?><td>0
|
||||
<tr><th><?= $this->l11n->lang['Tasks']['Created']; ?><td>0
|
||||
<tr><th><?= $this->l11n->lang['Tasks']['Forwarded']; ?><td>0
|
||||
<tr><th><?= $this->l11n->lang['Tasks']['AverageAmount']; ?><td>0
|
||||
<tr><th><?= $this->l11n->lang['Tasks']['AverageProcessTime']; ?><td>0
|
||||
<tr><th><?= $this->l11n->lang['Tasks']['InTime']; ?><td>0
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
90
Theme/Backend/task-single.tpl.php
Normal file
90
Theme/Backend/task-single.tpl.php
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
<?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
|
||||
* @var \Modules\Tasks\Models\Task $task
|
||||
*/
|
||||
$task = $this->getData('task');
|
||||
$elements = $task->getTaskElements();
|
||||
$cElements = count($elements);
|
||||
|
||||
echo $this->getData('nav')->render(); ?>
|
||||
|
||||
<section class="box w-50">
|
||||
<h1><?= $task->getTitle(); ?></h1>
|
||||
<div class="inner">
|
||||
<div class="floatRight">Due <?= $task->getDue()->format('Y-m-d H:i'); ?></div>
|
||||
<div>Created <?= $task->getCreatedAt()->format('Y-m-d H:i'); ?></div>
|
||||
<blockquote>
|
||||
<?= $task->getDescription(); ?>
|
||||
</blockquote>
|
||||
<div>Created <?= $task->getCreatedBy(); ?></div>
|
||||
<div>Status <?= $task->getStatus(); ?></div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<?php $c = 0;
|
||||
foreach ($elements as $key => $element) : $c++;
|
||||
if($element->getStatus() === \Modules\Tasks\Models\TaskStatus::DONE) { $color = 'green'; }
|
||||
elseif($element->getStatus() === \Modules\Tasks\Models\TaskStatus::OPEN) { $color = 'darkblue'; }
|
||||
elseif($element->getStatus() === \Modules\Tasks\Models\TaskStatus::WORKING) { $color = 'purple'; }
|
||||
elseif($element->getStatus() === \Modules\Tasks\Models\TaskStatus::CANCELED) { $color = 'red'; }
|
||||
elseif($element->getStatus() === \Modules\Tasks\Models\TaskStatus::SUSPENDED) { $color = 'yellow'; } ?>
|
||||
<section class="box w-50">
|
||||
<div class="floatRight"><span class="tag <?= $color; ?>"><?= $this->l11n->lang['Tasks']['S' . $element->getStatus()]; ?></span></div>
|
||||
<div><?= $element->getCreatedBy(); ?> - <?= $element->getCreatedAt()->format('Y-m-d H:i'); ?></div>
|
||||
</section>
|
||||
<?php if ($element->getDescription() !== '') : ?>
|
||||
<section class="box w-50">
|
||||
<div class="inner">
|
||||
<blockquote>
|
||||
<?= $element->getDescription(); ?>
|
||||
</blockquote>
|
||||
</div>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
<section class="box w-50">
|
||||
<?php if ($element->getStatus() !== \Modules\Tasks\Models\TaskStatus::CANCELED ||
|
||||
$element->getStatus() !== \Modules\Tasks\Models\TaskStatus::DONE ||
|
||||
$element->getStatus() !== \Modules\Tasks\Models\TaskStatus::SUSPENDED || $c != $cElements
|
||||
) : ?>
|
||||
<div class="floatRight">Due <?= $element->getDue()->format('Y-m-d H:i'); ?></div>
|
||||
<?php endif; ?>
|
||||
<?php if ($element->getForwarded() !== 0) : ?>
|
||||
<div>Forwarded <?= $element->getForwarded(); ?></div>
|
||||
<?php endif; ?>
|
||||
</section>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<section class="box w-50">
|
||||
<div class="inner">
|
||||
<form>
|
||||
<table class="layout wf-100">
|
||||
<tr><td><label for="iMessage"><?= $this->l11n->lang['Tasks']['Message']; ?></label>
|
||||
<tr><td><textarea></textarea>
|
||||
<tr><td><label for="iDue"><?= $this->l11n->lang['Tasks']['Due']; ?></label>
|
||||
<tr><td><input type="datetime-local">
|
||||
<tr><td><label for="iReceiver"><?= $this->l11n->lang['Tasks']['Status']; ?></label>
|
||||
<tr><td><select>
|
||||
<option>
|
||||
</select>
|
||||
<tr><td><label for="iReceiver"><?= $this->l11n->lang['Tasks']['To']; ?></label>
|
||||
<tr><td><input type="text" id="iReceiver" placeholder=" Guest">
|
||||
<tr><td><input type="submit" value="<?= $this->l11n->lang[0]['Create']; ?>"><input type="hidden" name="type" value="1">
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
Loading…
Reference in New Issue
Block a user