redash/client/app/pages/users/new.html
2016-11-26 11:35:21 +02:00

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>