mirror of
https://github.com/Karaka-Management/oms-Tasks.git
synced 2026-01-11 15:38:40 +00:00
Fix increment to pre-increment
This commit is contained in:
parent
e90478480f
commit
a058470e57
|
|
@ -6,7 +6,7 @@
|
|||
<td class="full"><?= $this->getHtml('Title', 'Tasks') ?>
|
||||
<tfoot>
|
||||
<tbody>
|
||||
<?php $c = 0; foreach ($this->tasks as $key => $task) : $c++;
|
||||
<?php $c = 0; foreach ($this->tasks as $key => $task) : ++$c;
|
||||
$url = \phpOMS\Uri\UriFactory::build('{/prefix}task/single?{?}&id=' . $task->getId());
|
||||
$color = 'darkred';
|
||||
if ($task->getStatus() === \Modules\Tasks\Models\TaskStatus::DONE) { $color = 'green'; }
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
<tfoot>
|
||||
<tbody>
|
||||
<?php
|
||||
$c = 0; foreach ($tasks as $key => $task) : $c++;
|
||||
$c = 0; foreach ($tasks as $key => $task) : ++$c;
|
||||
$url = \phpOMS\Uri\UriFactory::build('{/prefix}task/single?{?}&id=' . $task->getId());
|
||||
?>
|
||||
<tr data-href="<?= $url; ?>">
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ echo $this->getData('nav')->render(); ?>
|
|||
</div>
|
||||
</template>
|
||||
<?php $c = 0; $previous = null;
|
||||
foreach ($elements as $key => $element) : $c++;
|
||||
foreach ($elements as $key => $element) : ++$c;
|
||||
if ($element->getDescription() !== '') :
|
||||
?>
|
||||
<section id="taskelmenet-<?= $c; ?>" class="box wf-100 taskelement"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user