|
@@ -13,10 +13,11 @@ template(name="setting")
|
|
a.js-setting-menu(data-id="registration-setting")
|
|
a.js-setting-menu(data-id="registration-setting")
|
|
i.fa.fa-sign-in
|
|
i.fa.fa-sign-in
|
|
| {{_ 'registration'}}
|
|
| {{_ 'registration'}}
|
|
- li
|
|
|
|
- a.js-setting-menu(data-id="email-setting")
|
|
|
|
- i.fa.fa-envelope
|
|
|
|
- | {{_ 'email'}}
|
|
|
|
|
|
+ unless isSandstorm
|
|
|
|
+ li
|
|
|
|
+ a.js-setting-menu(data-id="email-setting")
|
|
|
|
+ i.fa.fa-envelope
|
|
|
|
+ | {{_ 'email'}}
|
|
li
|
|
li
|
|
a.js-setting-menu(data-id="account-setting")
|
|
a.js-setting-menu(data-id="account-setting")
|
|
i.fa.fa-users
|
|
i.fa.fa-users
|
|
@@ -39,7 +40,8 @@ template(name="setting")
|
|
else if generalSetting.get
|
|
else if generalSetting.get
|
|
+general
|
|
+general
|
|
else if emailSetting.get
|
|
else if emailSetting.get
|
|
- +email
|
|
|
|
|
|
+ unless isSandstorm
|
|
|
|
+ +email
|
|
else if accountSetting.get
|
|
else if accountSetting.get
|
|
+accountSettings
|
|
+accountSettings
|
|
else if announcementSetting.get
|
|
else if announcementSetting.get
|
|
@@ -80,40 +82,40 @@ template(name="general")
|
|
|
|
|
|
template(name='email')
|
|
template(name='email')
|
|
ul#email-setting.setting-detail
|
|
ul#email-setting.setting-detail
|
|
- if isSandstorm
|
|
|
|
- li.smtp-form
|
|
|
|
- .title {{_ 'smtp-host'}}
|
|
|
|
- .description {{_ 'smtp-host-description'}}
|
|
|
|
- .form-group
|
|
|
|
- input.wekan-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.wekan-form-control#mail-server-port(type="text", placeholder="25" value="{{currentSetting.mailServer.port}}")
|
|
|
|
- li.smtp-form
|
|
|
|
- .title {{_ 'smtp-username'}}
|
|
|
|
- .form-group
|
|
|
|
- input.wekan-form-control#mail-server-username(type="text", placeholder="{{_ 'username'}}" value="{{currentSetting.mailServer.username}}")
|
|
|
|
- li.smtp-form
|
|
|
|
- .title {{_ 'smtp-password'}}
|
|
|
|
- .form-group
|
|
|
|
- input.wekan-form-control#mail-server-password(type="password", placeholder="{{_ 'password'}}" value="")
|
|
|
|
- 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.wekan-form-control#mail-server-from(type="email", placeholder="no-reply@domain.com" value="{{currentSetting.mailServer.from}}")
|
|
|
|
-
|
|
|
|
- li
|
|
|
|
- button.js-save.primary {{_ 'save'}}
|
|
|
|
|
|
+ //if isSandstorm
|
|
|
|
+ // li.smtp-form
|
|
|
|
+ // .title {{_ 'smtp-host'}}
|
|
|
|
+ // .description {{_ 'smtp-host-description'}}
|
|
|
|
+ // .form-group
|
|
|
|
+ // input.wekan-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.wekan-form-control#mail-server-port(type="text", placeholder="25" value="{{currentSetting.mailServer.port}}")
|
|
|
|
+ // li.smtp-form
|
|
|
|
+ // .title {{_ 'smtp-username'}}
|
|
|
|
+ // .form-group
|
|
|
|
+ // input.wekan-form-control#mail-server-username(type="text", placeholder="{{_ 'username'}}" value="{{currentSetting.mailServer.username}}")
|
|
|
|
+ // li.smtp-form
|
|
|
|
+ // .title {{_ 'smtp-password'}}
|
|
|
|
+ // .form-group
|
|
|
|
+ // input.wekan-form-control#mail-server-password(type="password", placeholder="{{_ 'password'}}" value="")
|
|
|
|
+ // 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.wekan-form-control#mail-server-from(type="email", placeholder="no-reply@domain.com" value="{{currentSetting.mailServer.from}}")
|
|
|
|
+ //
|
|
|
|
+ // li
|
|
|
|
+ // button.js-save.primary {{_ 'save'}}
|
|
|
|
|
|
li
|
|
li
|
|
button.js-send-smtp-test-email.primary {{_ 'send-smtp-test'}}
|
|
button.js-send-smtp-test-email.primary {{_ 'send-smtp-test'}}
|