2017-01-20 21:05:48 +08:00
|
|
|
template(name="checklists")
|
|
|
|
|
h2 {{_ 'checklists'}}
|
|
|
|
|
.card-checklist-items
|
|
|
|
|
each checklist in currentCard.checklists
|
|
|
|
|
+checklistDetail(checklist = checklist)
|
2017-03-18 16:01:22 -04:00
|
|
|
if canModifyCard
|
2017-07-01 23:03:54 +09:00
|
|
|
+inlinedForm(autoclose=false classNames="js-add-checklist" cardId = cardId)
|
2017-03-18 16:01:22 -04:00
|
|
|
+addChecklistItemForm
|
|
|
|
|
else
|
|
|
|
|
a.js-open-inlined-form
|
|
|
|
|
i.fa.fa-plus
|
|
|
|
|
| {{_ 'add-checklist'}}...
|
2017-01-20 21:05:48 +08:00
|
|
|
|
|
|
|
|
template(name="checklistDetail")
|
2017-02-03 01:49:58 +02:00
|
|
|
+inlinedForm(classNames="js-edit-checklist-title" checklist = checklist)
|
2017-01-20 21:05:48 +08:00
|
|
|
+editChecklistItemForm(checklist = checklist)
|
|
|
|
|
else
|
|
|
|
|
.checklist-title
|
|
|
|
|
.checkbox.fa.fa-check-square-o
|
2017-03-18 18:49:39 -04:00
|
|
|
if canModifyCard
|
|
|
|
|
a.js-delete-checklist {{_ "delete"}}...
|
2017-01-20 21:05:48 +08:00
|
|
|
span.checklist-stat(class="{{#if checklist.isFinished}}is-finished{{/if}}") {{checklist.finishedCount}}/{{checklist.itemCount}}
|
2017-03-18 18:49:39 -04:00
|
|
|
if canModifyCard
|
|
|
|
|
h2.title.js-open-inlined-form.is-editable {{checklist.title}}
|
|
|
|
|
else
|
|
|
|
|
h2.title {{checklist.title}}
|
2017-01-20 21:05:48 +08:00
|
|
|
+checklistItems(checklist = checklist)
|
|
|
|
|
|
|
|
|
|
template(name="addChecklistItemForm")
|
|
|
|
|
textarea.js-add-checklist-item(rows='1' autofocus)
|
|
|
|
|
.edit-controls.clearfix
|
|
|
|
|
button.primary.confirm.js-submit-add-checklist-item-form(type="submit") {{_ 'save'}}
|
|
|
|
|
a.fa.fa-times-thin.js-close-inlined-form
|
|
|
|
|
|
|
|
|
|
template(name="editChecklistItemForm")
|
|
|
|
|
textarea.js-edit-checklist-item(rows='1' autofocus)
|
|
|
|
|
if $eq type 'item'
|
|
|
|
|
= item.title
|
|
|
|
|
else
|
|
|
|
|
= checklist.title
|
|
|
|
|
.edit-controls.clearfix
|
|
|
|
|
button.primary.confirm.js-submit-edit-checklist-item-form(type="submit") {{_ 'save'}}
|
|
|
|
|
a.fa.fa-times-thin.js-close-inlined-form
|
|
|
|
|
span(title=createdAt) {{ moment createdAt }}
|
2017-03-18 18:49:39 -04:00
|
|
|
if canModifyCard
|
2017-01-20 21:05:48 +08:00
|
|
|
a.js-delete-checklist-item {{_ "delete"}}...
|
|
|
|
|
|
|
|
|
|
template(name="checklistItems")
|
|
|
|
|
.checklist-items
|
|
|
|
|
each item in checklist.items
|
2017-02-03 01:49:58 +02:00
|
|
|
+inlinedForm(classNames="js-edit-checklist-item" item = item checklist = checklist)
|
2017-01-20 21:05:48 +08:00
|
|
|
+editChecklistItemForm(type = 'item' item = item checklist = checklist)
|
|
|
|
|
else
|
|
|
|
|
+itemDetail(item = item checklist = checklist)
|
2017-03-18 18:49:39 -04:00
|
|
|
if canModifyCard
|
2017-06-30 10:10:42 +09:00
|
|
|
+inlinedForm(autoclose=false classNames="js-add-checklist-item" checklist = checklist)
|
2017-01-20 21:05:48 +08:00
|
|
|
+addChecklistItemForm
|
|
|
|
|
else
|
|
|
|
|
a.add-checklist-item.js-open-inlined-form
|
|
|
|
|
i.fa.fa-plus
|
|
|
|
|
| {{_ 'add-checklist-item'}}...
|
|
|
|
|
|
|
|
|
|
template(name='itemDetail')
|
|
|
|
|
.item
|
2017-03-18 18:49:39 -04:00
|
|
|
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}}
|
|
|
|
|
|