summaryrefslogtreecommitdiffstats
path: root/client/components/lists
diff options
context:
space:
mode:
authorXavier Priour <xavier.priour@bubblyware.com>2015-10-13 20:29:25 +0200
committerMaxime Quandalle <maxime@quandalle.com>2015-10-14 23:23:16 +0200
commitbc79b83140ec2e120f4050ac78f6f8baa0483137 (patch)
tree3c116720500d14f9dce426794d4e1c212b25af2c /client/components/lists
parent758be3356cc3fb05de0a29787059b6b34aac08a2 (diff)
downloadwekan-bc79b83140ec2e120f4050ac78f6f8baa0483137.tar.gz
wekan-bc79b83140ec2e120f4050ac78f6f8baa0483137.tar.bz2
wekan-bc79b83140ec2e120f4050ac78f6f8baa0483137.zip
Add card import UI
Diffstat (limited to 'client/components/lists')
-rw-r--r--client/components/lists/listHeader.jade9
-rw-r--r--client/components/lists/listHeader.js2
2 files changed, 11 insertions, 0 deletions
diff --git a/client/components/lists/listHeader.jade b/client/components/lists/listHeader.jade
index 7d01f1ba..597e2bbd 100644
--- a/client/components/lists/listHeader.jade
+++ b/client/components/lists/listHeader.jade
@@ -25,11 +25,20 @@ template(name="listActionPopup")
li: a.js-archive-cards {{_ 'list-archive-cards'}}
hr
ul.pop-over-list
+ li: a.js-import-card {{_ 'import-card'}}
li: a.js-close-list {{_ 'archive-list'}}
template(name="listMoveCardsPopup")
+boardLists
+template(name="listImportCardPopup")
+ form
+ label
+ | {{_ 'card-json'}}
+ //+editor(class="js-card-json" autofocus=true)
+ textarea.js-card-json(placeholder="{{_ 'card-json-placeholder'}}" autofocus)
+ input.primary.wide(type="submit" value="{{_ 'import'}}")
+
template(name="boardLists")
ul.pop-over-list
each currentBoard.lists
diff --git a/client/components/lists/listHeader.js b/client/components/lists/listHeader.js
index a893e873..4f5fc3a0 100644
--- a/client/components/lists/listHeader.js
+++ b/client/components/lists/listHeader.js
@@ -33,6 +33,7 @@ Template.listActionPopup.events({
MultiSelection.add(cardIds);
Popup.close();
},
+ 'click .js-import-card': Popup.open('listImportCard'),
'click .js-move-cards': Popup.open('listMoveCards'),
'click .js-archive-cards': Popup.afterConfirm('listArchiveCards', function() {
this.allCards().forEach((card) => {
@@ -40,6 +41,7 @@ Template.listActionPopup.events({
});
Popup.close();
}),
+
'click .js-close-list'(evt) {
evt.preventDefault();
this.archive();