Add TLS toggle option to smtp configuration

This commit is contained in:
Julen Landa Alustiza 2017-03-30 19:13:57 +02:00
parent ee6aa7a6b2
commit db2c381c00
4 changed files with 30 additions and 10 deletions

View file

@ -16,7 +16,7 @@ template(name="setting")
+general
else if emailSetting.get
+email
template(name="general")
ul#registration-setting.setting-detail
li
@ -62,10 +62,18 @@ template(name='email')
.title {{_ 'smtp-password'}}
.form-group
input.form-control#mail-server-password(type="text", placeholder="{{_ 'password'}}" value="{{currentSetting.mailServer.password}}")
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
button.js-save.primary Save