summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorJim Martens <github@2martens.de>2017-09-12 10:37:16 +0200
committerJim Martens <github@2martens.de>2017-09-12 10:37:16 +0200
commitf2ca520a6941da3dc60b09bfe442852511cff456 (patch)
treef46b8255f6a245e1006347b12f280efd9a6caa22 /client
parentf3f845dde85d2a82e68ee1792793c31a0a874fe3 (diff)
downloadwekan-f2ca520a6941da3dc60b09bfe442852511cff456.tar.gz
wekan-f2ca520a6941da3dc60b09bfe442852511cff456.tar.bz2
wekan-f2ca520a6941da3dc60b09bfe442852511cff456.zip
Prepared template for sortable checklist items
Diffstat (limited to 'client')
-rw-r--r--client/components/cards/checklists.jade7
1 files changed, 3 insertions, 4 deletions
diff --git a/client/components/cards/checklists.jade b/client/components/cards/checklists.jade
index d04a9b60..7ecc5dd3 100644
--- a/client/components/cards/checklists.jade
+++ b/client/components/cards/checklists.jade
@@ -46,8 +46,8 @@ template(name="editChecklistItemForm")
a.js-delete-checklist-item {{_ "delete"}}...
template(name="checklistItems")
- .checklist-items
- each item in checklist.items
+ .checklist-items.js-checklist-items
+ each item in checklist.getItems
+inlinedForm(classNames="js-edit-checklist-item" item = item checklist = checklist)
+editChecklistItemForm(type = 'item' item = item checklist = checklist)
else
@@ -61,11 +61,10 @@ template(name="checklistItems")
| {{_ 'add-checklist-item'}}...
template(name='itemDetail')
- .item
+ .item.js-checklist-item
if canModifyCard
.check-box.materialCheckBox(class="{{#if item.isFinished }}is-checked{{/if}}")
.item-title.js-open-inlined-form.is-editable(class="{{#if item.isFinished }}is-checked{{/if}}") {{item.title}}
else
.materialCheckBox(class="{{#if item.isFinished }}is-checked{{/if}}")
.item-title(class="{{#if item.isFinished }}is-checked{{/if}}") {{item.title}}
-