import.jade 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. template(name="importHeaderBar")
  2. h1
  3. a.back-btn(href="{{pathFor 'home'}}")
  4. i.fa.fa-chevron-left
  5. | {{_ 'import-board-title'}}
  6. template(name="import")
  7. .wrapper
  8. if error.get
  9. .warning {{_ error.get}}
  10. +Template.dynamic(template=currentTemplate)
  11. template(name="importTextarea")
  12. form
  13. p: label(for='import-textarea') {{_ 'import-board-trello-instruction'}}
  14. textarea.js-import-json(placeholder="{{_ 'import-json-placeholder'}}" autofocus)
  15. | {{jsonText}}
  16. input.primary.wide(type="submit" value="{{_ 'import'}}")
  17. template(name="importMapMembers")
  18. h2 {{_ 'import-map-members'}}
  19. .map-members
  20. p {{_ 'import-members-map'}}
  21. .mapping-list
  22. each members
  23. a.mapping-item.js-select-member(class="{{#if wekanId}}filled{{/if}}")
  24. .profile-source
  25. .full-name= fullName
  26. .username
  27. | ({{username}})
  28. .wekan
  29. if wekanId
  30. +userAvatar(userId=wekanId)
  31. else
  32. a.member.add-member
  33. i.fa.fa-plus
  34. //-
  35. Due to the way the flewbox layout is working, we need to set some
  36. invisible items so that the last row items have a consistent width.
  37. See http://jsfiddle.net/Ln4h3c4n/ for an minimal example of the issue.
  38. .mapping-item.ghost-item
  39. .mapping-item.ghost-item
  40. .mapping-item.ghost-item
  41. .mapping-item.ghost-item
  42. .mapping-item.ghost-item
  43. form
  44. input.primary.wide(type="submit" value="{{_ 'done'}}")
  45. template(name="importMapMembersAddPopup")
  46. .select-member
  47. p
  48. | {{_ 'import-user-select'}}
  49. .js-map-member
  50. +esInput(index="users")
  51. ul.pop-over-list
  52. +esEach(index="users")
  53. li.item.js-member-item
  54. a.name.js-select-import(title="{{profile.fullname}} ({{username}})" data-id="{{_id}}")
  55. +userAvatar(userId=_id esSearch=true)
  56. span.full-name
  57. = profile.fullname
  58. | (<span class="username">{{username}}</span>)
  59. +ifEsIsSearching(index='users')
  60. +spinner
  61. +ifEsHasNoResults(index="users")
  62. .manage-member-section
  63. p.quiet {{_ 'no-results'}}