diff options
author | amadilsons <joao.amado.95@gmail.com> | 2017-09-27 14:29:52 +0200 |
---|---|---|
committer | amadilsons <joao.amado.95@gmail.com> | 2017-09-27 14:29:52 +0200 |
commit | bbe37cfad83f261e2c24cca3b4f31baa0e818f58 (patch) | |
tree | 14456fcf1d0018fa02cd1dc8c4a7800515c1e3d0 /client/components/cards/checklists.jade | |
parent | f98d640e1eae92d98eea3ae10cc46198a51f8f26 (diff) | |
download | wekan-bbe37cfad83f261e2c24cca3b4f31baa0e818f58.tar.gz wekan-bbe37cfad83f261e2c24cca3b4f31baa0e818f58.tar.bz2 wekan-bbe37cfad83f261e2c24cca3b4f31baa0e818f58.zip |
sugested fix for issue #881
Diffstat (limited to 'client/components/cards/checklists.jade')
-rw-r--r-- | client/components/cards/checklists.jade | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/client/components/cards/checklists.jade b/client/components/cards/checklists.jade index 7ecc5dd3..74da5863 100644 --- a/client/components/cards/checklists.jade +++ b/client/components/cards/checklists.jade @@ -1,8 +1,14 @@ template(name="checklists") h2 {{_ 'checklists'}} + if deleteDialog + .board-overlay#card-details-overlay + +checklistDeleteDialog(checklist = checklistToDelete) + + .card-checklist-items each checklist in currentCard.checklists - +checklistDetail(checklist = checklist) + +checklistDetail(checklist=checklist) + if canModifyCard +inlinedForm(autoclose=false classNames="js-add-checklist" cardId = cardId) +addChecklistItemForm @@ -18,7 +24,8 @@ template(name="checklistDetail") .checklist-title .checkbox.fa.fa-check-square-o if canModifyCard - a.js-delete-checklist {{_ "delete"}}... + a.js-delete-checklist.toggle-delete-checklist-dialog {{_ "delete"}}... + span.checklist-stat(class="{{#if checklist.isFinished}}is-finished{{/if}}") {{checklist.finishedCount}}/{{checklist.itemCount}} if canModifyCard h2.title.js-open-inlined-form.is-editable {{checklist.title}} @@ -26,6 +33,18 @@ template(name="checklistDetail") h2.title {{checklist.title}} +checklistItems(checklist = checklist) +template(name="checklistDeleteDialog") + .js-confirm-checklist-delete + p + i(class="fa fa-exclamation-triangle" aria-hidden="true") + p + | Are you sure you want to delete + span {{checklist.title}} + | ? + .js-checklist-delete-buttons + button.confirm-checklist-delete(type="button") {{_ 'delete'}} + button.toggle-delete-checklist-dialog(type="button") {{_ 'cancel'}} + template(name="addChecklistItemForm") textarea.js-add-checklist-item(rows='1' autofocus) .edit-controls.clearfix |