implemented additional todo functionality

This commit is contained in:
2025-04-20 20:38:41 -06:00
parent 0753e1867c
commit ab8f1b9ec8
18 changed files with 279 additions and 145 deletions
+7 -10
View File
@@ -2,27 +2,24 @@
function todo_item($todo)
{
$item = '
$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="hidden" name="todo_id" value="' . (isset($todo['todo_id']) ? $todo['todo_id'] : '') . '">
<input type="checkbox"' . ($todo['status'] == 'completed' ? ' checked' : '') . '>
<input type="checkbox"' . (!empty($todo) ? ($todo['status'] == 'completed' ? ' checked' : '') : '') . '>
<span class="checkmark no_margin"></span>
</label>
</div>
<div class="column center">
<small>' . $todo['task'] . '</small>
<div class="column center modal_activation_area">
<small>' . $todo['title'] . '</small>
</div>
</div>
</div>
<div class="todo_item_details" style="display: none;">
' . todo_modal($todo, null) . '
</div>
';
return $item;
return $item;
}