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

15 lines
512 B
PHP
Raw Permalink Normal View History

2014-08-08 15:41:59 -04:00
<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>
2014-08-08 15:41:59 -04:00
</li>
<?php endforeach ?>
<?php endif ?>
</ul>
</section>