File: jquery-patterns.html

package info (click to toggle)
cockpit 188-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 119,768 kB
  • sloc: ansic: 66,833; xml: 5,776; python: 3,122; sh: 2,322; makefile: 1,289; sed: 7
file content (459 lines) | stat: -rw-r--r-- 19,652 bytes parent folder | download | duplicates (2)
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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Cockpit Pattern Usage</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="../base1/patternfly.css" type="text/css" rel="stylesheet">
    <link href="jquery-patterns.css" type="text/css" rel="stylesheet">
    <script src="../base1/jquery.js"></script>
    <script src="../base1/cockpit.js"></script>
    <script src="jquery-patterns.js"></script>
</head>
<body hidden>

<div class="modal" id="test-dialog" tabindex="-1" role="dialog" data-backdrop="static">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title">Example Dialog</h4>
            </div>
            <div class="modal-body">
                <table class="form-table-ct">
                    <tbody>
                        <tr>
                            <td class="top">
                                <label class="control-label" for="control-1">
                                    Label
                                </label>
                            </td>
                            <td>
                                <input id="control-1" class="form-control" type="text">
                            </td>
                        </tr>
                        <tr>
                            <td class="top">
                                <label class="control-label" for="control-2">
                                    Select
                                </label>
                            </td>
                            <td>
                                <!-- Note that bootstrap-select is horrible ... but we use the styling -->
                                <div class="btn-group bootstrap-select dropdown form-control" id="control-2">
                                    <button class="btn btn-default dropdown-toggle" type="button"
                                        data-toggle="dropdown">
                                        <span class="pull-left">One</span>
                                        <span class="caret"></span>
                                    </button>
                                    <ul class="dropdown-menu">
                                        <li value="one"><a>One</a></li>
                                        <li value="two"><a>Two</a></li>
                                    </ul>
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <div class="modal-footer">
                <button class="btn btn-default" data-dismiss="modal">
                    Cancel
                </button>
                <button class="btn btn-primary" id="clear-button">
                    Clear
                </button>
                <button class="btn btn-primary" id="fields-button">
                    Invalid
                </button>
                <button class="btn btn-primary" id="error-button">
                    Error
                </button>
                <button class="btn btn-primary" id="wait-button">
                    Wait
                </button>
            </div>
        </div>
    </div>
</div>

<div class="container-fluid">
    <h3>Dialogs</h3>
    <button class="btn btn-default" data-target="#test-dialog" data-toggle="modal">
        Show Dialog
    </button>
    <hr>
</div>

<div class="container-fluid">
    <h3>On/Off Switch</h3>

    <div class="btn-group btn-onoff-ct" id="my-switch" data-toggle="buttons">
        <label class="btn">
            <input type="radio" name="options" id="my-button" autocomplete="off">
            <span translatable="yes">On</span>
        </label>
        <label class="btn active">
            <input type="radio" name="options" autocomplete="off" checked>
            <span translatable="yes">Off</span>
        </label>
    </div>

    <div class="btn-onoff-ct" id="my-switch2"></div>

    <div class="btn-group btn-onoff-ct" id="my-switch3" data-toggle="buttons">
        <label class="btn">
            <input type="radio" name="options" id="my-button" autocomplete="off">
            <span translatable="yes">On</span>
        </label>
        <label class="btn active">
            <input type="radio" name="options" autocomplete="off" checked>
            <span translatable="yes">Off</span>
        </label>
    </div>

    <hr>
</div>

