2017-02-24 22:10:38 +08:00
|
|
|
template(name="setting")
|
|
|
|
.setting-content
|
2017-06-21 11:28:00 +09:00
|
|
|
unless currentUser.isAdmin
|
|
|
|
| {{_ 'error-notAuthorized'}}
|
|
|
|
else
|
|
|
|
.content-title
|
|
|
|
span {{_ 'settings'}}
|
|
|
|
.content-body
|
|
|
|
.side-menu
|
|
|
|
ul
|
|
|
|
li.active
|
|
|
|
a.js-setting-menu(data-id="registration-setting") {{_ 'registration'}}
|
|
|
|
li
|
|
|
|
a.js-setting-menu(data-id="email-setting") {{_ 'email'}}
|
2017-08-07 17:40:50 +09:00
|
|
|
li
|
|
|
|
a.js-setting-menu(data-id="account-setting") {{_ 'accounts'}}
|
2017-09-28 16:57:04 +09:00
|
|
|
li
|
2017-10-01 12:43:15 +09:00
|
|
|
a.js-setting-menu(data-id="announcement-setting") {{_ 'admin-announcement'}}
|
2018-10-24 11:39:45 +03:00
|
|
|
li
|
|
|
|
a.js-setting-menu(data-id="layout-setting") {{_ 'layout'}}
|
2017-06-21 11:28:00 +09:00
|
|
|
.main-body
|
|
|
|
if loading.get
|
|
|
|
+spinner
|
|
|
|
else if generalSetting.get
|
|
|
|
+general
|
|
|
|
else if emailSetting.get
|
|
|
|
+email
|
2017-08-07 17:40:50 +09:00
|
|
|
else if accountSetting.get
|
|
|
|
+accountSettings
|
2017-10-01 12:43:15 +09:00
|
|
|
else if announcementSetting.get
|
|
|
|
+announcementSettings
|
2018-10-24 11:39:45 +03:00
|
|
|
else if layoutSetting.get
|
|
|
|
+layoutSettings
|
2017-03-30 19:13:57 +02:00
|
|
|
|
2017-02-24 22:10:38 +08:00
|
|
|
template(name="general")
|
2017-02-26 21:11:15 +08:00
|
|
|
ul#registration-setting.setting-detail
|
2017-02-24 22:10:38 +08:00
|
|
|
li
|
2017-02-26 21:11:15 +08:00
|
|
|
a.flex.js-toggle-registration
|
|
|
|
.materialCheckBox(class="{{#if currentSetting.disableRegistration}}is-checked{{/if}}")
|
2017-02-24 22:10:38 +08:00
|
|
|
|
2017-02-26 21:11:15 +08:00
|
|
|
span {{_ 'disable-self-registration'}}
|
2017-02-24 22:10:38 +08:00
|
|
|
li
|
2017-02-26 21:11:15 +08:00
|
|
|
.invite-people(class="{{#if currentSetting.disableRegistration}}{{else}}hide{{/if}}")
|
2017-02-24 22:10:38 +08:00
|
|
|
ul
|
|
|
|
li
|
2017-02-26 21:11:15 +08:00
|
|
|
.title {{_ 'invite-people'}}
|
|
|
|
textarea#email-to-invite.form-control(rows='5', placeholder="{{_ 'email-addresses'}}")
|
2017-02-24 22:10:38 +08:00
|
|
|
li
|
2017-02-26 21:11:15 +08:00
|
|
|
.title {{_ 'to-boards'}}
|
2017-02-24 22:10:38 +08:00
|
|
|
.bg-white
|
|
|
|
each boards
|
|
|
|
a.option.flex.js-toggle-board-choose(id= _id)
|
|
|
|
.materialCheckBox(data-id= _id)
|
|
|
|
|
|
|
|
span= title
|
|
|
|
|
|
|
|
li
|
2017-02-26 21:11:15 +08:00
|
|
|
button.js-email-invite.primary {{_ 'invite'}}
|
2017-02-24 22:10:38 +08:00
|
|
|
|
|
|
|
template(name='email')
|
|
|
|
ul#email-setting.setting-detail
|
2018-08-20 23:16:24 +03:00
|
|
|
li.smtp-form
|
|
|
|
.title {{_ 'smtp-host'}}
|
|
|
|
.description {{_ 'smtp-host-description'}}
|
|
|
|
.form-group
|
|
|
|
input.form-control#mail-server-host(type="text", placeholder="smtp.domain.com" value="{{currentSetting.mailServer.host}}")
|
|
|
|
li.smtp-form
|
|
|
|
.title {{_ 'smtp-port'}}
|
|
|
|
.description {{_ 'smtp-port-description'}}
|
|
|
|
.form-group
|
|
|
|
input.form-control#mail-server-port(type="text", placeholder="25" value="{{currentSetting.mailServer.port}}")
|
|
|
|
li.smtp-form
|
|
|
|
.title {{_ 'smtp-username'}}
|
|
|
|
.form-group
|
|
|
|
input.form-control#mail-server-username(type="text", placeholder="{{_ 'username'}}" value="{{currentSetting.mailServer.username}}")
|
|
|
|
li.smtp-form
|
|
|
|
.title {{_ 'smtp-password'}}
|
|
|
|
.form-group
|
2018-10-24 11:39:45 +03:00
|
|
|
input.form-control#mail-server-password(type="password", placeholder="{{_ 'password'}}" value="{{currentSetting.mailServer.password}}")
|
2018-08-20 23:16:24 +03:00
|
|
|
li.smtp-form
|
|
|
|
.title {{_ 'smtp-tls'}}
|
|
|
|
.form-group
|
|
|
|
a.flex.js-toggle-tls
|
|
|
|
.materialCheckBox#mail-server-tls(class="{{#if currentSetting.mailServer.enableTLS}}is-checked{{/if}}")
|
|
|
|
|
|
|
|
span {{_ 'smtp-tls-description'}}
|
|
|
|
|
|
|
|
li.smtp-form
|
|
|
|
.title {{_ 'send-from'}}
|
|
|
|
.form-group
|
|
|
|
input.form-control#mail-server-from(type="email", placeholder="no-reply@domain.com" value="{{currentSetting.mailServer.from}}")
|
|
|
|
|
|
|
|
li
|
|
|
|
button.js-save.primary {{_ 'save'}}
|
|
|
|
|
2017-11-27 16:44:19 +09:00
|
|
|
li
|
|
|
|
button.js-send-smtp-test-email.primary {{_ 'send-smtp-test'}}
|
|
|
|
|
2017-08-07 17:40:50 +09:00
|
|
|
template(name='accountSettings')
|
|
|
|
ul#account-setting.setting-detail
|
2018-05-07 13:57:23 -03:00
|
|
|
li.accounts-form
|
2017-08-07 17:40:50 +09:00
|
|
|
.title {{_ 'accounts-allowEmailChange'}}
|
|
|
|
.form-group.flex
|
|
|
|
input.form-control#accounts-allowEmailChange(type="radio" name="allowEmailChange" value="true" checked="{{#if allowEmailChange}}checked{{/if}}")
|
|
|
|
span {{_ 'yes'}}
|
|
|
|
input.form-control#accounts-allowEmailChange(type="radio" name="allowEmailChange" value="false" checked="{{#unless allowEmailChange}}checked{{/unless}}")
|
|
|
|
span {{_ 'no'}}
|
2018-05-07 13:57:23 -03:00
|
|
|
li
|
|
|
|
li.accounts-form
|
|
|
|
.title {{_ 'accounts-allowUserNameChange'}}
|
|
|
|
.form-group.flex
|
|
|
|
input.form-control#accounts-allowUserNameChange(type="radio" name="allowUserNameChange" value="true" checked="{{#if allowUserNameChange}}checked{{/if}}")
|
|
|
|
span {{_ 'yes'}}
|
|
|
|
input.form-control#accounts-allowUserNameChange(type="radio" name="allowUserNameChange" value="false" checked="{{#unless allowUserNameChange}}checked{{/unless}}")
|
|
|
|
span {{_ 'no'}}
|
2017-08-07 17:40:50 +09:00
|
|
|
li
|
|
|
|
button.js-accounts-save.primary {{_ 'save'}}
|
2017-09-28 16:57:04 +09:00
|
|
|
|
2017-10-01 12:43:15 +09:00
|
|
|
template(name='announcementSettings')
|
|
|
|
ul#announcement-setting.setting-detail
|
2017-09-28 16:57:04 +09:00
|
|
|
li
|
|
|
|
a.flex.js-toggle-activemessage
|
|
|
|
.materialCheckBox(class="{{#if currentSetting.enabled}}is-checked{{/if}}")
|
|
|
|
|
2017-10-01 12:43:15 +09:00
|
|
|
span {{_ 'admin-announcement-active'}}
|
2017-09-28 16:57:04 +09:00
|
|
|
li
|
2017-10-01 12:43:15 +09:00
|
|
|
.admin-announcement(class="{{#if currentSetting.enabled}}{{else}}hide{{/if}}")
|
2017-09-28 16:57:04 +09:00
|
|
|
ul
|
|
|
|
li
|
2017-10-01 12:43:15 +09:00
|
|
|
.title {{_ 'admin-announcement-title'}}
|
|
|
|
textarea#admin-announcement.form-control= currentSetting.body
|
2017-09-28 16:57:04 +09:00
|
|
|
li
|
2017-10-01 12:43:15 +09:00
|
|
|
button.js-announcement-save.primary {{_ 'save'}}
|
2018-10-24 11:39:45 +03:00
|
|
|
|
|
|
|
template(name='layoutSettings')
|
|
|
|
ul#layout-setting.setting-detail
|
2019-03-21 20:27:21 +02:00
|
|
|
//li.layout-form
|
2018-11-20 02:38:00 +02:00
|
|
|
.title {{_ 'hide-logo'}}
|
|
|
|
.form-group.flex
|
|
|
|
input.form-control#hide-logo(type="radio" name="hideLogo" value="true" checked="{{#if currentSetting.hideLogo}}checked{{/if}}")
|
|
|
|
span {{_ 'yes'}}
|
|
|
|
input.form-control#hide-logo(type="radio" name="hideLogo" value="false" checked="{{#unless currentSetting.hideLogo}}checked{{/unless}}")
|
|
|
|
span {{_ 'no'}}
|
2019-02-01 19:00:44 +01:00
|
|
|
li.layout-form
|
|
|
|
.title {{_ 'display-authentication-method'}}
|
|
|
|
.form-group.flex
|
|
|
|
input.form-control#display-authentication-method(type="radio" name="displayAuthenticationMethod" value="true" checked="{{#if currentSetting.displayAuthenticationMethod}}checked{{/if}}")
|
|
|
|
span {{_ 'yes'}}
|
|
|
|
input.form-control#display-authentication-method(type="radio" name="displayAuthenticationMethod" value="false" checked="{{#unless currentSetting.displayAuthenticationMethod}}checked{{/unless}}")
|
|
|
|
span {{_ 'no'}}
|
|
|
|
li.layout-form
|
|
|
|
.title {{_ 'default-authentication-method'}}
|
|
|
|
+selectAuthenticationMethod(authenticationMethod=currentSetting.defaultAuthenticationMethod)
|
2018-10-24 11:39:45 +03:00
|
|
|
li.layout-form
|
|
|
|
.title {{_ 'custom-product-name'}}
|
|
|
|
.form-group
|
2019-03-21 20:27:21 +02:00
|
|
|
input.form-control#product-name(type="text", placeholder="" value="{{currentSetting.productName}}")
|
2018-12-16 22:21:16 +02:00
|
|
|
li.layout-form
|
|
|
|
.title {{_ 'add-custom-html-after-body-start'}}
|
|
|
|
textarea#customHTMLafterBodyStart.form-control= currentSetting.customHTMLafterBodyStart
|
|
|
|
li.layout-form
|
|
|
|
.title {{_ 'add-custom-html-before-body-end'}}
|
|
|
|
textarea#customHTMLbeforeBodyEnd.form-control= currentSetting.customHTMLbeforeBodyEnd
|
2018-10-24 11:39:45 +03:00
|
|
|
li
|
|
|
|
button.js-save-layout.primary {{_ 'save'}}
|
2019-02-01 19:00:44 +01:00
|
|
|
|
|
|
|
|
|
|
|
template(name='selectAuthenticationMethod')
|
|
|
|
select#defaultAuthenticationMethod
|
|
|
|
each authentications
|
|
|
|
if isSelected value
|
|
|
|
option(value="{{value}}" selected) {{_ value}}
|
|
|
|
else
|
2019-03-21 20:27:21 +02:00
|
|
|
option(value="{{value}}") {{_ value}}
|