Allow groups to be set during user add
This commit is contained in:
@@ -36,6 +36,22 @@
|
||||
<input type="text" class="form-control" ng-model="useradd.username" name="username" id="inputUserAddUsername" placeholder="Optional. If not provided, user can pick during sign up">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label">Groups</label>
|
||||
<div class="control-label">
|
||||
<div ng-show="groups.length <= 1">No groups available.</div>
|
||||
<multiselect ng-show="groups.length > 1" ng-model="useradd.selectedGroups" options="group.name for group in groups | ignoreAdminGroup" data-compare-by="name" data-multiple="true"></multiselect>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" ng-model="useradd.superuser"> User is an <a href="https://cloudron.io/documentation/user-management/#administrators" target="_blank">administrator</a>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" ng-model="useradd.sendInvite" id="inputUserAddSendInvite"> Send an invitation email now
|
||||
|
||||
Reference in New Issue
Block a user