summaryrefslogtreecommitdiffstats
path: root/client/components/cards/checklists.jade
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2017-09-30 15:51:12 +0300
committerLauri Ojansivu <x@xet7.org>2017-09-30 15:51:12 +0300
commit9e075fb2da4e4b47bf6ff9514244c7aea9011bc8 (patch)
treeecabc6ce4dcc43555a5f6d48a140088a419dd4d7 /client/components/cards/checklists.jade
parent222c071925ecb62024092e3189deac644c5fd42e (diff)
parente03f2102de5d5e47c997058d4f2c86c3ff2a1373 (diff)
downloadwekan-9e075fb2da4e4b47bf6ff9514244c7aea9011bc8.tar.gz
wekan-9e075fb2da4e4b47bf6ff9514244c7aea9011bc8.tar.bz2
wekan-9e075fb2da4e4b47bf6ff9514244c7aea9011bc8.zip
Merge branch 'issue881' of https://github.com/amadilsons/wekan into amadilsons-issue881
Diffstat (limited to 'client/components/cards/checklists.jade')
-rw-r--r--client/components/cards/checklists.jade23
1 files changed, 21 insertions, 2 deletions
diff --git a/client/components/cards/checklists.jade b/client/components/cards/checklists.jade
index e1dd1d14..d6e6d736 100644
--- a/client/components/cards/checklists.jade
+++ b/client/components/cards/checklists.jade
@@ -1,8 +1,14 @@
template(name="checklists")
h2 {{_ 'checklists'}}
+ if toggleDeleteDialog.get
+ .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
+ | {{_ 'confirm-checklist-delete-dialog'}}
+ 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