-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmodals.php
executable file
·229 lines (224 loc) · 7.77 KB
/
modals.php
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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
<!-- user modal -->
<div class="modal fade" id="modal-user" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span>
</button>
<h4 id="modal-user-title" class="modal-title">Add User</h4>
</div>
<div class="modal-body">
<form id="form-user" action="javascript:void(0)">
<input type="hidden" id="form-user-submit-type" value=""/>
<table class="table cv-table">
<tr>
<th>Username</th>
<td>
<label for="username" class="sr-only">username</label>
<input type="text" id="form-user-username" class="form-group form-control"
placeholder="username" maxlength=12 required/>
</td>
</tr>
<tr>
<th>Email</th>
<td>
<label for="email" class="sr-only">email</label>
<input type="email" id="form-user-email" class="form-group form-control"
placeholder="email" maxlength=45 required/>
</td>
</tr>
<tr>
<th>Password</th>
<td>
<label for="password" class="sr-only">password</label>
<input type="password" id="form-user-password" class="form-group form-control"
placeholder="leave it blank to remain old password"/>
</td>
</tr>
<tr>
<th>Role</th>
<td>
<label for="form-user-role"></label><select id="form-user-role"
class="form-group form-control" required>
<option value="removed">Removed</option>
<option value="blocked">Blocked</option>
<option value="normal">Normal</option>
<option value="developer">Developer</option>
<option value="admin">Admin</option>
<option value="root">Root</option>
</select>
</td>
</tr>
</table>
<div>
<button id="form-user-submit" type="button" class="btn btn-primary">Save</button>
<span id="form-user-msg" class="text-danger"></span>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- msg modal -->
<div class="modal fade" id="modal-msg" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span>
</button>
<h4 id="modal-msg-title" class="modal-title">Notify</h4>
</div>
<div class="modal-body">
<h4 id="modal-msg-content" class="text-msg text-center">Hello World!</h4>
</div>
</div>
</div>
</div>
<!-- site modal -->
<div class="modal fade" id="modal-site" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span>
</button>
<h4 class="modal-title">Add Site</h4>
</div>
<div class="modal-body">
<form id="form-site" action="javascript:void(0)">
<input type="hidden" id="form-site-submit-type" value=""/>
<table class="table">
<tr>
<th>Domain</th>
<td>
<label for="domain" class="sr-only">Domain</label>
<input type="text" id="form-site-domain" class="form-group form-control"
placeholder="example.com" required/>
</td>
</tr>
<tr id="form-site-id-tr">
<th>ClientID</th>
<td>
<label for="form-site-id" class="sr-only">App ID</label>
<input type="text" id="form-site-id" class="form-group form-control" required readonly/>
</td>
</tr>
<tr id="form-site-key-tr">
<th>ClientSecret</th>
<td>
<label for="form-site-key" class="sr-only">Key</label>
<input type="text" id="form-site-key" class="form-group form-control" required readonly/>
</td>
</tr>
</table>
<div>
<button id="form-site-submit" type="submit" class="btn btn-primary">Save</button>
<button id="form-site-remove" type="button" class="btn btn-danger">Remove</button>
<span id="form-site-msg" class="text-danger"></span>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- modal block -->
<div class="modal fade" id="modal-block" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span>
</button>
<h4 id="modal-block-title" class="modal-title">Block Info</h4>
</div>
<div class="modal-body">
<form id="form-block" action="javascript:void(0)">
<table class="table">
<tr>
<th>IP</th>
<td>
<label for="ip" class="sr-only">IP</label>
<input type="text" id="form-block-ip" class="form-group form-control"
placeholder="8.8.8.8" required/>
</td>
</tr>
<tr>
<th>Time</th>
<td>
<label for="time" class="sr-only">Time</label>
<input type="text" id="form-block-time" class="form-group form-control"
placeholder="10 (set -1 to unblock)" required/>
</td>
</tr>
</table>
<div>
<button id="form-block-submit" type="submit" class="btn btn-primary"> Save </button>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- modal update email -->
<div class="modal fade" id="modal-email" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span>
</button>
<h4 id="modal-email-title" class="modal-title">Update Email</h4>
</div>
<div class="modal-body">
<form id="form-email" action="javascript:void(0)">
<table class="table">
<tr>
<th>Email</th>
<td>
<label for="email" class="sr-only">Email</label>
<input type="email" id="form-email-email" class="form-group form-control"
placeholder="new email" required/>
</td>
</tr>
</table>
<div>
<button id="form-email-submit" type="submit" class="btn btn-primary"> Save </button>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- modal code -->
<div class="modal fade" id="modal-verify" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span>
</button>
<h4 id="modal-verify-title" class="modal-title">Verify Email</h4>
</div>
<div class="modal-body">
<form id="form-verify" action="javascript:void(0)">
<table class="table">
<tr>
<th>Code</th>
<td>
<div class="form-group">
<label for="code" class="sr-only">Code</label>
<div class="input-group">
<input type="number" class="form-control" id="form-verify-code"
placeholder="Code Received" required/>
<div class="input-group-addon">
<a href="javascript:void(0)" id="btn-verify-send">Send</a>
</div>
</div>
</div>
</td>
</tr>
</table>
<div>
<button id="form-verify-submit" type="submit" class="btn btn-primary"> Verify </button>
</div>
</form>
</div>
</div>
</div>
</div>