partially implemented todo tracker
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
function todo_item($todo)
|
||||
{
|
||||
$item = '
|
||||
<div class="todo_item bottom_margin top_padding bottom_padding sm_border">
|
||||
<div class="row left_margin">
|
||||
<div class="column center">
|
||||
<label class="form_checkbox_container no_margin">
|
||||
<input type="hidden" name="todo_id" value="' . $todo['todo_id'] . '">
|
||||
|
||||
<input type="checkbox"' . ($todo['status'] == 'completed' ? ' checked' : '') . '>
|
||||
<span class="checkmark no_margin"></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="column center">
|
||||
<small>' . $todo['task'] . '</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="todo_item_details" style="display: none;">
|
||||
|
||||
</div>
|
||||
';
|
||||
|
||||
return $item;
|
||||
}
|
||||
Reference in New Issue
Block a user