mirror of
https://github.com/Karaka-Management/oms-Tasks.git
synced 2026-02-15 14:18:41 +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') ?>
|
<td class="full"><?= $this->getHtml('Title', 'Tasks') ?>
|
||||||
<tfoot>
|
<tfoot>
|
||||||
<tbody>
|
<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());
|
$url = \phpOMS\Uri\UriFactory::build('{/prefix}task/single?{?}&id=' . $task->getId());
|
||||||
$color = 'darkred';
|
$color = 'darkred';
|
||||||
if ($task->getStatus() === \Modules\Tasks\Models\TaskStatus::DONE) { $color = 'green'; }
|
if ($task->getStatus() === \Modules\Tasks\Models\TaskStatus::DONE) { $color = 'green'; }
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
<tfoot>
|
<tfoot>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?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());
|
$url = \phpOMS\Uri\UriFactory::build('{/prefix}task/single?{?}&id=' . $task->getId());
|
||||||
?>
|
?>
|
||||||
<tr data-href="<?= $url; ?>">
|
<tr data-href="<?= $url; ?>">
|
||||||
|
|
|
||||||
|
|
@ -122,7 +122,7 @@ echo $this->getData('nav')->render(); ?>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<?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() !== '') :
|
if ($element->getDescription() !== '') :
|
||||||
?>
|
?>
|
||||||
<section id="taskelmenet-<?= $c; ?>" class="box wf-100 taskelement"
|
<section id="taskelmenet-<?= $c; ?>" class="box wf-100 taskelement"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user