user setting: Disable email field if, user not allowed to change email.

This commit is contained in:
YJDave 2017-12-30 10:55:17 +05:30 committed by showell
parent 28ca52b493
commit b523fd52f8
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@
<label class="inline-block title">{{t "Email" }}</label>
<a id="change_email" {{#unless page_params.realm_email_changes_disabled}}href="#change_email"{{/unless}}>
<button type="button" class="button small rounded inline-block" id='email_value'
{{#if page_params.realm_email_changes_disabled}} disabled="true" {{/if}}>
{{#if page_params.realm_email_changes_disabled}} disabled="disabled" {{/if}}>
{{page_params.email}}
<i class="fa fa-pencil"></i>
</button>