Add ability for users to change their name and company information
This commit is contained in:
parent
ad61df66c5
commit
82ff85b125
3 changed files with 67 additions and 10 deletions
|
@ -122,6 +122,24 @@
|
|||
<a class="co-modify-link" ng-click="showChangeEmail()" ng-if="!context.emailAwaitingChange">{{ context.viewuser.email }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr quay-show="Features.USER_METADATA">
|
||||
<td>Given Name:</td>
|
||||
<td>
|
||||
<a class="co-modify-link" ng-click="showChangeMetadata('given_name', 'given name')">{{ context.viewuser.given_name || '(None)' }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr quay-show="Features.USER_METADATA">
|
||||
<td>Family Name:</td>
|
||||
<td>
|
||||
<a class="co-modify-link" ng-click="showChangeMetadata('family_name', 'family name')">{{ context.viewuser.family_name || '(None)' }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr quay-show="Features.USER_METADATA">
|
||||
<td>Company:</td>
|
||||
<td>
|
||||
<a class="co-modify-link" ng-click="showChangeMetadata('company', 'company name')">{{ context.viewuser.company || '(None)' }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr quay-show="Config.AUTHENTICATION_TYPE == 'Database'">
|
||||
<td>Password:</td>
|
||||
<td>
|
||||
|
@ -150,6 +168,19 @@
|
|||
</cor-tab-content>
|
||||
</cor-tab-panel>
|
||||
|
||||
<!-- Change metadata dialog -->
|
||||
<div class="cor-confirm-dialog"
|
||||
dialog-context="changeMetadataInfo"
|
||||
dialog-action="updateMetadataInfo(info, callback)"
|
||||
dialog-title="Update user information"
|
||||
dialog-action-title="Update"
|
||||
dialog-form="context.metadataform">
|
||||
<form name="context.metadataform" class="co-single-field-dialog">
|
||||
Please enter an updated {{ changeMetadataInfo.title }}:
|
||||
<input type="text" class="form-control" ng-model="changeMetadataInfo.value" required>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<!-- Change email dialog -->
|
||||
<div class="cor-confirm-dialog"
|
||||
dialog-context="changeEmailInfo"
|
||||
|
|
Reference in a new issue