mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 07:20:12 +01:00
Import members: board import
This commit is contained in:
parent
f6f41270de
commit
dd0a6e1a82
6 changed files with 48 additions and 15 deletions
|
|
@ -8,7 +8,7 @@ template(name="importPopup")
|
|||
if membersMapping
|
||||
div
|
||||
a.show-mapping
|
||||
| {{_ 'show-mapping'}}
|
||||
| {{_ 'import-show-user-mapping'}}
|
||||
input.primary.wide(type="submit" value="{{_ 'import'}}")
|
||||
|
||||
template(name="mapMembersPopup")
|
||||
|
|
@ -35,7 +35,8 @@ template(name="mapMembersPopup")
|
|||
|
||||
template(name="mapMembersAddPopup")
|
||||
.select-member
|
||||
p Hello world
|
||||
p
|
||||
| {{_ 'import-user-select'}}
|
||||
.js-map-member
|
||||
+esInput(index="users")
|
||||
ul.pop-over-list
|
||||
|
|
|
|||
|
|
@ -29,13 +29,12 @@ const ImportPopup = BlazeComponent.extendComponent({
|
|||
},
|
||||
|
||||
onShowMapping(evt) {
|
||||
// todo xxx make it work - currently we don't find the text
|
||||
// this._storeText(evt);
|
||||
this._storeText(evt);
|
||||
Popup.open('mapMembers')(evt);
|
||||
},
|
||||
|
||||
_storeText(evt) {
|
||||
const dataJson = $(evt.currentTarget).find('.js-import-json').val();
|
||||
const dataJson = this.$('.js-import-json').val();
|
||||
Session.set('import.text', dataJson);
|
||||
return dataJson;
|
||||
},
|
||||
|
|
|
|||
10
client/components/import/import.styl
vendored
10
client/components/import/import.styl
vendored
|
|
@ -1,8 +1,9 @@
|
|||
.map-members
|
||||
.mapping:first-of-type
|
||||
border-top: solid 1px #999
|
||||
.mapping
|
||||
margin-bottom: 10px
|
||||
margin-top: 10px
|
||||
border-bottom: solid
|
||||
padding: 10px 0
|
||||
border-bottom: solid 1px #999
|
||||
.source
|
||||
display: inline-block
|
||||
width: 80%
|
||||
|
|
@ -11,3 +12,6 @@
|
|||
width: 35px
|
||||
.member
|
||||
float: none
|
||||
|
||||
a.show-mapping
|
||||
text-decoration underline
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue