allow bulk invite CSV list of email addresses
This commit is contained in:
parent
804f1f5610
commit
51edf80e48
|
@ -72,8 +72,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var splitEmails = model.emails.trim().split(/\s*,\s*/);
|
||||||
|
|
||||||
$scope.submitPromise = apiService.organizationUsers.invite({ orgId: $state.params.orgId }, {
|
$scope.submitPromise = apiService.organizationUsers.invite({ orgId: $state.params.orgId }, {
|
||||||
email: model.email,
|
emails: splitEmails,
|
||||||
type: model.type,
|
type: model.type,
|
||||||
collections: collections,
|
collections: collections,
|
||||||
accessAll: model.accessAll
|
accessAll: model.accessAll
|
||||||
|
|
|
@ -15,8 +15,9 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group" show-errors>
|
<div class="form-group" show-errors>
|
||||||
<label for="email">Email</label>
|
<label for="emails">Email</label>
|
||||||
<input type="email" id="email" name="Email" ng-model="model.email" class="form-control" required api-field />
|
<input type="text" id="emails" name="Emails" ng-model="model.emails" class="form-control" required api-field />
|
||||||
|
<p class="help-block">You can invite up to 20 users at a time by comma separating a list of email addresses.</p>
|
||||||
</div>
|
</div>
|
||||||
<h4>User Type</h4>
|
<h4>User Type</h4>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
Loading…
Reference in New Issue