settingBody.jade 14 KB

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