settingBody.jade 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  1. template(name="setting")
  2. .setting-content
  3. unless currentUser.isAdmin
  4. | {{_ 'error-notAuthorized'}}
  5. else
  6. .content-title
  7. i.fa.fa-cog
  8. span {{_ 'settings'}}
  9. .content-body
  10. .side-menu
  11. ul
  12. li.active
  13. a.js-setting-menu(data-id="registration-setting")
  14. i.fa.fa-sign-in
  15. | {{_ 'registration'}}
  16. unless isSandstorm
  17. li
  18. a.js-setting-menu(data-id="email-setting")
  19. i.fa.fa-envelope
  20. | {{_ 'email'}}
  21. li
  22. a.js-setting-menu(data-id="account-setting")
  23. i.fa.fa-users
  24. | {{_ 'accounts'}}
  25. li
  26. a.js-setting-menu(data-id="tableVisibilityMode-setting")
  27. i.fa.fa-eye
  28. | {{_ 'tableVisibilityMode'}}
  29. li
  30. a.js-setting-menu(data-id="announcement-setting")
  31. i.fa.fa-bullhorn
  32. | {{_ 'admin-announcement'}}
  33. li
  34. a.js-setting-menu(data-id="accessibility-setting")
  35. i.fa.fa-universal-access
  36. | {{_ 'accessibility'}}
  37. li
  38. a.js-setting-menu(data-id="layout-setting")
  39. i.fa.fa-object-group
  40. | {{_ 'layout'}}
  41. li
  42. a.js-setting-menu(data-id="webhook-setting")
  43. i.fa.fa-globe
  44. | {{_ 'global-webhook'}}
  45. li
  46. a.js-setting-menu(data-id="attachment-settings")
  47. i.fa.fa-paperclip
  48. | {{_ 'attachment-settings'}}
  49. .main-body
  50. if loading.get
  51. +spinner
  52. else if generalSetting.get
  53. +general
  54. else if emailSetting.get
  55. unless isSandstorm
  56. +email
  57. else if accountSetting.get
  58. +accountSettings
  59. else if tableVisibilityModeSetting.get
  60. +tableVisibilityModeSettings
  61. else if announcementSetting.get
  62. +announcementSettings
  63. else if accessibilitySetting.get
  64. +accessibilitySettings
  65. else if layoutSetting.get
  66. +layoutSettings
  67. else if webhookSetting.get
  68. +webhookSettings
  69. else if attachmentSettings.get
  70. +attachmentSettings
  71. template(name="webhookSettings")
  72. span
  73. +outgoingWebhooksPopup
  74. template(name="general")
  75. ul#registration-setting.setting-detail
  76. li
  77. a.flex.js-toggle-forgot-password
  78. .materialCheckBox(class="{{#if currentSetting.disableForgotPassword}}is-checked{{/if}}")
  79. span {{_ 'disable-forgot-password'}}
  80. li
  81. a.flex.js-toggle-registration
  82. .materialCheckBox(class="{{#if currentSetting.disableRegistration}}is-checked{{/if}}")
  83. span {{_ 'disable-self-registration'}}
  84. li
  85. .invite-people(class="{{#if currentSetting.disableRegistration}}{{else}}hide{{/if}}")
  86. ul
  87. li
  88. .title {{_ 'invite-people'}}
  89. textarea#email-to-invite.wekan-form-control(rows='5', placeholder="{{_ 'email-addresses'}}")
  90. li
  91. .title {{_ 'to-boards'}}
  92. .bg-white
  93. each boards
  94. a.option.flex.js-toggle-board-choose(id= _id)
  95. .materialCheckBox(data-id= _id)
  96. span= title
  97. li
  98. button.js-email-invite.primary {{_ 'invite'}}
  99. template(name='email')
  100. ul#email-setting.setting-detail
  101. //if isSandstorm
  102. // li.smtp-form
  103. // .title {{_ 'smtp-host'}}
  104. // .description {{_ 'smtp-host-description'}}
  105. // .form-group
  106. // input.wekan-form-control#mail-server-host(type="text", placeholder="smtp.domain.com" value="{{currentSetting.mailServer.host}}")
  107. // li.smtp-form
  108. // .title {{_ 'smtp-port'}}
  109. // .description {{_ 'smtp-port-description'}}
  110. // .form-group
  111. // input.wekan-form-control#mail-server-port(type="text", placeholder="25" value="{{currentSetting.mailServer.port}}")
  112. // li.smtp-form
  113. // .title {{_ 'smtp-username'}}
  114. // .form-group
  115. // input.wekan-form-control#mail-server-u"accounts-allowUserNameChange": "Allow Username Change",sername(type="text", placeholder="{{_ 'username'}}" value="{{currentSetting.mailServer.username}}")
  116. // li.smtp-form
  117. // .title {{_ 'smtp-password'}}
  118. // .form-group
  119. // input.wekan-form-control#mail-server-password(type="password", placeholder="{{_ 'password'}}" value="")
  120. // li.smtp-form
  121. // .title {{_ 'smtp-tls'}}
  122. // .form-group
  123. // a.flex.js-toggle-tls
  124. // .materialCheckBox#mail-server-tls(class="{{#if currentSetting.mailServer.enableTLS}}is-checked{{/if}}")
  125. //
  126. // span {{_ 'smtp-tls-description'}}
  127. //
  128. // li.smtp-form
  129. // .title {{_ 'send-from'}}
  130. // .form-group
  131. // input.wekan-form-control#mail-server-from(type="email", placeholder="no-reply@domain.com" value="{{currentSetting.mailServer.from}}")
  132. //
  133. // li
  134. // button.js-save.primary {{_ 'save'}}
  135. li
  136. button.js-send-smtp-test-email.primary {{_ 'send-smtp-test'}}
  137. template(name='tableVisibilityModeSettings')
  138. ul#tableVisibilityMode-setting.setting-detail
  139. li.tableVisibilityMode-form
  140. .title {{_ 'tableVisibilityMode-allowPrivateOnly'}}
  141. .form-group.flex
  142. input.wekan-form-control#accounts-allowPrivateOnly(type="radio" name="allowPrivateOnly" value="true" checked="{{#if allowPrivateOnly}}checked{{/if}}")
  143. label {{_ 'yes'}}
  144. input.wekan-form-control#accounts-allowPrivateOnly(type="radio" name="allowPrivateOnly" value="false" checked="{{#unless allowPrivateOnly}}checked{{/unless}}")
  145. label {{_ 'no'}}
  146. button.js-tableVisibilityMode-save.primary {{_ 'save'}}
  147. template(name='accountSettings')
  148. ul#account-setting.setting-detail
  149. li.accounts-form
  150. .title {{_ 'accounts-allowEmailChange'}}
  151. .form-group.flex
  152. input.wekan-form-control#accounts-allowEmailChange(type="radio" name="allowEmailChange" value="true" checked="{{#if allowEmailChange}}checked{{/if}}")
  153. label {{_ 'yes'}}
  154. input.wekan-form-control#accounts-allowEmailChange(type="radio" name="allowEmailChange" value="false" checked="{{#unless allowEmailChange}}checked{{/unless}}")
  155. label {{_ 'no'}}
  156. .title {{_ 'accounts-allowUserNameChange'}}
  157. .form-group.flex
  158. input.wekan-form-control#accounts-allowUserNameChange(type="radio" name="allowUserNameChange" value="true" checked="{{#if allowUserNameChange}}checked{{/if}}")
  159. label {{_ 'yes'}}
  160. input.wekan-form-control#accounts-allowUserNameChange(type="radio" name="allowUserNameChange" value="false" checked="{{#unless allowUserNameChange}}checked{{/unless}}")
  161. label {{_ 'no'}}
  162. .title {{_ 'accounts-allowUserDelete'}}
  163. .form-group.flex
  164. input.wekan-form-control#accounts-allowUserDelete(type="radio" name="allowUserDelete" value="true" checked="{{#if allowUserDelete}}checked{{/if}}")
  165. label {{_ 'yes'}}
  166. input.wekan-form-control#accounts-allowUserDelete(type="radio" name="allowUserDelete" value="false" checked="{{#unless allowUserDelete}}checked{{/unless}}")
  167. label {{_ 'no'}}
  168. button.js-accounts-save.primary {{_ 'save'}}
  169. // Brute force lockout settings moved to People/Locked Users section
  170. template(name='announcementSettings')
  171. ul#announcement-setting.setting-detail
  172. li
  173. a.flex.js-toggle-activemessage
  174. .materialCheckBox(class="{{#if currentAnnouncements.enabled}}is-checked{{/if}}")
  175. span {{_ 'admin-announcement-active'}}
  176. li
  177. .admin-announcement(class="{{#if currentAnnouncements.enabled}}{{else}}hide{{/if}}")
  178. ul
  179. li
  180. .title {{_ 'admin-announcement-title'}}
  181. textarea#admin-announcement.wekan-form-control= currentAnnouncements.body
  182. li
  183. button.js-announcement-save.primary {{_ 'save'}}
  184. template(name='accessibilitySettings')
  185. ul#accessibility-setting.setting-detail
  186. li
  187. a(href="/accessibility" style="text-decoration: underline; color: blue;") {{_ 'accessibility'}}
  188. li
  189. a.flex.js-toggle-accessibility
  190. .materialCheckBox(class="{{#if currentAccessibility.enabled}}is-checked{{/if}}")
  191. span {{_ 'accessibility-page-enabled'}}
  192. li
  193. .accessibility-content(class="{{#if currentAccessibility.enabled}}{{else}}hide{{/if}}")
  194. ul
  195. li
  196. .title {{_ 'accessibility-title'}}
  197. textarea#admin-accessibility-title.wekan-form-control= currentAccessibility.title
  198. li
  199. .title {{_ 'accessibility-content'}}
  200. textarea#admin-accessibility-content.wekan-form-control= currentAccessibility.body
  201. li
  202. button.js-accessibility-save.primary {{_ 'save'}}
  203. template(name='layoutSettings')
  204. ul#layout-setting.setting-detail
  205. li
  206. button.js-all-boards-hide-activities.primary {{_ 'hide-activities-of-all-boards'}}
  207. li.layout-form
  208. .title {{_ 'oidc-button-text'}}
  209. .form-group
  210. input.wekan-form-control#oidcBtnTextvalue(type="text", placeholder="" value="{{currentSetting.oidcBtnText}}")
  211. li.layout-form
  212. .title {{_ 'can-invite-if-same-mailDomainName'}}
  213. .form-group
  214. input.wekan-form-control#mailDomainNamevalue(type="text", placeholder="" value="{{currentSetting.mailDomainName}}")
  215. li.layout-form
  216. .title {{_ 'custom-legal-notice-link-url'}}
  217. .form-group
  218. input.wekan-form-control#legalNoticevalue(type="text", placeholder="" value="{{currentSetting.legalNotice}}")
  219. li.layout-form
  220. .title {{_ 'display-authentication-method'}}
  221. .form-group.flex
  222. input.wekan-form-control#display-authentication-method(type="radio" name="displayAuthenticationMethod" value="true" checked="{{#if currentSetting.displayAuthenticationMethod}}checked{{/if}}")
  223. label {{_ 'yes'}}
  224. input.wekan-form-control#display-authentication-method(type="radio" name="displayAuthenticationMethod" value="false" checked="{{#unless currentSetting.displayAuthenticationMethod}}checked{{/unless}}")
  225. label {{_ 'no'}}
  226. li.layout-form
  227. .title {{_ 'default-authentication-method'}}
  228. +selectAuthenticationMethod(authenticationMethod=currentSetting.defaultAuthenticationMethod)
  229. li.layout-form
  230. .title {{_ 'wait-spinner'}}
  231. +selectSpinnerName(spinnerName=currentSetting.spinnerName)
  232. li.layout-form
  233. .title {{_ 'custom-product-name'}}
  234. .form-group
  235. input.wekan-form-control#product-name(type="text", placeholder="" value="{{currentSetting.productName}}")
  236. li.layout-form
  237. .title {{_ 'hide-logo'}}
  238. .form-group.flex
  239. input.wekan-form-control#hide-logo(type="radio" name="hideLogo" value="true" checked="{{#if currentSetting.hideLogo}}checked{{/if}}")
  240. label {{_ 'yes'}}
  241. input.wekan-form-control#hide-logo(type="radio" name="hideLogo" value="false" checked="{{#unless currentSetting.hideLogo}}checked{{/unless}}")
  242. label {{_ 'no'}}
  243. li.layout-form
  244. .title {{_ 'custom-login-logo-image-url'}}
  245. .form-group
  246. input.wekan-form-control#custom-login-logo-image-url(type="text", placeholder="" value="{{currentSetting.customLoginLogoImageUrl}}")
  247. li.layout-form
  248. .title {{_ 'custom-login-logo-link-url'}}
  249. .form-group
  250. input.wekan-form-control#custom-login-logo-link-url(type="text", placeholder="" value="{{currentSetting.customLoginLogoLinkUrl}}")
  251. li.layout-form
  252. .title {{_ 'custom-help-link-url'}}
  253. .form-group
  254. input.wekan-form-control#custom-help-link-url(type="text", placeholder="" value="{{currentSetting.customHelpLinkUrl}}")
  255. li.layout-form
  256. .title {{_ 'text-below-custom-login-logo'}}
  257. .form-group
  258. textarea#text-below-custom-login-logo.wekan-form-control= currentSetting.textBelowCustomLoginLogo
  259. li.layout-form
  260. .title {{_ 'custom-top-left-corner-logo-image-url'}}
  261. .form-group
  262. input.wekan-form-control#custom-top-left-corner-logo-image-url(type="text", placeholder="" value="{{currentSetting.customTopLeftCornerLogoImageUrl}}")
  263. li.layout-form
  264. .title {{_ 'custom-top-left-corner-logo-link-url'}}
  265. .form-group
  266. input.wekan-form-control#custom-top-left-corner-logo-link-url(type="text", placeholder="" value="{{currentSetting.customTopLeftCornerLogoLinkUrl}}")
  267. li.layout-form
  268. .title {{_ 'custom-top-left-corner-logo-height'}}
  269. .form-group
  270. input.wekan-form-control#custom-top-left-corner-logo-height(type="text", placeholder="" value="{{currentSetting.customTopLeftCornerLogoHeight}}")
  271. li.layout-form
  272. .title {{_ 'automatic-linked-url-schemes'}}
  273. .form-group
  274. textarea#automatic-linked-url-schemes.wekan-form-control= currentSetting.automaticLinkedUrlSchemes
  275. li.layout-form
  276. .title {{_ 'hide-card-counter-list'}}
  277. .form-group.flex
  278. input.wekan-form-control#hide-card-counter-list(type="radio" name="hideCardCounterList" value="true" checked="{{#if currentSetting.hideCardCounterList}}checked{{/if}}")
  279. label {{_ 'yes'}}
  280. input.wekan-form-control#hide-card-counter-list(type="radio" name="hideCardCounterList" value="false" checked="{{#unless currentSetting.hideCardCounterList}}checked{{/unless}}")
  281. label {{_ 'no'}}
  282. li.layout-form
  283. .title {{_ 'hide-board-member-list'}}
  284. .form-group.flex
  285. input.wekan-form-control#hide-board-member-list(type="radio" name="hideBoardMemberList" value="true" checked="{{#if currentSetting.hideBoardMemberList}}checked{{/if}}")
  286. label {{_ 'yes'}}
  287. input.wekan-form-control#hide-board-member-list(type="radio" name="hideBoardMemberList" value="false" checked="{{#unless currentSetting.hideBoardMemberList}}checked{{/unless}}")
  288. label {{_ 'no'}}
  289. li
  290. button.js-save-layout.primary {{_ 'save'}}
  291. template(name='selectAuthenticationMethod')
  292. select#defaultAuthenticationMethod
  293. each authentications
  294. if isSelected value
  295. option(value="{{value}}" selected) {{_ value}}
  296. else
  297. option(value="{{value}}") {{_ value}}
  298. template(name='selectSpinnerName')
  299. select#spinnerName
  300. each spinner in spinners
  301. if isSelected spinner
  302. option(value="{{spinner}}" selected) {{_ spinner}}
  303. else
  304. option(value="{{spinner}}") {{_ spinner}}