mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-22 03:34:14 +00:00
checklists: tmp commit to showcase how inline checklists look on
tasks (only for todos for comparison)
This commit is contained in:
parent
968b091ccd
commit
bb3bec520e
1 changed files with 7 additions and 1 deletions
|
|
@ -63,10 +63,16 @@ li(bindonce='list', bo-id='"task-"+task.id', ng-repeat='task in obj[list.type+"s
|
|||
input.visuallyhidden.focusable(ng-if='!$state.includes("tasks")', id='box-{{obj._id}}_{{task.id}}', type='checkbox')
|
||||
label(for='box-{{obj._id}}_{{task.id}}')
|
||||
// main content
|
||||
p.task-text
|
||||
div.task-text
|
||||
markdown(ng-model='task.text',target='_blank')
|
||||
//-| {{task.text}}
|
||||
|
||||
div(ng-if='task.checklist && task.type=="todo"')
|
||||
fieldset.option-group(ng-if='!$state.includes("options.social.challenges")')
|
||||
label.checkbox(ng-repeat='item in task.checklist')
|
||||
input(type='checkbox',ng-model='item.completed',ng-change='checkChecklistItem(task)')
|
||||
| {{item.text}}
|
||||
|
||||
// edit/options dialog
|
||||
div(ng-if='task._editing')
|
||||
.task-options
|
||||
|
|
|
|||
Loading…
Reference in a new issue