sidebar.jade 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624
  1. template(name="sidebar")
  2. .board-sidebar.sidebar(class="{{#if isOpen}}is-open{{/if}}")
  3. //a.sidebar-tongue.js-toggle-sidebar(
  4. // class="{{#if isTongueHidden}}is-hidden{{/if}}",
  5. // title="{{showTongueTitle}}")
  6. // i.fa.fa-navicon
  7. .sidebar-shadow
  8. .sidebar-content.js-board-sidebar-content
  9. //a.hide-btn.js-hide-sidebar
  10. // i.fa.fa-navicon
  11. unless isDefaultView
  12. h2
  13. a.fa.fa-chevron-left.js-back-home
  14. = getViewTitle
  15. +Template.dynamic(template=getViewTemplate)
  16. template(name='homeSidebar')
  17. +membersWidget
  18. hr
  19. +labelsWidget
  20. ul#cards.label-text-hidden
  21. a.flex.js-toggle-minicard-label-text(title="{{_ 'hide-minicard-label-text'}}")
  22. span {{_ 'hide-minicard-label-text'}}
  23. b  
  24. .materialCheckBox(class="{{#if hiddenMinicardLabelText}}is-checked{{/if}}")
  25. hr
  26. unless currentUser.isNoComments
  27. h3
  28. i.fa.fa-comments-o
  29. | {{_ 'activities'}}
  30. +activities(mode="board")
  31. template(name="membersWidget")
  32. if AtLeastOneOrgWasCreated
  33. .board-widget.board-widget-members
  34. h3
  35. i.fa.fa-users
  36. | {{_ 'organizations'}}
  37. .board-widget-content
  38. +boardOrgGeneral
  39. .clearfix
  40. br
  41. hr
  42. if AtLeastOneTeamWasCreated
  43. .board-widget.board-widget-members
  44. h3
  45. i.fa.fa-users
  46. | {{_ 'teams'}}
  47. .board-widget-content
  48. +boardTeamGeneral
  49. .clearfix
  50. br
  51. hr
  52. .board-widget.board-widget-members
  53. h3
  54. i.fa.fa-users
  55. | {{_ 'members'}}
  56. .sidebar-shortcuts
  57. a.board-header-btn.js-shortcuts(title="{{_ 'keyboard-shortcuts' }}")
  58. i.fa.fa-keyboard-o
  59. span {{_ 'keyboard-shortcuts' }}
  60. unless currentUser.isCommentOnly
  61. unless currentUser.isWorker
  62. a.board-header-btn.js-open-board-menu(title="{{_ 'boardMenuPopup-title'}}").right
  63. i.board-header-btn-icon.fa.fa-cog
  64. .board-widget-content
  65. each currentBoard.activeMembers
  66. +userAvatar(userId=this.userId showStatus=true)
  67. if isSandstorm
  68. if currentUser.isBoardMember
  69. a.member.add-member.sandstorm-powerbox-request-identity(title="{{_ 'add-members'}}")
  70. i.fa.fa-plus
  71. else if currentUser.isBoardAdmin
  72. a.member.add-member.js-manage-board-members(title="{{_ 'add-members'}}")
  73. i.fa.fa-plus
  74. .clearfix
  75. if isInvited
  76. hr
  77. p
  78. i.fa.fa-exclamation-circle
  79. | {{_ 'just-invited'}}
  80. button.js-member-invite-accept.primary {{_ 'accept'}}
  81. button.js-member-invite-decline {{_ 'decline'}}
  82. template(name="boardOrgGeneral")
  83. table
  84. tbody
  85. tr
  86. th
  87. | {{_ 'add-organizations'}}
  88. br
  89. i.addOrganizationsLabel
  90. | {{_ 'to-create-organizations-contact-admin'}}
  91. br
  92. i.addOrganizationsLabel
  93. | {{_ 'add-organizations-label'}}
  94. th
  95. if currentUser.isBoardAdmin
  96. a.member.orgOrTeamMember.add-member.js-manage-board-addOrg(title="{{_ 'add-members'}}")
  97. i.addTeamFaPlus.fa.fa-plus
  98. .divaddfaplusminus
  99. | {{_ 'add'}}
  100. each org in currentBoard.activeOrgs
  101. +boardOrgRow(orgId=org.orgId)
  102. template(name="boardTeamGeneral")
  103. table
  104. tbody
  105. tr
  106. th
  107. | {{_ 'add-teams'}}
  108. br
  109. i.addTeamsLabel
  110. | {{_ 'to-create-teams-contact-admin'}}
  111. br
  112. i.addTeamsLabel
  113. | {{_ 'add-teams-label'}}
  114. th
  115. if currentUser.isBoardAdmin
  116. a.member.orgOrTeamMember.add-member.js-manage-board-addTeam(title="{{_ 'add-members'}}")
  117. i.addTeamFaPlus.fa.fa-plus
  118. .divaddfaplusminus
  119. | {{_ 'add'}}
  120. each currentBoard.activeTeams
  121. +boardTeamRow(teamId=this.teamId)
  122. template(name="boardChangeColorPopup")
  123. .board-backgrounds-list.clearfix
  124. each backgroundColors
  125. .board-background-select.js-select-background
  126. span.background-box(class="board-color-{{this}}")
  127. span {{this}}
  128. if isSelected
  129. i.fa.fa-check
  130. template(name="boardInfoOnMyBoardsPopup")
  131. form.board-info-on-my-boards
  132. h3 {{_ 'show-at-all-boards-page'}}
  133. div.check-div
  134. a.flex.js-field-has-cardcounterlist(class="{{#if allowsCardCounterList}}is-checked{{/if}}")
  135. .materialCheckBox(class="{{#if allowsCardCounterList}}is-checked{{/if}}")
  136. span
  137. i.fa.fa-sign-out
  138. | {{_ 'show-card-counter-per-list'}}
  139. div.check-div
  140. a.flex.js-field-has-boardmemberlist(class="{{#if allowsBoardMemberList}}is-checked{{/if}}")
  141. .materialCheckBox(class="{{#if allowsBoardMemberList}}is-checked{{/if}}")
  142. span
  143. i.fa.fa-hourglass-start
  144. | {{_ 'show-board_members-avatar'}}
  145. template(name="boardCardSettingsPopup")
  146. form.board-card-settings
  147. h3 {{_ 'show-on-card'}}
  148. div.check-div
  149. a.flex.js-field-has-receiveddate(class="{{#if allowsReceivedDate}}is-checked{{/if}}")
  150. .materialCheckBox(class="{{#if allowsReceivedDate}}is-checked{{/if}}")
  151. span
  152. i.fa.fa-sign-out
  153. | {{_ 'card-received'}}
  154. div.check-div
  155. a.flex.js-field-has-startdate(class="{{#if allowsStartDate}}is-checked{{/if}}")
  156. .materialCheckBox(class="{{#if allowsStartDate}}is-checked{{/if}}")
  157. span
  158. i.fa.fa-hourglass-start
  159. | {{_ 'card-start'}}
  160. div.check-div
  161. a.flex.js-field-has-duedate(class="{{#if allowsDueDate}}is-checked{{/if}}")
  162. .materialCheckBox(class="{{#if allowsDueDate}}is-checked{{/if}}")
  163. span
  164. i.fa.fa-sign-in
  165. | {{_ 'card-due'}}
  166. div.check-div
  167. a.flex.js-field-has-enddate(class="{{#if allowsEndDate}}is-checked{{/if}}")
  168. .materialCheckBox(class="{{#if allowsEndDate}}is-checked{{/if}}")
  169. span
  170. i.fa.fa-hourglass-end
  171. | {{_ 'card-end'}}
  172. div.check-div
  173. a.flex.js-field-has-members(class="{{#if allowsMembers}}is-checked{{/if}}")
  174. .materialCheckBox(class="{{#if allowsMembers}}is-checked{{/if}}")
  175. span
  176. i.fa.fa-users
  177. | {{_ 'members'}}
  178. div.check-div
  179. a.flex.js-field-has-creator(class="{{#if allowsCreator}}is-checked{{/if}}")
  180. .materialCheckBox(class="{{#if allowsCreator}}is-checked{{/if}}")
  181. span
  182. i.fa.fa-user
  183. | {{_ 'creator'}}
  184. div.check-div
  185. a.flex.js-field-has-assignee(class="{{#if allowsAssignee}}is-checked{{/if}}")
  186. .materialCheckBox(class="{{#if allowsAssignee}}is-checked{{/if}}")
  187. span
  188. i.fa.fa-user
  189. | {{_ 'assignee'}}
  190. div.check-div
  191. a.flex.js-field-has-assigned-by(class="{{#if allowsAssignedBy}}is-checked{{/if}}")
  192. .materialCheckBox(class="{{#if allowsAssignedBy}}is-checked{{/if}}")
  193. span
  194. i.fa.fa-shopping-cart
  195. | {{_ 'assigned-by'}}
  196. div.check-div
  197. a.flex.js-field-has-requested-by(class="{{#if allowsRequestedBy}}is-checked{{/if}}")
  198. .materialCheckBox(class="{{#if allowsRequestedBy}}is-checked{{/if}}")
  199. span
  200. i.fa.fa-user-plus
  201. | {{_ 'requested-by'}}
  202. div.check-div
  203. a.flex.js-field-has-card-sorting-by-number(class="{{#if allowsCardSortingByNumber}}is-checked{{/if}}")
  204. .materialCheckBox(class="{{#if allowsCardSortingByNumber}}is-checked{{/if}}")
  205. span
  206. i.fa.fa-sort
  207. | {{_ 'card-sorting-by-number'}}
  208. div.check-div
  209. a.flex.js-field-has-card-show-lists(class="{{#if allowsShowLists}}is-checked{{/if}}")
  210. .materialCheckBox(class="{{#if allowsShowLists}}is-checked{{/if}}")
  211. span
  212. i.fa.fa-list
  213. | {{_ 'card-show-lists'}}
  214. div.check-div
  215. a.flex.js-field-has-labels(class="{{#if allowsLabels}}is-checked{{/if}}")
  216. .materialCheckBox(class="{{#if allowsLabels}}is-checked{{/if}}")
  217. span
  218. i.fa.fa-tags
  219. | {{_ 'labels'}}
  220. div.check-div
  221. a.flex.js-field-has-card-number(class="{{#if allowsCardNumber}}is-checked{{/if}}")
  222. .materialCheckBox(class="{{#if allowsCardNumber}}is-checked{{/if}}")
  223. span
  224. i.fa.fa-hashtag
  225. | {{_ 'card'}}
  226. | {{_ 'number'}}
  227. div.check-div
  228. a.flex.js-field-has-description-title(class="{{#if allowsDescriptionTitle}}is-checked{{/if}}")
  229. .materialCheckBox(class="{{#if allowsDescriptionTitle}}is-checked{{/if}}")
  230. span
  231. i.fa.fa-align-left
  232. | {{_ 'description'}}
  233. | {{_ 'title'}}
  234. div.check-div
  235. a.flex.js-field-has-description-text(class="{{#if allowsDescriptionText}}is-checked{{/if}}")
  236. .materialCheckBox(class="{{#if allowsDescriptionText}}is-checked{{/if}}")
  237. span
  238. i.fa.fa-align-left
  239. | {{_ 'description'}}
  240. | {{_ 'custom-field-text'}}
  241. div.check-div
  242. a.flex.js-field-has-checklists(class="{{#if allowsChecklists}}is-checked{{/if}}")
  243. .materialCheckBox(class="{{#if allowsChecklists}}is-checked{{/if}}")
  244. span
  245. i.fa.fa-check
  246. | {{_ 'checklists'}}
  247. div.check-div
  248. a.flex.js-field-has-subtasks(class="{{#if allowsSubtasks}}is-checked{{/if}}")
  249. .materialCheckBox(class="{{#if allowsSubtasks}}is-checked{{/if}}")
  250. span
  251. i.fa.fa-sitemap
  252. | {{_ 'subtasks'}}
  253. div.check-div
  254. a.flex.js-field-has-attachments(class="{{#if allowsAttachments}}is-checked{{/if}}")
  255. .materialCheckBox(class="{{#if allowsAttachments}}is-checked{{/if}}")
  256. span
  257. i.fa.fa-paperclip
  258. | {{_ 'attachments'}}
  259. //div.check-div
  260. // a.flex.js-field-has-comments(class="{{#if allowsComments}}is-checked{{/if}}")
  261. // .materialCheckBox(class="{{#if allowsComments}}is-checked{{/if}}")
  262. // span
  263. // i.fa.fa-comment-o
  264. // | {{_ 'comment'}}
  265. //div.check-div
  266. // a.flex.js-field-has-activities(class="{{#if allowsActivities}}is-checked{{/if}}")
  267. // .materialCheckBox(class="{{#if allowsActivities}}is-checked{{/if}}")
  268. // span
  269. // i.fa.fa-history
  270. // | {{_ 'activities'}}
  271. template(name="boardMinicardSettingsPopup")
  272. form.board-minicard-settings
  273. h3 {{_ 'show-on-minicard'}}
  274. div.check-div
  275. a.flex.js-field-has-description-text-on-minicard(class="{{#if allowsDescriptionTextOnMinicard}}is-checked{{/if}}")
  276. .materialCheckBox(class="{{#if allowsDescriptionTextOnMinicard}}is-checked{{/if}}")
  277. span
  278. i.fa.fa-align-left
  279. | {{_ 'description-on-minicard'}}
  280. template(name="boardSubtaskSettingsPopup")
  281. form.board-subtask-settings
  282. h3 {{_ 'show-parent-in-minicard'}}
  283. a#prefix-with-full-path.flex.js-field-show-parent-in-minicard(class="{{#if $eq presentParentTask 'prefix-with-full-path'}}is-checked{{/if}}")
  284. .materialCheckBox(class="{{#if $eq presentParentTask 'prefix-with-full-path'}}is-checked{{/if}}")
  285. span {{_ 'prefix-with-full-path'}}
  286. a#prefix-with-parent.flex.js-field-show-parent-in-minicard(class="{{#if $eq presentParentTask 'prefix-with-parent'}}is-checked{{/if}}")
  287. .materialCheckBox(class="{{#if $eq presentParentTask 'prefix-with-parent'}}is-checked{{/if}}")
  288. span {{_ 'prefix-with-parent'}}
  289. a#subtext-with-full-path.flex.js-field-show-parent-in-minicard(class="{{#if $eq presentParentTask 'subtext-with-full-path'}}is-checked{{/if}}")
  290. .materialCheckBox(class="{{#if $eq presentParentTask 'subtext-with-full-path'}}is-checked{{/if}}")
  291. span {{_ 'subtext-with-full-path'}}
  292. a#subtext-with-parent.flex.js-field-show-parent-in-minicard(class="{{#if $eq presentParentTask 'subtext-with-parent'}}is-checked{{/if}}")
  293. .materialCheckBox(class="{{#if $eq presentParentTask 'subtext-with-parent'}}is-checked{{/if}}")
  294. span {{_ 'subtext-with-parent'}}
  295. a#no-parent.flex.js-field-show-parent-in-minicard(class="{{#if $eq presentParentTask 'no-parent'}}is-checked{{/if}}")
  296. .materialCheckBox(class="{{#if $eq presentParentTask 'no-parent'}}is-checked{{/if}}")
  297. span {{_ 'no-parent'}}
  298. div
  299. hr
  300. div.check-div
  301. a.flex.js-field-has-subtasks(class="{{#if allowsSubtasks}}is-checked{{/if}}")
  302. .materialCheckBox(class="{{#if allowsSubtasks}}is-checked{{/if}}")
  303. span {{_ 'show-subtasks-field'}}
  304. label
  305. | {{_ 'deposit-subtasks-board'}}
  306. select.js-field-deposit-board(disabled="{{#unless allowsSubtasks}}disabled{{/unless}}")
  307. each boards
  308. if isBoardSelected
  309. option(value=_id selected="selected") {{title}}
  310. else
  311. option(value=_id) {{title}}
  312. if isNullBoardSelected
  313. option(value='null' selected="selected") {{_ 'custom-field-dropdown-none'}}
  314. else
  315. option(value='null') {{_ 'custom-field-dropdown-none'}}
  316. div
  317. hr
  318. label
  319. | {{_ 'deposit-subtasks-list'}}
  320. select.js-field-deposit-list(disabled="{{#unless hasLists}}disabled{{/unless}}")
  321. each lists
  322. if isListSelected
  323. option(value=_id selected="selected") {{title}}
  324. else
  325. option(value=_id) {{title}}
  326. template(name="chooseBoardSource")
  327. ul.pop-over-list
  328. li
  329. a(href="{{pathFor '/import/trello'}}") {{_ 'from-trello'}}
  330. li
  331. a(href="{{pathFor '/import/wekan'}}") {{_ 'from-wekan'}}
  332. li
  333. a(href="{{pathFor '/import/csv'}}") {{_ 'from-csv'}}
  334. template(name="archiveBoardPopup")
  335. p {{_ 'close-board-pop'}}
  336. button.js-confirm.negate.full(type="submit")
  337. i.fa.fa-archive
  338. | {{_ 'archive'}}
  339. template(name="outgoingWebhooksPopup")
  340. each integrations
  341. form.integration-form
  342. a.flex
  343. span {{_ 'disable-webhook'}}
  344. b  
  345. .materialCheckBox(class="{{#unless enabled}}is-checked{{/unless}}")
  346. input.js-outgoing-webhooks-title(placeholder="{{_ 'webhook-title'}}" type="text" name="title" value=title)
  347. input.js-outgoing-webhooks-url(type="text" name="url" value=url)
  348. input.js-outgoing-webhooks-token(placeholder="{{_ 'webhook-token' }}" type="text" value=token name="token")
  349. select.js-outgoing-webhooks-type(name="type")
  350. each _type in types
  351. if($eq _type this.type)
  352. option(value=_type selected="selected") {{_ _type}}
  353. else
  354. option(value=_type) {{_ _type}}
  355. input(type="hidden" value=this.type name="_type")
  356. input(type="hidden" value=_id name="id")
  357. input.primary.wide(type="submit" value="{{_ 'save'}}")
  358. form.integration-form
  359. input.js-outgoing-webhooks-title(placeholder="{{_ 'webhook-title'}}" type="text" name="title")
  360. input.js-outgoing-webhooks-url(placeholder="{{_ 'URL' }}" type="text" name="url")
  361. input.js-outgoing-webhooks-token(placeholder="{{_ 'webhook-token' }}" type="text" name="token")
  362. select.js-outgoing-webhooks-type(name="type")
  363. each _type in types
  364. option(value=_type) {{_ _type}}
  365. input.primary.wide(type="submit" value="{{_ 'create'}}")
  366. template(name="boardMenuPopup")
  367. ul.pop-over-list
  368. if currentUser.isBoardAdmin
  369. li
  370. a.js-open-rules-view(title="{{_ 'rules'}}")
  371. i.fa.fa-magic
  372. | {{_ 'rules'}}
  373. if currentUser.isBoardAdmin
  374. li
  375. a.js-custom-fields
  376. i.fa.fa-list-alt
  377. | {{_ 'custom-fields'}}
  378. li
  379. a.js-open-archives
  380. i.fa.fa-archive
  381. | {{_ 'archived-items'}}
  382. if currentUser.isBoardAdmin
  383. li
  384. a.js-change-board-color
  385. i.fa.fa-paint-brush
  386. | {{_ 'board-change-color'}}
  387. if currentUser.isBoardAdmin
  388. li
  389. a.js-board-info-on-my-boards(title="{{_ 'board-info-on-my-boards'}}")
  390. i.fa.fa-id-card-o
  391. | {{_ 'board-info-on-my-boards'}}
  392. hr
  393. ul.pop-over-list
  394. if withApi
  395. li
  396. a.js-export-board
  397. i.fa.fa-share-alt
  398. | {{_ 'export-board'}}
  399. if currentUser.isBoardAdmin
  400. li
  401. a.js-outgoing-webhooks
  402. i.fa.fa-globe
  403. | {{_ 'outgoing-webhooks'}}
  404. li
  405. a.js-card-settings
  406. i.fa.fa-id-card-o
  407. | {{_ 'card-settings'}}
  408. li
  409. a.js-minicard-settings
  410. i.fa.fa-id-card-o
  411. | {{_ 'minicard-settings'}}
  412. li
  413. a.js-subtask-settings
  414. i.fa.fa-sitemap
  415. | {{_ 'subtask-settings'}}
  416. unless currentBoard.isTemplatesBoard
  417. if currentUser.isBoardAdmin
  418. hr
  419. ul.pop-over-list
  420. li
  421. a.js-archive-board
  422. i.fa.fa-arrow-right
  423. i.fa.fa-archive
  424. | {{_ 'archive-board'}}
  425. template(name="exportBoard")
  426. ul.pop-over-list
  427. li
  428. a.download-json-link(href="{{exportUrl}}", download="{{exportJsonFilename}}")
  429. i.fa.fa-share-alt
  430. | {{_ 'export-board-json'}}
  431. li
  432. a(href="{{exportUrlExcel}}", download="{{exportFilenameExcel}}")
  433. i.fa.fa-share-alt
  434. | {{_ 'export-board-excel'}}
  435. li
  436. a(href="{{exportCsvUrl}}", download="{{exportCsvFilename}}")
  437. i.fa.fa-share-alt
  438. | {{_ 'export-board-csv'}} ,
  439. li
  440. a(href="{{exportScsvUrl}}", download="{{exportCsvFilename}}")
  441. i.fa.fa-share-alt
  442. | {{_ 'export-board-csv'}} ;
  443. li
  444. a(href="{{exportTsvUrl}}", download="{{exportTsvFilename}}")
  445. i.fa.fa-share-alt
  446. | {{_ 'export-board-tsv'}}
  447. li
  448. a.html-export-board
  449. i.fa.fa-archive
  450. | {{_ 'export-board-html'}}
  451. template(name="labelsWidget")
  452. .board-widget.board-widget-labels
  453. h3
  454. i.fa.fa-tags
  455. | {{_ 'labels'}}
  456. .board-widget-content
  457. each currentBoard.labels
  458. a.card-label(class="card-label-{{color}}"
  459. class="{{#if currentUser.isNotCommentOnly}}{{#if currentUser.isNotWorker}}js-label{{/if}}{{/if}}")
  460. span.card-label-name
  461. +viewer
  462. = name
  463. if currentUser.isBoardAdmin
  464. a.card-label.add-label.js-add-label(title="{{_ 'label-create'}}")
  465. i.fa.fa-plus
  466. template(name="memberPopup")
  467. .board-member-menu
  468. .miniprofile-header
  469. +userAvatar(userId=user._id showEdit=true)
  470. .info
  471. h3
  472. .js-profile= user.profile.fullname
  473. p.quiet @#{user.username}
  474. if isInvited
  475. p
  476. i.fa.fa-exclamation-circle
  477. | {{_ 'not-accepted-yet'}}
  478. ul.pop-over-list
  479. li
  480. a.js-filter-member {{_ 'filter-cards'}}
  481. if currentUser.isBoardAdmin
  482. li
  483. a.js-change-role
  484. | {{_ 'change-permissions'}}
  485. span.quiet (#{memberType})
  486. unless currentUser.isWorker
  487. li
  488. if $eq currentUser._id userId
  489. a.js-leave-member {{_ 'leave-board'}}
  490. else if currentUser.isBoardAdmin
  491. a.js-remove-member {{_ 'remove-from-board'}}
  492. template(name="removeMemberPopup")
  493. p {{_ 'remove-member-pop' name=user.profile.fullname username=user.username boardTitle=board.title}}
  494. button.js-confirm.negate.full(type="submit") {{_ 'remove-member'}}
  495. template(name="leaveBoardPopup")
  496. p {{_ 'leave-board-pop' boardTitle=board.title}}
  497. button.js-confirm.negate.full(type="submit") {{_ 'leave-board'}}
  498. template(name="addBoardOrgPopup")
  499. select.js-boardOrgs#jsBoardOrgs
  500. option(value="-1") {{_ 'organizations'}} :
  501. each value in orgsDatas
  502. option(value="{{value._id}}") {{value.orgDisplayName}}
  503. template(name="removeBoardOrgPopup")
  504. form
  505. input.hide#hideOrgId(type="text" value=org._id)
  506. label
  507. | {{_ 'remove-organization-from-board'}}
  508. br
  509. hr
  510. div.buttonsContainer
  511. input.primary.wide.leaveBoardBtn#leaveBoardBtn(type="submit" value="{{_ 'confirm-btn'}}")
  512. input.primary.wide.cancelLeaveBoardBtn#cancelLeaveBoardBtn(type="submit" value="{{_ 'cancel'}}")
  513. template(name="addBoardTeamPopup")
  514. select.js-boardTeams#jsBoardTeams
  515. option(value="-1") {{_ 'teams'}} :
  516. each value in teamsDatas
  517. option(value="{{value._id}}") {{_ value.teamDisplayName}}
  518. template(name="removeBoardTeamPopup")
  519. form
  520. input.hide#hideTeamId(type="text" value=team._id)
  521. label
  522. | {{_ 'remove-team-from-table'}}
  523. br
  524. hr
  525. div.buttonsContainer
  526. input.primary.wide.leaveBoardBtn#leaveBoardTeamBtn(type="submit" value="{{_ 'confirm-btn'}}")
  527. input.primary.wide.cancelLeaveBoardBtn#cancelLeaveBoardTeamBtn(type="submit" value="{{_ 'cancel'}}")
  528. template(name="addMemberPopup")
  529. .js-search-member
  530. +esInput(index="users")
  531. if loading.get
  532. +spinner
  533. else if error.get
  534. .warning {{_ error.get}}
  535. else
  536. ul.pop-over-list
  537. +esEach(index="users")
  538. li.item.js-member-item(class="{{#if isBoardMember}}disabled{{/if}}")
  539. a.name.js-select-member(title="{{profile.fullname}} ({{username}})")
  540. +userAvatar(userId=_id esSearch=true)
  541. span.full-name
  542. = profile.fullname
  543. | (<span class="username">{{username}}</span>)
  544. if isBoardMember
  545. .quiet ({{_ 'joined'}})
  546. +ifEsIsSearching(index='users')
  547. +spinner
  548. +ifEsHasNoResults(index="users")
  549. .manage-member-section
  550. p.quiet {{_ 'no-results'}}
  551. button.js-email-invite.primary.full {{_ 'email-invite'}}
  552. template(name="changePermissionsPopup")
  553. ul.pop-over-list
  554. li
  555. a(class="{{#if isLastAdmin}}disabled{{else}}js-set-admin{{/if}}")
  556. | {{_ 'admin'}}
  557. if isAdmin
  558. i.fa.fa-check
  559. span.sub-name {{_ 'admin-desc'}}
  560. li
  561. a(class="{{#if isLastAdmin}}disabled{{else}}js-set-normal{{/if}}")
  562. | {{_ 'normal'}}
  563. if isNormal
  564. i.fa.fa-check
  565. span.sub-name {{_ 'normal-desc'}}
  566. li
  567. a(class="{{#if isLastAdmin}}disabled{{else}}js-set-no-comments{{/if}}")
  568. | {{_ 'no-comments'}}
  569. if isNoComments
  570. i.fa.fa-check
  571. span.sub-name {{_ 'no-comments-desc'}}
  572. li
  573. a(class="{{#if isLastAdmin}}disabled{{else}}js-set-comment-only{{/if}}")
  574. | {{_ 'comment-only'}}
  575. if isCommentOnly
  576. i.fa.fa-check
  577. span.sub-name {{_ 'comment-only-desc'}}
  578. li
  579. a(class="{{#if isLastAdmin}}disabled{{else}}js-set-worker{{/if}}")
  580. | {{_ 'worker'}}
  581. if isWorker
  582. i.fa.fa-check
  583. span.sub-name {{_ 'worker-desc'}}
  584. if isLastAdmin
  585. hr
  586. p.quiet.bottom {{_ 'last-admin-desc'}}