2017-01-20 21:05:48 +08:00
|
|
|
template(name="checklists")
|
2020-06-09 23:32:00 +02:00
|
|
|
.checklists-title
|
2020-09-13 01:11:19 -03:00
|
|
|
h3.card-details-item-title
|
2020-06-09 23:32:00 +02:00
|
|
|
i.fa.fa-check
|
|
|
|
|
| {{_ 'checklists'}}
|
2022-05-04 23:19:19 +02:00
|
|
|
if canModifyCard
|
|
|
|
|
+inlinedForm(autoclose=false classNames="js-add-checklist" cardId = cardId position="top")
|
|
|
|
|
+addChecklistItemForm
|
|
|
|
|
else
|
|
|
|
|
a.add-checklist-top.js-open-inlined-form(title="{{_ 'add-checklist'}}")
|
|
|
|
|
i.fa.fa-plus
|
2020-06-09 23:32:00 +02:00
|
|
|
|
2017-01-20 21:05:48 +08:00
|
|
|
.card-checklist-items
|
2021-10-18 10:56:24 +02:00
|
|
|
each checklist in checklists
|
2023-08-22 05:10:02 +03:00
|
|
|
+checklistDetail(checklist=checklist)
|
2017-09-27 14:29:52 +02:00
|
|
|
|
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)
|
2022-01-15 11:26:09 +01:00
|
|
|
+addChecklistItemForm(checklist=checklist showNewlineBecomesNewChecklistItem=false)
|
2017-03-18 16:01:22 -04:00
|
|
|
else
|
2021-10-19 21:27:47 +02:00
|
|
|
a.add-checklist.js-open-inlined-form(title="{{_ 'add-checklist'}}")
|
2017-03-18 16:01:22 -04:00
|
|
|
i.fa.fa-plus
|
2017-01-20 21:05:48 +08:00
|
|
|
|
|
|
|
|
template(name="checklistDetail")
|
2018-03-19 17:19:46 -03:00
|
|
|
.js-checklist.checklist
|
2018-03-19 16:47:07 -03:00
|
|
|
+inlinedForm(classNames="js-edit-checklist-title" checklist = checklist)
|
|
|
|
|
+editChecklistItemForm(checklist = checklist)
|
|
|
|
|
else
|
|
|
|
|
.checklist-title
|
2018-04-05 12:56:03 +03:00
|
|
|
span
|
2018-03-19 16:47:07 -03:00
|
|
|
if canModifyCard
|
2022-01-10 23:43:29 +01:00
|
|
|
a.fa.fa-navicon.checklist-details-menu.js-open-checklist-details-menu(title="{{_ 'checklistActionsPopup-title'}}")
|
2018-04-05 12:56:03 +03:00
|
|
|
|
2018-03-19 16:47:07 -03:00
|
|
|
if canModifyCard
|
2022-09-11 20:53:30 -03:00
|
|
|
h4.title.js-open-inlined-form.is-editable
|
2022-08-12 17:21:45 +00:00
|
|
|
if isTouchScreenOrShowDesktopDragHandles
|
2020-11-11 00:10:28 +01:00
|
|
|
span.fa.checklist-handle(class="fa-arrows" title="{{_ 'dragChecklist'}}")
|
2018-03-19 16:47:07 -03:00
|
|
|
+viewer
|
2017-11-14 20:41:05 -06:00
|
|
|
= checklist.title
|
2018-03-19 16:47:07 -03:00
|
|
|
else
|
2022-09-11 20:53:30 -03:00
|
|
|
h4.title
|
2018-03-19 16:47:07 -03:00
|
|
|
+viewer
|
|
|
|
|
= checklist.title
|
2022-01-15 16:33:46 +01:00
|
|
|
|
2022-01-21 11:58:06 +01:00
|
|
|
if $gt finishedPercent 0
|
|
|
|
|
.checklist-progress-bar-container
|
|
|
|
|
.checklist-progress-text {{finishedPercent}}%
|
|
|
|
|
.checklist-progress-bar
|
|
|
|
|
.checklist-progress(style="width:{{finishedPercent}}%")
|
2018-03-19 16:47:07 -03:00
|
|
|
+checklistItems(checklist = checklist)
|
2017-01-20 21:05:48 +08:00
|
|
|
|
2021-11-27 11:55:18 +01:00
|
|
|
template(name="checklistDeletePopup")
|
|
|
|
|
p {{_ 'confirm-checklist-delete-popup'}}
|
|
|
|
|
button.js-confirm.negate.full(type="submit") {{_ 'delete'}}
|
2017-09-27 14:29:52 +02:00
|
|
|
|
2017-01-20 21:05:48 +08:00
|
|
|
template(name="addChecklistItemForm")
|
2021-11-26 02:07:00 +02:00
|
|
|
a.fa.fa-copy(title="{{_ 'copy-text-to-clipboard'}}")
|
2021-11-19 12:48:35 +01:00
|
|
|
span.copied-tooltip {{_ 'copied'}}
|
2017-01-20 21:05:48 +08:00
|
|
|
textarea.js-add-checklist-item(rows='1' autofocus)
|
|
|
|
|
.edit-controls.clearfix
|
|
|
|
|
button.primary.confirm.js-submit-add-checklist-item-form(type="submit") {{_ 'save'}}
|
2022-09-14 13:54:44 -03:00
|
|
|
a.fa.fa-times-thin.js-close-inlined-form(title="{{_ 'close-add-checklist-item'}}")
|
2022-01-15 11:26:09 +01:00
|
|
|
if showNewlineBecomesNewChecklistItem
|
|
|
|
|
.material-toggle-switch(title="{{_ 'newlineBecomesNewChecklistItem'}}")
|
|
|
|
|
input.toggle-switch(type="checkbox" id="toggleNewlineBecomesNewChecklistItem")
|
|
|
|
|
label.toggle-label(for="toggleNewlineBecomesNewChecklistItem")
|
2017-01-20 21:05:48 +08:00
|
|
|
|
|
|
|
|
template(name="editChecklistItemForm")
|
2021-11-26 02:07:00 +02:00
|
|
|
a.fa.fa-copy(title="{{_ 'copy-text-to-clipboard'}}")
|
2021-11-19 13:08:11 +01:00
|
|
|
span.copied-tooltip {{_ 'copied'}}
|
2019-05-08 21:30:38 +03:00
|
|
|
textarea.js-edit-checklist-item(rows='1' autofocus dir="auto")
|
2017-01-20 21:05:48 +08:00
|
|
|
if $eq type 'item'
|
|
|
|
|
= item.title
|
|
|
|
|
else
|
|
|
|
|
= checklist.title
|
|
|
|
|
.edit-controls.clearfix
|
|
|
|
|
button.primary.confirm.js-submit-edit-checklist-item-form(type="submit") {{_ 'save'}}
|
2022-09-14 13:54:44 -03:00
|
|
|
a.fa.fa-times-thin.js-close-inlined-form(title="{{_ 'close-edit-checklist-item'}}")
|
2017-01-20 21:05:48 +08:00
|
|
|
span(title=createdAt) {{ moment createdAt }}
|
2017-03-18 18:49:39 -04:00
|
|
|
if canModifyCard
|
2020-12-16 23:30:57 +02:00
|
|
|
a.js-delete-checklist-item {{_ "delete"}}...
|
2021-07-22 22:44:40 -03:00
|
|
|
a.js-convert-checklist-item-to-card
|
|
|
|
|
i.fa.fa-copy
|
|
|
|
|
| {{_ 'convertChecklistItemToCardPopup-title'}}
|
2017-01-20 21:05:48 +08:00
|
|
|
|
|
|
|
|
template(name="checklistItems")
|
2022-12-09 11:05:28 +01:00
|
|
|
if checklist.items.length
|
2022-05-15 16:50:32 +02:00
|
|
|
if canModifyCard
|
|
|
|
|
+inlinedForm(autoclose=false classNames="js-add-checklist-item" checklist = checklist position="top")
|
|
|
|
|
+addChecklistItemForm(checklist=checklist showNewlineBecomesNewChecklistItem=true)
|
|
|
|
|
else
|
|
|
|
|
a.add-checklist-item.js-open-inlined-form(title="{{_ 'add-checklist-item'}}")
|
|
|
|
|
i.fa.fa-plus
|
2017-09-12 10:37:16 +02:00
|
|
|
.checklist-items.js-checklist-items
|
2018-03-19 15:03:44 -03:00
|
|
|
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
|
2018-06-24 17:42:58 +03:00
|
|
|
+checklistItemDetail(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)
|
2022-01-15 11:26:09 +01:00
|
|
|
+addChecklistItemForm(checklist=checklist showNewlineBecomesNewChecklistItem=true)
|
2017-01-20 21:05:48 +08:00
|
|
|
else
|
2021-06-09 20:08:42 +03:00
|
|
|
a.add-checklist-item.js-open-inlined-form(title="{{_ 'add-checklist-item'}}")
|
2017-01-20 21:05:48 +08:00
|
|
|
i.fa.fa-plus
|
|
|
|
|
|
2018-06-24 17:42:58 +03:00
|
|
|
template(name='checklistItemDetail')
|
2022-09-08 16:17:07 -03:00
|
|
|
.js-checklist-item.checklist-item(class="{{#if item.isFinished }}is-checked{{#if hideCheckedItems}} invisible{{/if}}{{/if}}"
|
|
|
|
|
role="checkbox" aria-checked="{{#if item.isFinished }}true{{else}}false{{/if}}" tabindex="0")
|
2017-03-18 18:49:39 -04:00
|
|
|
if canModifyCard
|
2020-04-14 17:05:58 -07:00
|
|
|
.check-box-container
|
|
|
|
|
.check-box.materialCheckBox(class="{{#if item.isFinished }}is-checked{{/if}}")
|
2022-08-12 17:21:45 +00:00
|
|
|
if isTouchScreenOrShowDesktopDragHandles
|
2020-12-29 13:34:27 +01:00
|
|
|
span.fa.checklistitem-handle(class="fa-arrows" title="{{_ 'dragChecklistItem'}}")
|
2017-11-14 20:41:05 -06:00
|
|
|
.item-title.js-open-inlined-form.is-editable(class="{{#if item.isFinished }}is-checked{{/if}}")
|
|
|
|
|
+viewer
|
|
|
|
|
= item.title
|
2017-03-18 18:49:39 -04:00
|
|
|
else
|
|
|
|
|
.materialCheckBox(class="{{#if item.isFinished }}is-checked{{/if}}")
|
2017-11-14 20:41:05 -06:00
|
|
|
.item-title(class="{{#if item.isFinished }}is-checked{{/if}}")
|
|
|
|
|
+viewer
|
|
|
|
|
= item.title
|
2021-07-22 22:44:40 -03:00
|
|
|
|
2022-01-10 23:43:29 +01:00
|
|
|
template(name="checklistActionsPopup")
|
2023-08-22 05:10:02 +03:00
|
|
|
if currentUser.isBoardMember
|
2023-08-25 00:12:08 +03:00
|
|
|
span.text-show-at-minicard
|
|
|
|
|
| {{_ 'show-at-minicard'}}
|
|
|
|
|
.material-toggle-switch(title="{{_ 'show-checklist-at-minicard'}}")
|
|
|
|
|
if showAtMinicard
|
|
|
|
|
input.toggle-switch(type="checkbox" id="toggleShowChecklistAtMinicardButton" checked="checked")
|
|
|
|
|
else
|
|
|
|
|
input.toggle-switch(type="checkbox" id="toggleShowChecklistAtMinicardButton")
|
|
|
|
|
label.toggle-label(for="toggleShowChecklistAtMinicardButton")
|
|
|
|
|
hr
|
2023-08-22 05:10:02 +03:00
|
|
|
span.text-hide-checked-items
|
|
|
|
|
| {{_ 'hide-checked-items'}}
|
|
|
|
|
.material-toggle-switch(title="{{_ 'hide-checked-items'}}")
|
|
|
|
|
//span.toggle-switch-title
|
|
|
|
|
//.check-square-icon.i.fa.fa-check-square-o
|
|
|
|
|
if hideCheckedItems
|
|
|
|
|
input.toggle-switch(type="checkbox" id="toggleHideCheckedItemsButton" checked="checked")
|
|
|
|
|
else
|
|
|
|
|
input.toggle-switch(type="checkbox" id="toggleHideCheckedItemsButton")
|
|
|
|
|
label.toggle-label(for="toggleHideCheckedItemsButton")
|
|
|
|
|
hr
|
2022-01-10 23:43:29 +01:00
|
|
|
ul.pop-over-list
|
|
|
|
|
li
|
2022-01-11 19:26:44 +01:00
|
|
|
a.js-delete-checklist.delete-checklist
|
|
|
|
|
i.fa.fa-trash
|
2022-01-11 19:36:52 +01:00
|
|
|
| {{_ "delete"}} ...
|
2022-01-11 19:42:57 +01:00
|
|
|
a.js-move-checklist.move-checklist
|
|
|
|
|
i.fa.fa-arrow-right
|
|
|
|
|
| {{_ "moveChecklist"}} ...
|
2022-01-30 12:32:52 +01:00
|
|
|
a.js-copy-checklist.copy-checklist
|
|
|
|
|
i.fa.fa-copy
|
|
|
|
|
| {{_ "copyChecklist"}} ...
|
|
|
|
|
|
|
|
|
|
template(name="copyChecklistPopup")
|
|
|
|
|
+copyAndMoveChecklist
|
2022-01-11 19:42:57 +01:00
|
|
|
|
|
|
|
|
template(name="moveChecklistPopup")
|
2022-01-30 12:32:52 +01:00
|
|
|
+copyAndMoveChecklist
|
|
|
|
|
|
|
|
|
|
template(name="copyAndMoveChecklist")
|
2022-01-11 19:42:57 +01:00
|
|
|
unless currentUser.isWorker
|
|
|
|
|
label {{_ 'boards'}}:
|
|
|
|
|
select.js-select-boards(autofocus)
|
|
|
|
|
each boards
|
2023-02-26 20:06:54 +01:00
|
|
|
option(value="{{_id}}" selected="{{#if isDialogOptionBoardId _id}}selected{{/if}}") {{title}}
|
2022-01-11 19:42:57 +01:00
|
|
|
|
|
|
|
|
label {{_ 'swimlanes'}}:
|
|
|
|
|
select.js-select-swimlanes
|
|
|
|
|
each swimlanes
|
2022-07-03 23:57:53 +02:00
|
|
|
option(value="{{_id}}" selected="{{#if isDialogOptionSwimlaneId _id}}selected{{/if}}") {{title}}
|
2022-01-11 19:42:57 +01:00
|
|
|
|
|
|
|
|
label {{_ 'lists'}}:
|
|
|
|
|
select.js-select-lists
|
|
|
|
|
each lists
|
2022-07-03 23:57:53 +02:00
|
|
|
option(value="{{_id}}" selected="{{#if isDialogOptionListId _id}}selected{{/if}}") {{title}}
|
2022-01-11 19:42:57 +01:00
|
|
|
|
|
|
|
|
label {{_ 'cards'}}:
|
|
|
|
|
select.js-select-cards
|
|
|
|
|
each cards
|
2022-07-03 23:57:53 +02:00
|
|
|
option(value="{{_id}}" selected="{{#if isDialogOptionCardId _id}}selected{{/if}}") {{title}}
|
2022-01-11 19:42:57 +01:00
|
|
|
|
|
|
|
|
.edit-controls.clearfix
|
|
|
|
|
button.primary.confirm.js-done {{_ 'done'}}
|