MaCH repo
This commit is contained in:
10
05_todo_sse_datastar/todo_item.mustache.html
Normal file
10
05_todo_sse_datastar/todo_item.mustache.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<div id="todo_{{id}}">
|
||||
{{^finished}}
|
||||
<input type="checkbox" data-on:click__prevent="@patch('{{url:todo}}?finished=1')">
|
||||
{{/finished}}
|
||||
{{#finished}}
|
||||
<input type="checkbox" checked data-on:click__prevent="@patch('{{url:todo}}')">
|
||||
{{/finished}}
|
||||
{{title}}
|
||||
<button data-on:click="@delete('{{url:todo:id}}')">delete</button>
|
||||
</div>
|
||||
Reference in New Issue
Block a user