mirror of
https://github.com/Karaka-Management/oms-Tasks.git
synced 2026-01-11 07:38:39 +00:00
improve task element listing in task
This commit is contained in:
parent
7a7a99f18b
commit
cc94670c6f
|
|
@ -142,7 +142,7 @@ final class BackendController extends Controller implements DashboardElementInte
|
||||||
$head = $response->get('Content')->getData('head');
|
$head = $response->get('Content')->getData('head');
|
||||||
$head->addAsset(AssetType::CSS, '/Modules/Tasks/Theme/Backend/css/styles.css');
|
$head->addAsset(AssetType::CSS, '/Modules/Tasks/Theme/Backend/css/styles.css');
|
||||||
|
|
||||||
$task = TaskMapper::get((int) $request->getData('id'), RelationType::ALL, 3);
|
$task = TaskMapper::get((int) $request->getData('id'), RelationType::ALL, 4);
|
||||||
$accountId = $request->getHeader()->getAccount();
|
$accountId = $request->getHeader()->getAccount();
|
||||||
|
|
||||||
if (!($task->getCreatedBy()->getId() === $accountId
|
if (!($task->getCreatedBy()->getId() === $accountId
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.tag.task-status-3 {
|
.tag.task-status-3 {
|
||||||
background: #f1c40f;
|
background: #ffd321;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tag.task-status-4 {
|
.tag.task-status-4 {
|
||||||
|
|
|
||||||
|
|
@ -169,8 +169,22 @@ echo $this->getData('nav')->render(); ?>
|
||||||
</template>
|
</template>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php $c = 0; $previous = null;
|
<?php $c = 0; $previous = null;
|
||||||
foreach ($elements as $key => $element) : ++$c;
|
foreach ($elements as $key => $element) : ++$c; ?>
|
||||||
if ($element->getDescription() !== '') : ?>
|
<?php if (($c === 1 && $element->getStatus() !== TaskStatus::OPEN)
|
||||||
|
|| ($previous !== null && $element->getStatus() !== $previous->getStatus())
|
||||||
|
) : ?>
|
||||||
|
<section class="box wf-100">
|
||||||
|
<div class="inner">
|
||||||
|
Status change by <?= $this->printHtml($element->getCreatedBy()->getName1()); ?>
|
||||||
|
on <?= $this->printHtml($element->getCreatedAt()->format('Y-m-d H:i')); ?>
|
||||||
|
to <span class="tag task-status-<?= $this->printHtml($element->getStatus()); ?>">
|
||||||
|
<?= $this->getHtml('S' . $element->getStatus()) ?>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<?php if ($element->getDescription() !== '') : ?>
|
||||||
<section id="taskelmenet-<?= $c; ?>" class="portlet taskElement"
|
<section id="taskelmenet-<?= $c; ?>" class="portlet taskElement"
|
||||||
data-update-content="#elements"
|
data-update-content="#elements"
|
||||||
data-update-element=".taskElement .taskElement-content"
|
data-update-element=".taskElement .taskElement-content"
|
||||||
|
|
@ -263,8 +277,8 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<?php endif; $previous = $element; ?>
|
<?php endif; ?>
|
||||||
<?php endforeach; ?>
|
<?php $previous = $element; endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user