mirror of
https://github.com/valitydev/redash.git
synced 2024-11-08 18:03:54 +00:00
34 lines
1.4 KiB
HTML
34 lines
1.4 KiB
HTML
<settings-screen>
|
|
<email-settings-warning function="'invite emails'"></email-settings-warning>
|
|
<form class="form" name="$ctrl.userForm" ng-submit="saveUser()" novalidate>
|
|
<div class="form-group required" ng-class="{ 'has-error': ($ctrl.userForm.email | showError:$ctrl.userForm )}">
|
|
<label class="control-label">Name</label>
|
|
<input type="text" name="name" class="form-control" ng-model="user.name" ng-disabled="user.created" required/>
|
|
|
|
<error-messages input="$ctrl.userForm.name" form="$ctrl.userForm"></error-messages>
|
|
</div>
|
|
|
|
<div class="form-group required" ng-class="{ 'has-error': ($ctrl.userForm.email | showError:$ctrl.userForm ) }">
|
|
<label class="control-label">Email</label>
|
|
<input name="email" type="email" class="form-control" ng-model="user.email" ng-disabled="user.created" required/>
|
|
|
|
<error-messages input="$ctrl.userForm.email" form="$ctrl.userForm"></error-messages>
|
|
</div>
|
|
|
|
<div class="form-group" ng-if="!user.created">
|
|
<button class="btn btn-primary">Create</button>
|
|
</div>
|
|
|
|
|
|
<div ng-if="user.created" class="alert alert-success">
|
|
<p>
|
|
<strong>The user has been created and should receive an invite email soon.</strong>
|
|
</p>
|
|
<p>
|
|
You can use the following link to invite them yourself:<br/>
|
|
{{user.invite_link}}
|
|
</p>
|
|
</div>
|
|
</form>
|
|
</settings-screen>
|