summaryrefslogtreecommitdiffstats
path: root/client/components/import/import.jade
blob: 74b6ca13e0fc71593a01a153e3f7a88c44a02ecb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
template(name="importPopup")
  if error.get
    .warning {{_ error.get}}
  form
    p: label(for='import-textarea') {{_ getLabel}}
    textarea#import-textarea.js-import-json(placeholder="{{_ 'import-json-placeholder'}}" autofocus)
      | {{jsonText}}
    if membersMapping
      div
        a.show-mapping
          | {{_ 'import-show-user-mapping'}}
    input.primary.wide(type="submit" value="{{_ 'import'}}")

template(name="mapMembersPopup")
  .map-members
    p {{_ 'import-members-map'}}
    .mapping-list
      each members
        .mapping
          a.source
            div.full-name
              = fullName
            div.username
              | ({{username}})
          .wekan
            if wekan
              +userAvatar(userId=wekan._id)
            else
              a.member.add-member.js-add-members
                i.fa.fa-plus
    form
      input.primary.wide(type="submit" value="{{_ 'done'}}")

      template(name="addMemberPopup")

template(name="mapMembersAddPopup")
  .select-member
    p
      | {{_ 'import-user-select'}}
    .js-map-member
      +esInput(index="users")
    ul.pop-over-list
      +esEach(index="users")
        li.item.js-member-item
          a.name.js-select-import(title="{{profile.name}} ({{username}})" data-id="{{_id}}")
            +userAvatar(userId=_id esSearch=true)
            span.full-name
              = profile.name
              | (<span class="username">{{username}}</span>)
      +ifEsIsSearching(index='users')
        +spinner
      +ifEsHasNoResults(index="users")
        .manage-member-section
          p.quiet {{_ 'no-results'}}