Import members: board import

This commit is contained in:
Xavier Priour 2015-11-13 19:17:09 +01:00
parent f6f41270de
commit dd0a6e1a82
6 changed files with 48 additions and 15 deletions

View file

@ -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

View file

@ -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;
},

View file

@ -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