2016-06-22 03:39:26 +00:00
|
|
|
.task-checklist-edit(ng-if='::!$state.includes("options.social.challenges") && (task._edit.type=="daily" || task._edit.type=="todo")')
|
2015-06-05 02:05:41 +00:00
|
|
|
ul
|
|
|
|
|
li
|
2016-06-22 03:39:26 +00:00
|
|
|
button(type='button', ng-if='!task._edit.checklist[0]'
|
2015-06-14 06:27:35 +00:00
|
|
|
popover=env.t('checklistText'), popover-trigger='mouseenter', popover-placement='bottom',
|
2015-06-05 02:05:41 +00:00
|
|
|
ng-click='addChecklist(task)')
|
|
|
|
|
span.glyphicon.glyphicon-tasks
|
|
|
|
|
span=env.t('addChecklist')
|
|
|
|
|
|
2016-06-22 03:39:26 +00:00
|
|
|
.checklist-form(ng-if='task._edit.checklist')
|
2015-06-05 02:05:41 +00:00
|
|
|
fieldset.option-group(ng-if='!$state.includes("options.social.challenges")')
|
2016-06-22 03:39:26 +00:00
|
|
|
legend.option-title(ng-if='task._edit.checklist[0]')
|
2015-06-05 02:05:41 +00:00
|
|
|
span.hint(popover=env.t('checklistText'), popover-trigger='mouseenter', popover-placement='bottom')
|
|
|
|
|
=env.t('checklist')
|
|
|
|
|
ul(hrpg-sort-checklist)
|
2016-06-22 03:39:26 +00:00
|
|
|
li(ng-repeat='item in task._edit.checklist')
|
2015-06-05 02:05:41 +00:00
|
|
|
//input(type='checkbox',ng-model='item.completed',ng-change='saveTask(task,true)')
|
|
|
|
|
//-,ng-blur='saveTask(task,true)')
|
|
|
|
|
span.checklist-icon.glyphicon.glyphicon-resize-vertical
|
|
|
|
|
input(type='text', ng-model='item.text',
|
|
|
|
|
ui-keyup="{'13':'addChecklistItem(task,$event,$index)','38 40':'navigateChecklist(task,$index,$event)'}")
|
|
|
|
|
a(ng-click='removeChecklistItem(task,$event,$index,true)')
|
|
|
|
|
span.glyphicon.glyphicon-trash(tooltip=env.t('delete'))
|