mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 13:37:09 -04:00
Add card import UI
This commit is contained in:
parent
758be3356c
commit
bc79b83140
3 changed files with 16 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -65,6 +65,8 @@
|
|||
"card-edit-attachments": "Edit attachments",
|
||||
"card-edit-labels": "Edit labels",
|
||||
"card-edit-members": "Edit members",
|
||||
"card-json": "Card data",
|
||||
"card-json-placeholder": "Paste your valid JSON data here",
|
||||
"card-labels-title": "Change the labels for the card.",
|
||||
"card-members-title": "Add or remove members of the board from the card.",
|
||||
"cardAttachmentsPopup-title": "Attach From",
|
||||
|
@ -118,6 +120,8 @@
|
|||
"fullname": "Full Name",
|
||||
"header-logo-title": "Go back to your boards page.",
|
||||
"home": "Home",
|
||||
"import": "Import",
|
||||
"import-card": "Import as new card",
|
||||
"info": "Infos",
|
||||
"initials": "Initials",
|
||||
"joined": "joined",
|
||||
|
@ -136,6 +140,7 @@
|
|||
"list-select-cards": "Select all cards in this list",
|
||||
"listActionPopup-title": "List Actions",
|
||||
"listArchiveCardsPopup-title": "Archive All Cards in this List?",
|
||||
"listImportCardPopup-title": "Import as new card",
|
||||
"listMoveCardsPopup-title": "Move All Cards in List",
|
||||
"lists": "Lists",
|
||||
"log-out": "Log Out",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue