2015-12-08 16:18:44 -05:00
|
|
|
template(name="importHeaderBar")
|
|
|
|
|
h1
|
|
|
|
|
a.back-btn(href="{{pathFor 'home'}}")
|
|
|
|
|
i.fa.fa-chevron-left
|
2017-07-08 13:23:33 +01:00
|
|
|
| {{_ title}}
|
2015-12-08 16:18:44 -05:00
|
|
|
|
|
|
|
|
template(name="import")
|
|
|
|
|
.wrapper
|
|
|
|
|
if error.get
|
|
|
|
|
.warning {{_ error.get}}
|
|
|
|
|
+Template.dynamic(template=currentTemplate)
|
|
|
|
|
|
|
|
|
|
template(name="importTextarea")
|
2018-03-17 08:49:22 +02:00
|
|
|
form
|
2018-11-08 22:49:08 +02:00
|
|
|
p: label(for='import-textarea') {{_ instruction}} {{_ 'import-board-instruction-about-errors'}}
|
2021-01-28 18:18:31 +02:00
|
|
|
textarea.js-import-json(id='import-textarea' placeholder="{{_ importPlaceHolder}}" autofocus)
|
2018-03-17 08:49:22 +02:00
|
|
|
| {{jsonText}}
|
|
|
|
|
input.primary.wide(type="submit" value="{{_ 'import'}}")
|
2015-10-23 03:37:34 +02:00
|
|
|
|
2015-12-08 16:18:44 -05:00
|
|
|
template(name="importMapMembers")
|
|
|
|
|
h2 {{_ 'import-map-members'}}
|
2021-01-28 18:18:31 +02:00
|
|
|
if usersLoaded.get
|
|
|
|
|
.map-members
|
|
|
|
|
p {{_ 'import-members-map'}}
|
2021-01-30 11:44:53 +02:00
|
|
|
p.import-members-map-note
|
|
|
|
|
| {{_ 'import-members-map-note' }}
|
2021-01-28 18:18:31 +02:00
|
|
|
.mapping-list
|
|
|
|
|
each members
|
|
|
|
|
a.mapping-item.js-select-member(class="{{#if wekanId}}filled{{/if}}")
|
|
|
|
|
.profile-source
|
|
|
|
|
.full-name= fullName
|
|
|
|
|
.username
|
|
|
|
|
| ({{username}})
|
|
|
|
|
.wekan
|
|
|
|
|
if wekanId
|
|
|
|
|
+userAvatar(userId=wekanId)
|
|
|
|
|
else
|
|
|
|
|
a.member.add-member
|
|
|
|
|
i.fa.fa-plus
|
|
|
|
|
//-
|
|
|
|
|
Due to the way the flewbox layout is working, we need to set some
|
|
|
|
|
invisible items so that the last row items have a consistent width.
|
|
|
|
|
See http://jsfiddle.net/Ln4h3c4n/ for an minimal example of the issue.
|
|
|
|
|
.mapping-item.ghost-item
|
|
|
|
|
.mapping-item.ghost-item
|
|
|
|
|
.mapping-item.ghost-item
|
|
|
|
|
.mapping-item.ghost-item
|
|
|
|
|
.mapping-item.ghost-item
|
|
|
|
|
form
|
|
|
|
|
input.primary.wide(type="submit" value="{{_ 'done'}}")
|
|
|
|
|
else
|
|
|
|
|
+spinner
|
2015-11-13 12:35:41 +01:00
|
|
|
|
2015-12-08 16:18:44 -05:00
|
|
|
template(name="importMapMembersAddPopup")
|
2015-11-13 12:35:41 +01:00
|
|
|
.select-member
|
2015-11-13 19:17:09 +01:00
|
|
|
p
|
|
|
|
|
| {{_ 'import-user-select'}}
|
2015-11-13 12:35:41 +01:00
|
|
|
.js-map-member
|
|
|
|
|
+esInput(index="users")
|
|
|
|
|
ul.pop-over-list
|
|
|
|
|
+esEach(index="users")
|
|
|
|
|
li.item.js-member-item
|
2016-07-11 12:05:03 +02:00
|
|
|
a.name.js-select-import(title="{{profile.fullname}} ({{username}})" data-id="{{_id}}")
|
2015-11-13 12:35:41 +01:00
|
|
|
+userAvatar(userId=_id esSearch=true)
|
|
|
|
|
span.full-name
|
2016-07-11 12:05:03 +02:00
|
|
|
= profile.fullname
|
2015-11-13 12:35:41 +01:00
|
|
|
| (<span class="username">{{username}}</span>)
|
|
|
|
|
+ifEsIsSearching(index='users')
|
|
|
|
|
+spinner
|
|
|
|
|
+ifEsHasNoResults(index="users")
|
|
|
|
|
.manage-member-section
|
|
|
|
|
p.quiet {{_ 'no-results'}}
|