partially implemented todo tracker

This commit is contained in:
2025-04-20 17:05:41 -06:00
parent 9e47110758
commit ab30859446
29 changed files with 546 additions and 157 deletions
+28
View File
@@ -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;
}