settingBody.jade 14 KB

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