summaryrefslogtreecommitdiffstats
path: root/client/components/lists/listBody.jade
diff options
context:
space:
mode:
authorAndrés Manelli <andresmanelli@gmail.com>2018-03-20 00:13:42 -0300
committerAndrés Manelli <andresmanelli@gmail.com>2018-08-10 23:55:19 +0200
commitdcc7b2970f3635b95bc71e3fc163a51cacad0931 (patch)
tree58f4bffdfef29b2bdab8d04a64fd8c873a0f20a4 /client/components/lists/listBody.jade
parent193af893ee4da894e9494792306f5825e99de74a (diff)
downloadwekan-dcc7b2970f3635b95bc71e3fc163a51cacad0931.tar.gz
wekan-dcc7b2970f3635b95bc71e3fc163a51cacad0931.tar.bz2
wekan-dcc7b2970f3635b95bc71e3fc163a51cacad0931.zip
Add UI for importing card-as-card and board-as-card
Diffstat (limited to 'client/components/lists/listBody.jade')
-rw-r--r--client/components/lists/listBody.jade53
1 files changed, 52 insertions, 1 deletions
diff --git a/client/components/lists/listBody.jade b/client/components/lists/listBody.jade
index 32c6b278..e0655fc2 100644
--- a/client/components/lists/listBody.jade
+++ b/client/components/lists/listBody.jade
@@ -34,8 +34,59 @@ template(name="addCardForm")
.add-controls.clearfix
button.primary.confirm(type="submit") {{_ 'add'}}
- a.fa.fa-times-thin.js-close-inlined-form
+ span.quiet
+ | {{_ 'or'}}
+ a.js-import {{_ 'import'}}
template(name="autocompleteLabelLine")
.minicard-label(class="card-label-{{colorName}}" title=labelName)
span(class="{{#if hasNoName}}quiet{{/if}}")= labelName
+
+template(name="importCardPopup")
+ label {{_ 'boards'}}:
+ .import-board-wrapper
+ select.js-select-boards
+ each boards
+ if $eq _id currentBoard._id
+ option(value="{{_id}}" selected) {{_ 'current'}}
+ else
+ option(value="{{_id}}") {{title}}
+ input.primary.confirm.js-import-board(type="submit" value="{{_ 'add'}}")
+
+ label {{_ 'swimlanes'}}:
+ select.js-select-swimlanes
+ each swimlanes
+ option(value="{{_id}}") {{title}}
+
+ label {{_ 'lists'}}:
+ select.js-select-lists
+ each lists
+ option(value="{{_id}}") {{title}}
+
+ label {{_ 'cards'}}:
+ select.js-select-lists
+ each cards
+ option(value="{{_id}}") {{title}}
+
+ .edit-controls.clearfix
+ input.primary.confirm.js-done(type="submit" value="{{_ 'done'}}")
+ span.quiet
+ | {{_ 'or'}}
+ a.js-search {{_ 'search'}}
+
+template(name="searchCardPopup")
+ label {{_ 'boards'}}:
+ .import-board-wrapper
+ select.js-select-boards
+ each boards
+ if $eq _id currentBoard._id
+ option(value="{{_id}}" selected) {{_ 'current'}}
+ else
+ option(value="{{_id}}") {{title}}
+ form.js-search-term-form
+ input(type="text" name="searchTerm" placeholder="{{_ 'search-example'}}" autofocus)
+ .list-body.js-perfect-scrollbar.search-card-results
+ .minicards.clearfix.js-minicards
+ each results
+ a.minicard-wrapper.js-minicard
+ +minicard(this)