summaryrefslogtreecommitdiffstats
path: root/client/components/settings/settingBody.jade
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2017-03-05 19:59:19 +0200
committerLauri Ojansivu <x@xet7.org>2017-03-05 19:59:19 +0200
commitcbc3c8224fbed643780c5be20221269b62e50ac6 (patch)
tree5715424ab1454463a3f8ca458729347bbc014f5b /client/components/settings/settingBody.jade
parent7b68f1901e8bd81ec8fbebb60a3f4e057b57d06d (diff)
parent7c9a30d8fe3ffdf4b56cdc816bfc51f60881d55f (diff)
downloadwekan-cbc3c8224fbed643780c5be20221269b62e50ac6.tar.gz
wekan-cbc3c8224fbed643780c5be20221269b62e50ac6.tar.bz2
wekan-cbc3c8224fbed643780c5be20221269b62e50ac6.zip
Merge branch 'lkisme-devel' into devel
Add Admin Panel: 1) Disable Self-Registration and invite users 2) SMTP settings. Adding Admin user in mongo cli: 1) Use database that has wekan data, for example: use admin; 2) Add Admin rights to some Wekan username: db.users.update({username:'admin-username-here'},{$set:{isAdmin:true}}) Hiding Admin panel by removing Admin rights: use admin; db.settings.remove({});
Diffstat (limited to 'client/components/settings/settingBody.jade')
-rw-r--r--client/components/settings/settingBody.jade71
1 files changed, 71 insertions, 0 deletions
diff --git a/client/components/settings/settingBody.jade b/client/components/settings/settingBody.jade
new file mode 100644
index 00000000..fdab3173
--- /dev/null
+++ b/client/components/settings/settingBody.jade
@@ -0,0 +1,71 @@
+template(name="setting")
+ .setting-content
+ .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'}}
+ .main-body
+ if loading.get
+ +spinner
+ else if generalSetting.get
+ +general
+ else if emailSetting.get
+ +email
+
+template(name="general")
+ ul#registration-setting.setting-detail
+ li
+ a.flex.js-toggle-registration
+ .materialCheckBox(class="{{#if currentSetting.disableRegistration}}is-checked{{/if}}")
+
+ span {{_ 'disable-self-registration'}}
+ li
+ .invite-people(class="{{#if currentSetting.disableRegistration}}{{else}}hide{{/if}}")
+ ul
+ li
+ .title {{_ 'invite-people'}}
+ textarea#email-to-invite.form-control(rows='5', placeholder="{{_ 'email-addresses'}}")
+ li
+ .title {{_ 'to-boards'}}
+ .bg-white
+ each boards
+ a.option.flex.js-toggle-board-choose(id= _id)
+ .materialCheckBox(data-id= _id)
+
+ span= title
+
+ li
+ button.js-email-invite.primary {{_ 'invite'}}
+
+template(name='email')
+ ul#email-setting.setting-detail
+ 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
+ input.form-control#mail-server-password(type="text", placeholder="{{_ 'password'}}" value="{{currentSetting.mailServer.password}}")
+ 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