Added reason field into register screen

pull/7098/head
Fernando Nascimento 9 years ago committed by Luis Fernando do Nascimento
parent 4952eb1ec8
commit b9f983a1b5
  1. 1
      packages/rocketchat-i18n/i18n/en.i18n.json
  2. 9
      packages/rocketchat-ui-login/client/login/form.html
  3. 3
      packages/rocketchat-ui-login/client/login/form.js

@ -1227,6 +1227,7 @@
"Read_only_changed_successfully": "Read only changed successfully",
"Read_only_channel": "Read Only Channel",
"Read_only_group": "Read Only Group",
"Reason_To_Join": "Reason to Join",
"Record": "Record",
"Redirect_URI": "Redirect URI",
"Refresh_oauth_services": "Refresh OAuth Services",

@ -73,6 +73,15 @@
</div>
</div>
{{/if}}
{{#if manuallyApproveNewUsers}}
<div class="input-line">
<label for="reason">{{_ "Reason_To_Join"}}</label>
<div>
<input type="text" name='reason' id="reason" />
<div class="input-error"></div>
</div>
</div>
{{/if}}
{{/if}}
{{#if state 'forgot-password' 'email-verification'}}
<div class="input-line">

@ -58,6 +58,9 @@ Template.loginForm.helpers({
},
hasOnePassword() {
return typeof OnePassword !== 'undefined' && OnePassword.findLoginForUrl && typeof device !== 'undefined' && device.platform && device.platform.toLocaleLowerCase() === 'ios';
},
manuallyApproveNewUsers() {
return RocketChat.settings.get('Accounts_ManuallyApproveNewUsers');
}
});

Loading…
Cancel
Save