Task lists WIP
This commit is contained in:
parent
22561b4daa
commit
b308d82f16
@ -1,8 +1,17 @@
|
|||||||
import { html } from 'lit'
|
import { html } from 'lit'
|
||||||
|
|
||||||
export default function tplMucTask (task) {
|
export default function tplMucTask (task) {
|
||||||
|
const done = task.get('done')
|
||||||
return html`
|
return html`
|
||||||
<div class="">
|
<div class="">
|
||||||
Task: ${task.get('name')}
|
<input
|
||||||
|
type="checkbox"
|
||||||
|
class="form-check-input"
|
||||||
|
.checked=${done === true}
|
||||||
|
@click=${(_ev) => {
|
||||||
|
task.save('done', !done)
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
${task.get('name')}
|
||||||
</div>`
|
</div>`
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user