swimlaneHeader.jade 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. template(name="swimlaneHeader")
  2. .swimlane-header-wrap.js-swimlane-header(class=colorClass title="{{_ 'rename'}}")
  3. if this.isTemplateContainer
  4. +swimlaneFixedHeader(this)
  5. else
  6. +inlinedForm
  7. +editSwimlaneTitleForm
  8. else
  9. +swimlaneFixedHeader(this)
  10. template(name="swimlaneFixedHeader")
  11. .swimlane-header(
  12. class="{{#if currentUser.isBoardMember}}js-open-inlined-form is-editable{{/if}}")
  13. if $eq title 'Card Templates'
  14. | {{_ 'card-templates-swimlane'}}
  15. else if $eq title 'List Templates'
  16. | {{_ 'list-templates-swimlane'}}
  17. else if $eq title 'Board Templates'
  18. | {{_ 'board-templates-swimlane'}}
  19. else
  20. +viewer
  21. = title
  22. .swimlane-header-menu
  23. unless currentUser.isCommentOnly
  24. if currentUser.isBoardAdmin
  25. a.fa.fa-plus.js-open-add-swimlane-menu.swimlane-header-plus-icon(title="{{_ 'add-swimlane'}}")
  26. a.fa.fa-navicon.js-open-swimlane-menu(title="{{_ 'swimlaneActionPopup-title'}}")
  27. unless isMiniScreen
  28. if isShowDesktopDragHandles
  29. a.swimlane-header-handle.handle.fa.fa-arrows.js-swimlane-header-handle
  30. if isMiniScreen
  31. a.swimlane-header-miniscreen-handle.handle.fa.fa-arrows.js-swimlane-header-handle
  32. template(name="editSwimlaneTitleForm")
  33. .list-composer
  34. input.list-name-input.full-line(type="text" value=title autofocus)
  35. .edit-controls.clearfix
  36. button.primary.confirm(type="submit") {{_ 'save'}}
  37. a.fa.fa-times-thin.js-close-inlined-form
  38. template(name="swimlaneActionPopup")
  39. unless currentUser.isCommentOnly
  40. ul.pop-over-list
  41. li: a.js-set-swimlane-color {{_ 'select-color'}}
  42. unless this.isTemplateContainer
  43. hr
  44. ul.pop-over-list
  45. li: a.js-close-swimlane {{_ 'archive-swimlane'}}
  46. ul.pop-over-list
  47. li: a.js-copy-swimlane {{_ 'copy-swimlane'}}
  48. ul.pop-over-list
  49. li: a.js-move-swimlane {{_ 'move-swimlane'}}
  50. template(name="swimlaneAddPopup")
  51. unless currentUser.isCommentOnly
  52. form
  53. input.swimlane-name-input.full-line(type="text" placeholder="{{_ 'add-swimlane'}}"
  54. autocomplete="off" autofocus)
  55. .edit-controls.clearfix
  56. button.primary.confirm(type="submit") {{_ 'add'}}
  57. unless currentBoard.isTemplatesBoard
  58. unless currentBoard.isTemplateBoard
  59. span.quiet
  60. | {{_ 'or'}}
  61. a.js-swimlane-template {{_ 'template'}}
  62. template(name="setSwimlaneColorPopup")
  63. form.edit-label
  64. .palette-colors: each colors
  65. span.card-label.palette-color.js-palette-color(class="card-details-{{color}}")
  66. if(isSelected color)
  67. i.fa.fa-check
  68. button.primary.confirm.js-submit {{_ 'save'}}
  69. button.js-remove-color.negate.wide.right {{_ 'unset-color'}}
  70. template(name="swimlaneDeletePopup")
  71. p {{_ "swimlane-delete-pop"}}
  72. button.js-confirm.negate.full(type="submit") {{_ 'delete'}}