tims-todo/application/views/task/checklist_view.php

15 lines
512 B
PHP
Executable File

<section id="task_checklist">
<ul id="checklist">
<?php $i=0; ?>
<?php if(!empty($checklist)) : ?>
<?php foreach($checklist as $c) : ?>
<li>
<input type="checkbox" name="checklist[]" value="<?= $c['id'] ?>" id="check_<?= $c['id']?>" <?= ($c['is_checked']== 1) ? 'checked="checked"' : '' ?> <?= ($user_perms <= PERM_CHECKLIST_ACCESS) ? 'disabled="disabled"' : '' ?> />
&nbsp;&nbsp;<label for="check_<?= $c['id']?>"><?= $c['description'] ?></label>
</li>
<?php endforeach ?>
<?php endif ?>
</ul>
</section>