<div class="container-fluid">

    <table class="listing-ct">
        <thead>
            <tr>
                <td colspan="5">
                    <h3>Listing with Panels</h3>
                </td>
            </tr>
            <tr>
                <th class="listing-ct-toggle"></th>
                <th>Name</th>
                <th>Project</th>
                <th>Address</th>
                <th>Status</th>
            </tr>
        </thead>
        <tbody>
            <tr class="listing-ct-item">
                <td class="listing-ct-toggle">
                    <i class="fa fa-fw"></i>
                </td>
                <th>frontend</th>
                <td>aoeuaoeu</td>
                <td>127.30.168.10</td>
                <td>Running</td>
            </tr>
            <tr class="listing-ct-panel">
                <td colspan="5">
                    <div class="listing-ct-head">
                        <div class="listing-ct-actions">
                            <button title="Adjust" class="btn btn-default pficon pficon-edit"></button>
                        </div>
                        <ul class="nav nav-tabs nav-tabs-pf">
                            <li class="active"><a href="#">Pod</a></li>
                            <li><a href="#">Containers</a></li>
                            <li><a href="#">Logs</a></li>
                            <li><a href="#">Shell</a></li>
                        </ul>
                    </div>
                    <div class="listing-ct-body">
                        <div class="row">
                            <div class="col-sm-6">
                                <dl>
                                    <dt>Project</dt>
                                    <dd>aoeuaoeu</dd>
                                    <dt>Created</dt>
                                    <dd title="2015-09-26 15:33">14 days ago</dd>
                                    <dt>Restart Policy</dt>
                                    <dd>Always</dd>
                                    <dt>Service Account</dt>
                                    <dd>default</dd>
                                    <dt>DNS Policy</dt>
                                    <dd>ClusterFirst</dd>
                                    <dt>Phase</dt>
                                    <dd>running</dd>
                                    <dt>Node</dt>
                                    <dd>openshiftdev.local</dd>
                                    <dt>Pod Address</dt>
                                    <dd>1.2.3.4</dd>
                                </dl>
                            </div>
                            <div class="col-sm-6">
                                <dl class="full-width">
                                    <dt>Labels</dt>
                                    <dd>name=frontend</dd>
                                    <dd>template=ruby-hello-world</dd>
                                </dl>
                            </div>
                        </div>
                    </div>
                </td>
            </tr>
        </tbody>
        <tbody>
            <tr class="listing-ct-item">
                <td class="listing-ct-toggle">
                    <i class="fa fa-fw"></i>
                </td>
                <th>redis-master</th>
                <td>aoeuaoeu</td>
                <td>127.30.173.79:6379</td>
                <td>Ready</td>
            </tr>
            <tr class="listing-ct-panel">
                <td colspan="5">
                    <div class="listing-ct-head">
                        <div class="listing-ct-actions">
                            <button title="Adjust" class="btn btn-default pficon pficon-edit"></button>
                        </div>
                        <ul class="nav nav-tabs nav-tabs-pf">
                            <li class="active"><a href="#">Pod</a></li>
                            <li><a href="#">Containers</a></li>
                            <li><a href="#">Logs</a></li>
                            <li><a href="#">Shell</a></li>
                        </ul>
                    </div>
                    <div class="listing-ct-body">
                        <div class="row">
                            <div class="col-sm-6">
                                <dl>
                                    <dt>Project</dt>
                                    <dd>aoeuaoeu</dd>
                                    <dt>Created</dt>
                                    <dd title="2015-09-26 15:33">10 days ago</dd>
                                    <dt>Restart Policy</dt>
                                    <dd>Always</dd>
                                    <dt>Service Account</dt>
                                    <dd>default</dd>
                                    <dt>DNS Policy</dt>
                                    <dd>ClusterFirst</dd>
                                    <dt>Phase</dt>
                                    <dd>running</dd>
                                    <dt>Node</dt>
                                    <dd>openshiftdev.local</dd>
                                    <dt>Pod Address</dt>
                                    <dd>1.2.3.5</dd>
                                </dl>
                            </div>
                            <div class="col-sm-6">
                                <dl class="full-width">
                                    <dt>Labels</dt>
                                    <dd>name=redis-master</dd>
                                    <dd>template=ruby-hello-world</dd>
                                </dl>
                            </div>
                        </div>
                    </div>
                </td>
            </tr>
        </tbody>
    </table>

    <table class="listing-ct">
        <thead>
            <tr>
                <td colspan="2">
                    <h3>Expandable Listing: Panel header is row</h3>
                </td>
            </tr>
        </thead>
        <tbody>
            <tr class="listing-ct-item listing-ct-head">
                <th>id_rsa</th>
                <td></td>
                <td class="listing-ct-tight listing-ct-actions">
                    <div class="btn-group btn-onoff-ct" data-toggle="buttons">
                        <label class="btn"><input type="radio" autocomplete="off">On</label>
                        <label class="btn active"><input type="radio" autocomplete="off" checked>Off</label>
                    </div>
                </td>
            </tr>
            <tr class="listing-ct-body">
                <td colspan="3">
                    the body
                </td>
            </tr>
        </tbody>
        <tbody>
            <tr class="listing-ct-item listing-ct-head">
                <th>id_rsa</th>
                <td></td>
                <td class="listing-ct-tight listing-ct-actions">
                    <div class="btn-group btn-onoff-ct" data-toggle="buttons">
                        <label class="btn"><input type="radio" autocomplete="off">On</label>
                        <label class="btn active"><input type="radio" autocomplete="off" checked>Off</label>
                    </div>
                </td>
            </tr>
            <tr class="listing-ct-panel">
                <td colspan="3">
                    <ul class="nav nav-tabs nav-tabs-pf">
                        <li><a href="#">Tree</a></li>
                        <li class="active"><a href="#">Packages</a></li>
                    </ul>
                </td>
            </tr>
            <tr class="listing-ct-body">
                <td colspan="3">
                    The body
                </td>
            </tr>
        </tbody>
    </table>

    <table class="listing-ct">
        <thead>
            <tr>
                <td colspan="2">
                    <h3>Listing with Timeline</h3>
                </td>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>
                    <div class="timeline-ct timeline-ct-end">
                        <i class="fa fa-caret-up timeline-ct-point timeline-ct-md"></i>
                        <div class="listing-ct-panel listing-ct-maybe">
                            <div class="listing-ct-head">
                                <div class="listing-ct-actions">
                                    <button class="btn btn-default">Check for updates</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </td>
            </tr>
        </tbody>
        <tbody>
            <tr>
                <td>
                    <div class="timeline-ct">
                        <i class="fa fa-circle timeline-ct-point"></i>
                        <div class="listing-ct-panel">
                            <div class="listing-ct-head">
                                <div class="listing-ct-actions">
                                    <button class="btn btn-primary">Update and reboot</button>
                                </div>
                                <h3>fedora-atomic: 24.2</h3>
                                <div class="listing-ct-status">
                                    Available
                                </div>
                                <ul class="nav nav-tabs nav-tabs-pf">
                                    <li><a href="#">Tree</a></li>
                                    <li class="active"><a href="#">Packages</a></li>
                                </ul>
                            </div>
                            <div class="listing-ct-error alert" ng-if="error">
                                <span class="pficon pficon-warning-triangle-o"></span>
                                There was an error
                            </div>
                            <div class="listing-ct-body">
                                <div class="row">
                                    <div class="col-sm-6">
                                        <dl>
                                            <dt>Operating System</dt>
                                            <dd>fedora-atomic</dd>
                                            <dt>Revision Number</dt>
                                            <dd>24.2</dd>
                                            <dt>Released</dt>
                                            <dd title="2015-09-26 15:33">3 days ago</dd>
                                        </dl>
                                    </div>
                                    <div class="col-sm-6">
                                        <dl>
                                            <dt>Additions</dt>
                                            <dd>10 packages</dd>
                                            <dt>Removals</dt>
                                            <dd>3 packages</dd>
                                            <dt>Changes</dt>
                                            <dd>18 packages</dd>
                                        </dl>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </td>
            </tr>
        </tbody>
        <tbody class="active">
            <tr>
                <td>
                    <div class="timeline-ct">
                        <i class="fa fa-check-circle-o timeline-ct-point timeline-ct-lg active"></i>
                        <div class="listing-ct-panel">
                            <div class="listing-ct-head">
                                <div class="listing-ct-actions">
                                </div>
                                <div class="listing-ct-status">
                                    Installed
                                </div>
                                <h3>fedora-atomic: 24.1</h3>
                                <ul class="nav nav-tabs nav-tabs-pf">
                                    <li class="active"><a href="#">Tree</a></li>
                                    <li><a href="#">Packages</a></li>
                                </ul>
                            </div>
                            <div class="listing-ct-body">
                                <div class="row">
                                    <div class="col-sm-6">
                                        <dl>
                                            <dt>Operating System</dt>
                                            <dd>fedora-atomic</dd>
                                            <dt>Revision Number</dt>
                                            <dd>24.1</dd>
                                            <dt>Released</dt>
                                            <dd title="2015-08-29 15:33">1 month ago</dd>
                                        </dl>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </td>
            </tr>
        </tbody>
        <tbody>
            <tr>
                <td>
                    <div class="timeline-ct">
                        <div class="timeline-ct-point timeline-ct-md">
                            <div class="spinner"></div>
                        </div>
                        <div class="listing-ct-panel">
                            <div class="listing-ct-head">
                                <div class="listing-ct-actions">
                                </div>
                                <div class="listing-ct-status">
                                    Downloading manifests 85%
                                </div>
                                <h3>fedora-atomic: 24.0</h3>
                                <ul class="nav nav-tabs nav-tabs-pf">
                                    <li class="active"><a href="#">Tree</a></li>
                                    <li><a href="#">Packages</a></li>
                                </ul>
                            </div>
                            <div class="listing-ct-body">
                                <div class="row">
                                    <div class="col-sm-6">
                                        <dl>
                                            <dt>Operating System</dt>
                                            <dd>fedora-atomic</dd>
                                            <dt>Revision Number</dt>
                                            <dd>24.1</dd>
                                            <dt>Released</dt>
                                            <dd title="2015-08-29 15:33">1 month ago</dd>
                                        </dl>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>