forked from KelvinTegelaar/CIPP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AddUser.html
182 lines (172 loc) · 10.4 KB
/
AddUser.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<main>
<form name="edituserform" id="Userform">
<header class="page-header page-header-compact page-header-light border-bottom bg-white mb-4">
<div class="container-xl px-4">
<div class="page-header-content">
<div class="row align-items-center justify-content-between pt-3">
<div class="col-auto mb-3">
<h1 class="page-header-title">
<div class="page-header-icon"><i data-feather="user-plus"></i></div>
Add User
</h1>
</div>
<div class="col-12 col-xl-auto mb-3">
<a class="btn btn-sm btn-light text-primary" href="index.html?page=users">
<i class="me-1" data-feather="arrow-left"></i>
Back to Users
</a>
</div>
</div>
</div>
</div>
</header>
<!-- Main page content-->
<div class="container-xl px-4 mt-4">
<div class="row">
<div class="col-xl-8">
<div><label for="exampleDataList" class="form-label">Tenant Selector</label>
<section id="tenantselector">
<input required="true" name="tenantid" class="form-control" list="datalistOptions"
id="exampleDataList" placeholder="Type to search..." oninput='onInput()'>
<datalist id="datalistOptions">
<option value="Select a tenant" text="Select a tenant">
</datalist>
</section>
</div>
<br>
</div>
<div class="col-xl-8">
<!-- Account details card-->
<div class="card mb-4">
<div class="card-header">Account Details</div>
<div class="card-body">
<!-- Form Row-->
<div class="row gx-3 mb-3">
<!-- Form Group (first name)-->
<div class="col-md-6">
<label class="small mb-1" for="inputFirstName">First name</label>
<input class="form-control" id="inputFirstName" type="text"
placeholder="Enter first name" value="" name="FirstName" />
</div>
<!-- Form Group (last name)-->
<div class="col-md-6">
<label class="small mb-1" for="inputLastName">Last name</label>
<input class="form-control" id="inputLastName" type="text"
placeholder="Enter last name" value="" name="LastName" />
</div>
</div>
<div class="mb-3">
<label class="small mb-1" for="inputEmailAddress">Display Name</label>
<input class="form-control" id="inputEmailAddress" placeholder="Enter the display name"
value="" name="DisplayName" />
</div>
<!-- Form Group (email address)-->
<div class="row gx-3 mb-3">
<!-- Form Group (first name)-->
<div class="col-md-6">
<label class="small mb-1" for="Username">Username</label>
<input class="form-control" id="Username" type="text" placeholder="UPN" value=""
name="Username" />
</div>
<!-- Form Group (last name)-->
<div class="col-md-6">
<label class="small mb-1" for="inputLastName">Domain</label>
<input class="form-control" list="DomainOption" id="Domain" name="Domain"
placeholder="Type to search...">
<datalist id="DomainOption">
<option text="Primary Domain">
</datalist>
</div>
</div>
<!-- Form Group (Group Selection Checkboxes)-->
<div class="mb-3">
<label class="small mb-1">Settings</label>
<div class="form-check">
<input class="form-check-input" id="AutoPassword" type="checkbox"
switches="PasswordField" value="true" name="Autopassword" checked />
<label class="form-check-label" for="AutoPassword">Create Password
automatically</label>
</div>
<div style="display: none;" id="PasswordField" class="col-md-6">
<label class="small mb-1" for="PasswordField">Password</label>
<input name="Password" class="form-control" id="PasswordField" type="password"
placeholder="Enter a password" value="" />
</div>
<div class="form-check">
<input name="MustChangePass" class="form-check-input" id="RequirePasswordChange"
type="checkbox" value="true" />
<label class="form-check-label" for="RequirePasswordChange">Require password change
at next
logon</label>
</div>
</div>
<!-- Form Group (Roles)-->
<div class="mb-3">
<label class="small mb-1">Usage location</label>
<input name="Usagelocation" class="form-control" list="UsageLocationList"
id="LocationDataList" placeholder="Type to search...">
<datalist id="UsageLocationList">
<option text="Select a usage location" value="Select a usage location">
</datalist>
</div>
<div class="form-check">
<input class="form-check-input" switches="LicenseList" value="false" id="LicenseRadio1"
type="radio" name="License" checked>
<label class="form-check-label" for="LicenseRadio1">Create user without
license</label>
</div>
<div class="form-check">
<input class="form-check-input" switches="LicenseList" value="true" id="LicenseRadio2"
type="radio" name="License">
<label class=" form-check-label" for="LicenseRadio2">Create user with license</label>
</div>
<div id="LicenseList" style="display: none;" class="mb-3">
<label class="small mb-1">Licenses</label>
</div>
<div class="mb-3">
<label class="small mb-1" for="AddedAliases">Aliases</label>
<textarea name="AddedAliases" class="form-control" id="AddedAliases" type="email"
placeholder="Enter one alias per line, leave blank if no Aliases are required."
value=""></textarea>
<div class="col-mb-3">
<label class="small mb-1" for="UserlistOptions">Copy group membership from other
user</label>
<input class="form-control" name="CopyFrom" list="UserlistOptions" id="Userlist"
placeholder="Leave blank to not copy.">
<datalist id="UserlistOptions">
</datalist>
</div>
</div> <!-- Submit button-->
<button class="btn btn-primary" onclick='PostForm("Userform","api/AddUser")'' type="button">Add
user</button>
</div>
</div>
</div>
</div>
</div>
</form>
<button class="btn btn-primary" id="PopModal" type="button" data-bs-toggle="modal" data-bs-target="#exampleModal"
style="display:none;"></button>
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Results</h5>
</div>
<div class="modal-body">
<section id="APIContent">
<div class="spinner-border text-primary" role="status">
<span class="sr-only"></span>
</div></span>
</section>
</div>
<div class="modal-footer"><button class="btn btn-secondary" type="button"
data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</main>
<script src="js/tenantlist.js"></script>
<script src="js/Userlist.js"></script>
<script src="js/UserFormOptions.js"></script>