personmock.html 41 KB
Newer Older
robot's avatar
robot committed
1
2
3
4
5
6
7
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">

Rafael Ostertag's avatar
Rafael Ostertag committed
8
9
10
11
    <link rel="stylesheet" href="../css/bootstrap.min.css">
    <link rel="stylesheet" href="../css/bootstrap-theme.min.css">
    <link rel="stylesheet" href="../css/jqx.base.css">
    <link rel="stylesheet" href="../css/jqx.darkblue.css">
12
    <link rel="stylesheet" href="../css/qfq-bs.css">
robot's avatar
robot committed
13
14
15
16
17
18
    <title>Person Form Mockup</title>


</head>
<body>

19
<label>Submit to
Rafael Ostertag's avatar
Rafael Ostertag committed
20
21
22
23
24
25
26
27
<select name="submitTo" id="submitTo">
    <option>404 error</option>
    <option>save_error_matno.json</option>
    <option>save_error_geburtstag.json</option>
    <option>save_no_redirect.json</option>
    <option>save_server_redirect.json</option>
    <option>save_client_redirect.json</option>
</select>
28
29
30
31
32
33
34
35
36
37
38
</label>

<label>Delete URL
    <select name="deleteUrl" id="deleteUrl">
        <option>404 error</option>
        <option>delete_client_redirect.json</option>
        <option>delete_error.json</option>
        <option>delete_no_redirect.json</option>
        <option>delete_server_redirect.json</option>
    </select>
</label>
Rafael Ostertag's avatar
Rafael Ostertag committed
39

robot's avatar
robot committed
40

robot's avatar
robot committed
41
<div class="container-fluid">
robot's avatar
robot committed
42
43
44
45
46
    <div class="row hidden-xs">
        <div class="col-md-12">
            <h1>Title with a long text</h1>
        </div>
    </div>
robot's avatar
robot committed
47

robot's avatar
robot committed
48
    <div class="row">
robot's avatar
robot committed
49
50
        <div class="col-md-10">
            <ul id="myTabs" class="nav nav-pills" role="tablist">
51
52
53
54
55
56
                <li role="presentation" class="active"><a href="#person" data-toggle="tab">Person</a></li>
                <li role="presentation"><a href="#person2" data-toggle="tab">Person2</a></li>
                <li role="presentation"><a href="#funktion" data-toggle="tab">Funktion</a></li>
                <li role="presentation"><a href="#adresse" data-toggle="tab">Adresse</a></li>
                <li role="presentation"><a href="#display" data-toggle="tab">Display</a></li>
                <li role="presentation"><a href="#settings" data-toggle="tab">Settings</a></li>
robot's avatar
robot committed
57
58
                <li role="presentation" class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button">
59
                        more <span class="caret"></span>
robot's avatar
robot committed
60
61
                    </a>
                    <ul class="dropdown-menu">
62
63
64
65
66
67
                        <li><a href="#arbeitsgruppe" data-toggle="tab">Arbeitsgruppe</a></li>
                        <li><a href="#publikation" data-toggle="tab">Publikation</a></li>
                        <li><a href="#privilegien" data-toggle="tab">Privilegien</a></li>
                        <li><a href="#technical" data-toggle="tab">Technical</a></li>
                        <li><a href="#notes" data-toggle="tab">Notes</a></li>
                        <li><a href="#referenzen" data-toggle="tab">Referenzen: Read Only</a></li>
robot's avatar
robot committed
68
69
70
71
                    </ul>
                </li>

            </ul>
robot's avatar
robot committed
72
73
74
75
        </div>
        <div class="col-md-2 ">
            <div class="btn-toolbar pull-right" role="toolbar">
                <div class="btn-group" role="group">
Rafael Ostertag's avatar
Rafael Ostertag committed
76
                    <button id="save-button" type="button" class="btn btn-default navbar-btn"><span
robot's avatar
robot committed
77
                            class="glyphicon glyphicon-ok"></span></button>
Rafael Ostertag's avatar
Rafael Ostertag committed
78
                    <button id="close-button" type="button" class="btn btn-default navbar-btn"><span
robot's avatar
robot committed
79
80
81
                            class="glyphicon glyphicon-remove"></span></button>
                </div>
                <div class="btn-group" role="group">
Rafael Ostertag's avatar
Rafael Ostertag committed
82
                    <button id="delete-button" type="button" class="btn btn-default navbar-btn"><span
robot's avatar
robot committed
83
84
85
                            class="glyphicon glyphicon-trash"></span></button>
                </div>
                <div class="btn-group" role="group">
Rafael Ostertag's avatar
Rafael Ostertag committed
86
                    <button id="new-button" type="button" class="btn btn-default navbar-btn"><span
robot's avatar
robot committed
87
                            class="glyphicon glyphicon-plus"></span></button>
robot's avatar
robot committed
88
89
90
91
                </div>
            </div>
        </div>

robot's avatar
robot committed
92
    </div>
robot's avatar
robot committed
93
94


Rafael Ostertag's avatar
Rafael Ostertag committed
95
    <form id="myForm" class="form-horizontal">
96
97
98
99
100
101
        <div class="tab-content">

            <!--pill: Person-->
            <div role="tabpanel" class="tab-pane active" id="person">


robot's avatar
robot committed
102
103
                <div class="form-group">
                    <div class="col-md-2">
104
105
106
107
                        <label for="id" class="control-label">id</label>
                    </div>
                    <div class="col-md-6 ">
                        <p id="id" type="text" class="form-control-static">12345678</p>
robot's avatar
robot committed
108
                    </div>
109
                </div>
robot's avatar
robot committed
110

111
112
113
                <div class="form-group">
                    <div class="col-md-2">
                        <label for="name" class="control-label">Name</label>
robot's avatar
robot committed
114
115
                    </div>

116
117
                    <div class="col-md-6">
                        <input id="name" type="text" class="form-control">
robot's avatar
robot committed
118
                    </div>
119

robot's avatar
robot committed
120
                </div>
121

robot's avatar
robot committed
122
123
                <div class="form-group">
                    <div class="col-md-2">
124
                        <label for="firstname" class="control-label">Vorname</label>
robot's avatar
robot committed
125
126
127
                    </div>

                    <div class="col-md-6">
128
                        <input id="firstname" type="text" class="form-control">
robot's avatar
robot committed
129
130
                    </div>
                </div>
131

robot's avatar
robot committed
132
133
                <div class="form-group">
                    <div class="col-md-2">
134
                        <label for="nameShort" class="control-label">Vorname Kurz</label>
robot's avatar
robot committed
135
136
                    </div>
                    <div class="col-md-6">
137
                        <input id="nameShort" type="text" class="form-control">
robot's avatar
robot committed
138
139
140
141
142
143
                    </div>

                    <div class="col-md-4">
                        <p class="help-block ">Abgekürzter Vorname. Für "Christian" z.B. "Ch."</p>
                    </div>
                </div>
144

robot's avatar
robot committed
145
146
147
148
149
150
151
152
153
154
155
156
157
                <div class="form-group">
                    <div class="col-md-2">
                        <label for="personHandle" class="control-label">Kurzform</label>
                    </div>
                    <div class="col-md-6">
                        <input id="personHandle" type="text" class="form-control">
                    </div>

                    <div class="col-md-4">
                        <p class="help-block">Z.B. MC fuer Michel Chipot. Nur nach Absprache mit IT. Achtung: Check
                            emaillisten (AG...).</p>
                    </div>
                </div>
158

robot's avatar
robot committed
159
160
161
162
163
164
165
166
167
168
169
                <div class="form-group">
                    <div class="col-md-2">
                        <label for="personTitle" class="control-label">Titel</label>
                    </div>
                    <div class="col-md-6">
                        <select id="personTitle" class="form-control">
                            <option></option>
                            <option>Dr.</option>
                            <option>Prof. Dr.</option>
                        </select>
                    </div>
170
                </div>
robot's avatar
robot committed
171

172
173
174
175
176
177
178
179
180
181
                <div class="form-group">
                    <div class="col-md-2">
                        <b class="control-label">
                            Gender
                        </b>
                    </div>

                    <div class="col-md-6">
                        <div class="radio">
                            <label>
182
                                <input type="radio" name="gender">male
183
184
185
186
                            </label>
                        </div>
                        <div class="radio">
                            <label>
187
                                <input type="radio" name="gender">female
188
189
190
191
                            </label>
                        </div>
                    </div>
                    <div class="col-md-4">
robot's avatar
robot committed
192
193
194
                        <p class="help-block"></p>
                    </div>
                </div>
195
196
197
198
199
200
201
202


                <div class="form-group">

                    <div class="col-md-2">
                        <label for="personGeburtstag" class="control-label">Geburtstag</label>
                    </div>
                    <div class="col-md-6">
Rafael Ostertag's avatar
Rafael Ostertag committed
203
                        <input id="personGeburtstag" type="text" class="form-control" name="geburtstag">
204
205
206
207
208
209
210
211
212
213
214
215
216
217
                    </div>

                </div>


            </div>

            <!--Pill: Person2-->
            <div role="tabpanel" class="tab-pane" id="person2">
                <div class="form-group">
                    <div class="col-md-2">
                        <label for="personMat" class="control-label">Matrikelnummer</label>
                    </div>
                    <div class="col-md-6">
Rafael Ostertag's avatar
Rafael Ostertag committed
218
                        <input id="personMat" type="text" class="form-control" name="matno">
219
220
221
222
223
224
225
226
                    </div>

                    <div class=" col-md-4">
                        <p class="help-block">Format: xxxxxxxx. Die von der Uni/ETH vergebenen Matrikelnummer.
                            Wichtig bei Studenten.</p>
                    </div>
                </div>

robot's avatar
robot committed
227
228
229
230
231
232
233
234
235
236
237
238
239
                <div class="form-group">
                    <div class="col-md-2">
                        <label for="personZusatz" class="control-label">Zusatz</label>
                    </div>
                    <div class="col-md-6">
                        <input id="personZusatz" type="text" class="form-control">
                    </div>

                    <div class="col-md-4">
                        <p class="help-block ">Anzeige auf der Kontaktseite hinter dem Namen (wird automatisch klein
                            und in Klammern gesetzt). Wiki</p>
                    </div>
                </div>
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256

                <div class="form-group">
                    <div class="col-md-2">
                        <label for="personeNameAlt" class="control-label">Name (alternativ)</label>
                    </div>
                    <div class="col-md-6">
                        <input id="personeNameAlt" type="text" class="form-control">
                    </div>

                    <div class=" col-md-4">
                        <p class="help-block"> Alternativer Nachname. Wechselt der Nachname einer Person (z.B.
                            durch Heirat) kann hier der alte Name hinterlegt werden. Das wird zur Zeit nur bei der
                            Anzeige
                            der Co-Autoren zu einer Publikation ausgewertet.</p>
                    </div>
                </div>

robot's avatar
robot committed
257
258
259
260
261
262
263
264
265
266
267
268
269
                <div class="form-group">
                    <div class="col-md-2">
                        <label for="personDisplay" class="control-label">Display Name</label>
                    </div>
                    <div class="col-md-6">
                        <input id="personDisplay" type="text" class="form-control">
                    </div>

                    <div class=" col-md-4">
                        <p class="help-block">Optional: Wird anstelle von 'titel / vorname / name / zusatz' auf der
                            Kontaktseite und der 'persoenlichen Page' angezeigt. Wiki</p>
                    </div>
                </div>
270

robot's avatar
robot committed
271
272
                <div class="form-group">
                    <div class="col-md-2">
273
                        <label for="personNameCredits" class="control-label">Credits</label>
robot's avatar
robot committed
274
                    </div>
275
276
277
278
279
280
281
                    <div class="col-md-6 ">
                        <p id="personNameCredits" type="text" class="form-control-static">6000</p>
                    </div>
                    <div class=" col-md-4">
                        <p class="help-block">für PrintQuota-System (in Rp.)</p>
                    </div>
                </div>
robot's avatar
robot committed
282

283
284
285
286
287
288
289
290
291
292
293
294
295
296
                <!--subrecord: account-->

                <!--subrecord: bilder zur person-->

            </div>

            <!--pill: Funktion-->
            <div role="tabpanel" class="tab-pane" id="funktion">
                <!--Persönliche Funktion (subrecord)-->
                <div class="form-group">
                    <div class="col-md-12">
                        <b>title subrecord_pers_funktion</b>

                        <div id="subrecord_pers_funktion">
robot's avatar
robot committed
297
                        </div>
298
299
300
301
302
303
304
305
306
307

                    </div>
                </div>

                <!--Properties der Person (subrecord)-->
                <div class="form-group">
                    <div class="col-md-12">
                        <b>title subrecord_properties</b>

                        <div id="subrecord_properties">
robot's avatar
robot committed
308
309
                        </div>
                    </div>
310
311
312
313
314
315
316
317
318
                </div>

                <!--Zustaendigkeitsbereiche (subrecord)-->
                <div class="form-group">
                    <div class="col-md-12">
                        <b>title subrecord_zustaendigkeitsbereiche</b>

                        <div id="subrecord_zustaendigkeitsbereiche">
                        </div>
robot's avatar
robot committed
319
320
                    </div>
                </div>
321
322
323
324
            </div>

            <!--pill: Adresse-->
            <div role="tabpanel" class="tab-pane" id="adresse">
robot's avatar
robot committed
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
                <div class="form-group">
                    <div class="col-md-2">
                        <label for="personRaum" class="control-label">Raum</label>
                    </div>
                    <div class="col-md-6">
                        <select id="personRaum" class="form-control">
                            <option>Raum</option>
                            <option>Raum</option>
                            <option>Raum</option>
                            <option>Raum</option>
                            <option>Raum</option>
                            <option>Raum</option>
                            <option>Raum</option>
                            <option>Raum</option>
                            <option>Raum</option>
                        </select>
                    </div>

                    <div class=" col-md-4">
                        <p class="help-block"></p>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-2">
                        <b class="control-label">
                            Show office number
                        </b>
                    </div>

                    <div class="col-md-6">
                        <div class="checkbox">
                            <label>
                                <input type="checkbox">
                            </label>

                            <p class="help-block"></p>
                        </div>
                    </div>
                </div>

365
                <!--Adresse (subrecord)-->
robot's avatar
robot committed
366
                <div class="form-group">
367
368
369
370
371
                    <div class="col-md-12">
                        <b>subrecord Adresse</b>

                        <div id="subrecord_adresse">
                        </div>
robot's avatar
robot committed
372
                    </div>
373

robot's avatar
robot committed
374
                </div>
375
376
377
378
379

            </div>

            <!--pill: Display-->
            <div role="tabpanel" class="tab-pane" id="display">
robot's avatar
robot committed
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
                <div class="form-group">
                    <div class="col-md-2">
                        <label for="personHompage" class="control-label">Hompage</label>
                    </div>
                    <div class="col-md-6">
                        <input id="personHompage" type="text" class="form-control">
                    </div>

                    <div class=" col-md-4">
                        <p class="help-block">Alternative zur default 'Persoenlichen Homepage'. Falls kein Link auf
                            eine Homepage gesetzt werden soll: <b>no_homepage</b></p>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-md-2">
                        <label for="personPublic" class="control-label">Publik. max. Jahre</label>
                    </div>
                    <div class="col-md-6">
                        <input id="personPublic" type="text" class="form-control">
                    </div>

                    <div class=" col-md-4">
                        <p class="help-block">Begrenzt die Anzeige der Publikationen auf die letzten 'x' Jahre
                            (persönliche Homepage).</p>
                    </div>
                </div>
407

robot's avatar
robot committed
408
409
410
411
412
413
414
415
416
                <div class="form-group">
                    <div class="col-md-2">
                        <label for="personPublic2" class="control-label">Publik. seit Jahr</label>
                    </div>
                    <div class="col-md-6">
                        <input id="personPublic2" type="text" class="form-control">
                    </div>

                    <div class=" col-md-4">
417
                        <p class="help-block">Anzeige aller Publikationen seit diesem Jahr (persönliche Homepage).
robot's avatar
robot committed
418
419
420
                            0=disable</p>
                    </div>
                </div>
421

robot's avatar
robot committed
422
423
                <div class="form-group">
                    <div class="col-md-2">
424
                        <b class="control-label">Fotowand</b>
robot's avatar
robot committed
425
426
                    </div>
                    <div class="col-md-6">
427
428
429
430
431
432
433
434
435
                        <div class="form-inline">
                            <div class="form-group">
                                <label for="personZeile" class="control-label">Zeile (A-K)</label>
                                <input id="personZeile" type="text" class="form-control">
                            </div>
                            <div class="form-group">
                                <label for="personSpalte" class="control-label">Zeile (1-10)</label>
                                <input id="personSpalte" type="text" class="form-control">
                            </div>
robot's avatar
robot committed
436

437
438
439
440
441
442
443
444
                            <div class="form-group">
                                <div class="checkbox">
                                    <label>
                                        <input type="checkbox">Zweizeilig
                                    </label>
                                </div>
                            </div>
                        </div>
robot's avatar
robot committed
445
446
                    </div>
                </div>
447
448
449
450
451
452
453
                <!--Module on my homepage (subrecord)-->
                <!--Conferences on my homepage (subrecord)-->

            </div>

            <!--pill: Settings-->
            <div role="tabpanel" class="tab-pane" id="settings">
robot's avatar
robot committed
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
                <div class="form-group">
                    <div class="col-md-2">
                        <b class="control-label">
                            Zeige Bild auf Homepage
                        </b>
                    </div>

                    <div class="col-md-6">
                        <div class="checkbox">
                            <label>
                                <input type="checkbox">
                            </label>
                        </div>
                    </div>
                    <div class=" col-md-4">
                        <p class="help-block">Feld 'Bild' muss auf ein Bild verweisen.</p>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-md-2">
                        <b class="control-label">
                            Show on Alumni Liste
                        </b>
                    </div>

                    <div class="col-md-6">
                        <div class="checkbox">
                            <label>
                                <input type="checkbox">
                            </label>
                        </div>
                    </div>
                    <div class=" col-md-4">
                        <p class="help-block">Assistenten die nicht mehr angestellt sind werden automatisch auf der
                            Alumni Liste angezeigt. Falls das nicht gewünscht ist Checkbox deaktivieren.</p>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-md-2">
                        <b class="control-label">
                            Modulbuchung Mat18x
                        </b>
                    </div>

                    <div class="col-md-6">
                        <div class="checkbox">
                            <label>
                                <input type="checkbox">
                            </label>
                        </div>
                    </div>
                    <div class="col-md-4">
                        <p class="help-block">Dieser Student hat min. eine 'Service'-Vorlesung gebucht (kein Math.
                            Student)</p>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-md-2">
                        <label for="personHomepageAlias" class="control-label">Homepage Alias</label>
                    </div>
                    <div class="col-md-6">
                        <select id="personHomepageAlias" class="form-control">
                            <option>alias</option>
                            <option>alias</option>
                            <option>alias</option>
                            <option>alias</option>
                            <option>alias</option>
                            <option>alias</option>
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-md-2">
                        <label for="personSAPId" class="control-label">SAP ID</label>
                    </div>
                    <div class="col-md-6">
                        <input id="personSAPId" type="text" class="form-control">
                    </div>
                    <div class="col-md-4">
                        <p class="help-block ">optional: ID dieser Person im SAP</p>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-md-2">
                        <b class="control-label">
                            Reminder Veranstaltung
                        </b>
                    </div>

                    <div class="col-md-6">
                        <div class="checkbox">
                            <label>
                                <input type="checkbox">
                            </label>

                        </div>
                    </div>
                    <div class="col-md-4">
                        <p class="help-block">Empfängt 'Reminder'-Mails für Veranstaltungen.</p>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-md-2">
                        <b class="control-label">
                            Reminder Konferenz
                        </b>
                    </div>

                    <div class="col-md-6">
                        <div class="checkbox">
                            <label>
                                <input type="checkbox">
                            </label>

                        </div>
                    </div>
                    <div class="col-md-4">
                        <p class="help-block">Empfängt 'Reminder'-Mails für Konferenzen.</p>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-md-2">
                        <b class="control-label">
                            Reminder Diss.-Vortrag
                        </b>
                    </div>

                    <div class="col-md-6">
                        <div class="checkbox">
                            <label>
                                <input type="checkbox">
                            </label>

                        </div>
                    </div>
                    <div class="col-md-4">
                        <p class="help-block">Empfängt 'Reminder'-Mails für Diss.-Vorträge.</p>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-md-2">
                        <b class="control-label">
                            Reminder AG-Seminar
                        </b>
                    </div>

                    <div class="col-md-6">
                        <div class="checkbox">
                            <label>
                                <input type="checkbox">
                            </label>

                        </div>
                    </div>
                    <div class="col-md-4">
                        <p class="help-block">Empfängt 'Reminder'-Mails für AG-Seminare.</p>
                    </div>
                </div>

621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
                <!--Arbeitszeiten (subrecord)-->

            </div>

            <!--pill: Arbeitsgruppe-->
            <div role="tabpanel" class="tab-pane" id="arbeitsgruppe">
                <!--Sekretariat fuer Arbeitsgruppe (subrecord)-->
                <!--Arbeitsgruppe (subrecord)-->
            </div>

            <!--pill: Publikation-->
            <div role="tabpanel" class="tab-pane" id="publikation">
                <!--Publikation(subrecord)-->
                <!--Dissertation / Verteidigung(subrecord)-->
                <!--Hauptthemen Publikationen(subrecord)-->
            </div>

            <!--pill: Privilegien-->
            <div role="tabpanel" class="tab-pane" id="privilegien">
                <!--Administration von Gaesten fuer: (subrecord)-->
            </div>

            <!--pill: Technical-->
            <div role="tabpanel" class="tab-pane" id="technical">
robot's avatar
robot committed
645
646
                <div class="form-group">
                    <div class="col-md-2">
647
                        <label for="personAngelegt" class="control-label">Angelegt</label>
robot's avatar
robot committed
648
                    </div>
649
650
                    <div class="col-md-6">
                        <input id="personAngelegt" type="text" class="form-control">
robot's avatar
robot committed
651
                    </div>
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
                </div>

                <div class="form-group">
                    <div class="col-md-2">
                        <label for="personFe" class="control-label">FE User Id</label>
                    </div>
                    <div class="col-md-6">
                        <input id="personFe" type="text" class="form-control">
                    </div>

                    <div class="col-md-4">
                        <p class="help-block">FE User ID aus der Typo3 Front End User Verwaltung.</p>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-md-2">
                        <label for="personUniqueId" class="control-label">unique ID</label>
                    </div>
                    <div class="col-md-6">
                        <input id="personUniqueId" type="text" class="form-control">
                    </div>

robot's avatar
robot committed
675
                    <div class=" col-md-4">
676
677
                        <p class="help-block">Eindeutige ID, fuer Personen mit gleichem Namen (i.d.R. leer).
                            Achtung: Pro Name muss min. ein Name eine leere unique ID haben. </p>
robot's avatar
robot committed
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-md-2">
                        <label for="personAuth" class="control-label">auth</label>
                    </div>
                    <div class="col-md-6 ">
                        <p id="personAuth" type="text" class="form-control-static">asdfasfdasf</p>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-md-2">
                        <label for="personAutoUpdate" class="control-label">auto_update</label>
                    </div>
                    <div class="col-md-6">
                        <input id="personAutoUpdate" type="text" class="form-control">
                    </div>

                    <div class=" col-md-4">
                        <p class="help-block"> =0 - kein Auto Update</p>
                    </div>
                </div>

703
704
705
706
                <!--Registrierte MAC-Adressen (subrecord)-->
                <!--Hardware (subrecord)-->
                <!--Software Licenses (owner or used by) (subrecord)-->
            </div>
robot's avatar
robot committed
707

708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
            <!--pill: Notes-->
            <div role="tabpanel" class="tab-pane" id="notes">
                <!--Administrative Notizen zur Person (subrecord)-->
            </div>

            <!--pill: Referenzen-->
            <div role="tabpanel" class="tab-pane" id="referenzen">
                <!--Homepage Notizen (subrecord)-->
                <!--Organisator: Seminar (subrecord)-->
                <!--Organisator: Konferenz (subrecord)-->
                <!--Sprecher: Konferenz (subrecord)-->
                <!--Sprecher: Seminar (subrecord)-->
                <!--Dozent: Vorlesung (subrecord)-->
                <!--Uebungsleiter: Vorlesung (subrecord)-->
                <!--Gast (subrecord)-->
                <!--Student einer Vorlesung (subrecord)-->
                <!--Student eines Seminars /Kolloquiums (subrecord)-->
                <!--Einladung schriftliche Pruefung (subrecord)-->
                <!--Webbox (subrecord)-->
                <!--Notizen zu Workflows (subrecord)-->
                <!--Konferenzteilnehmer (subrecord)-->
                <!--Workflow (subrecord)-->

            </div>


        </div>
    </form>
robot's avatar
robot committed
736
737
</div>

Rafael Ostertag's avatar
Rafael Ostertag committed
738
739
740
<script src="../js/jquery.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/jqx-all.js"></script>
741
<script src="../js/qfq.debug.js"></script>
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
<script type="text/javascript">
    $(function () {

        $("#subrecord_adresse").jqxDataTable(
                {
                    columns: [
                        {text: 'id', datafield: 'id', minWidth: 30},
                        {text: 'Name 2', datafield: 'name2', minWidth: 30},
                        {text: 'Organisation', datafield: 'organisation', minWidth: 30},
                        {text: 'Abteilung', datafield: 'abteilung', minWidth: 30},
                        {text: 'Position', datafield: 'position', minWidth: 30},
                        {text: 'Strasse', datafield: 'strasse', minWidth: 30},
                        {text: 'PLZ', datafield: 'plz', minWidth: 30},
                        {text: 'Ort', datafield: 'ort', minWidth: 30},
                        {text: 'Land', datafield: 'land', minWidth: 30},
                        {text: 'Telefon', datafield: 'telefon', minWidth: 30},
                        {text: 'FAX', datafield: 'fax', minWidth: 30},
                        {text: 'Mobil', datafield: 'mobil', minWidth: 30},
                        {text: 'Email', datafield: 'Email', minWidth: 30},
                        {text: 'Typ', datafield: 'typ', minWidth: 30},
                        {text: 'UZH Lotus Fetchmail', datafield: 'UZH Lotus Fetchmail', minWidth: 30},
                        {text: 'Von', datafield: 'von', minWidth: 30},
                        {text: 'Bis', datafield: 'bis', minWidth: 30}
                    ],
                    sortable: true,
                    height: "300",
                    columnsResize: true,
                    filterable: true
                });

        $("#subrecord_pers_funktion").jqxDataTable(
                {
                    columns: [
                        {text: 'id', datafield: 'id', minWidth: 30},
                        {text: 'gr_id_function', datafield: 'gr_id_function', minWidth: 30},
                        {text: 'Function', datafield: 'Function', minWidth: 30},
                        {text: 'von', datafield: 'von', minWidth: 30},
                        {text: 'bis', datafield: 'bis', minWidth: 30},
                        {text: 'Pri', datafield: 'Pri', minWidth: 30},
                        {text: 'valid', datafield: 'valid', minWidth: 30},
                        {text: 'Semester', datafield: 'Semester', minWidth: 30},
                        {text: 'quit', datafield: 'quit', minWidth: 30}

                    ],
                    sortable: true,
                    height: "300",
                    columnsResize: true,
                    showToolbar: true,
                    renderToolbar: function (toolBar) {
                        toolBar.jqxToolBar({
                            tools: "button button button | button button | button button button | button button",
                            initTools: function (type, index, tool, menuToolIninitialization) {
                                var icons = [
                                    '<span class="glyphicon glyphicon-plus"></span>',
                                    '<span class="glyphicon glyphicon-pencil"></span>',
                                    '<span class="glyphicon glyphicon-trash"></span>',
                                    '<span class="glyphicon glyphicon-ok-circle"></span>',
                                    '<span class="glyphicon glyphicon-ok-sign"></span>',
                                    '<span class="glyphicon glyphicon-copy"></span>',
                                    '<span class="glyphicon glyphicon-paste"></span>',
                                    '<span class="glyphicon glyphicon-scissors"></span>',
                                    '<span class="glyphicon glyphicon-filter"></span>',
                                    '<span class="glyphicon glyphicon-export"></span>'
                                ];
                                tool.append(icons[index]);

                                switch (index) {
                                    case 8:
                                        tool.click(function (evt) {
                                            evt.preventDefault();
                                            $("#subrecord_pers_funktion").jqxDataTable(
                                                    {
                                                        filterable: !$("#subrecord_pers_funktion").jqxDataTable('filterable')
                                                    }
                                            );
                                        });

                                }
                            }
                        });
                    }
                });

        var subrecord_source = {
            datatype: "json",
            datafields: [
                {name: 'id'},
                {name: 'property'},
                {name: 'lock_invert'}
            ],
            url: 'mockData/person_properties.json'
        };

        var subrecord_adapter = new $.jqx.dataAdapter(subrecord_source);
        $("#subrecord_properties").jqxGrid(
                {
                    source: subrecord_adapter,
                    columns: [
                        {text: 'id', datafield: 'id', minWidth: 30},
                        {
                            text: 'Property',
                            datafield: 'property',
                            minWidth: 30,
                            columntype: 'dropdownlist',
robot's avatar
robot committed
846
                            initeditor: function (row, cellvalue, editor) {
847
                                var source = [
robot's avatar
robot committed
848
849
850
851
852
853
854
                                    'flag: free printing bw',
                                    'flag: free printing color',
                                    'flag: permission onlinetool',
                                    'flag: compute',
                                    'online permission',
                                    'admin'
                                ];
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909

                                editor.jqxDropDownList({source: source});
                            }
                        },
                        {text: 'Lock / Invert', datafield: 'lock_invert', minWidth: 30, columntype: 'checkbox'},
                    ],
                    sortable: true,
                    height: 300,
                    columnsResize: true,
                    showToolbar: true,
                    editable: true,
                    renderToolbar: function (toolBar) {
                        toolBar.jqxToolBar({
                            tools: "button button button | button button | button button button | button button",
                            initTools: function (type, index, tool, menuToolIninitialization) {
                                var icons = [
                                    '<span class="glyphicon glyphicon-plus"></span>',
                                    '<span class="glyphicon glyphicon-pencil"></span>',
                                    '<span class="glyphicon glyphicon-trash"></span>',
                                    '<span class="glyphicon glyphicon-ok-circle"></span>',
                                    '<span class="glyphicon glyphicon-ok-sign"></span>',
                                    '<span class="glyphicon glyphicon-copy"></span>',
                                    '<span class="glyphicon glyphicon-paste"></span>',
                                    '<span class="glyphicon glyphicon-scissors"></span>',
                                    '<span class="glyphicon glyphicon-filter"></span>',
                                    '<span class="glyphicon glyphicon-export"></span>'
                                ];
                                tool.append(icons[index]);

                                switch (index) {
                                    case 8:
                                        tool.click(function (evt) {
                                            evt.preventDefault();
                                            $("#subrecord_properties").jqxDataTable(
                                                    {
                                                        filterable: !$("#subrecord_properties").jqxDataTable('filterable')
                                                    }
                                            );
                                        });

                                }
                            }
                        });
                    }
                });

        var subrecord_source_2 = {
            datatype: "json",
            datafields: [
                {name: 'id'},
                {name: 'bereich'}
            ],
            url: 'mockData/zustaendigkeitsbereiche.json'
        };

robot's avatar
robot committed
910
        var subrecord_adapter_2 = new $.jqx.dataAdapter(subrecord_source_2);
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
        $("#subrecord_zustaendigkeitsbereiche").jqxDataTable(
                {
                    source: subrecord_adapter_2,
                    columns: [
                        {text: 'id', datafield: 'id', minWidth: 30},
                        {text: 'Bereich', datafield: 'bereich', minWidth: 30},
                    ],
                    sortable: true,
                    width: 500,
                    height: 300,
                    columnsResize: true,
                    showToolbar: true,
                    renderToolbar: function (toolBar) {
                        toolBar.jqxToolBar({
                            tools: "button button button | button button | button button button | button button",
                            initTools: function (type, index, tool, menuToolIninitialization) {
                                var icons = [
                                    '<span class="glyphicon glyphicon-plus"></span>',
                                    '<span class="glyphicon glyphicon-pencil"></span>',
                                    '<span class="glyphicon glyphicon-trash"></span>',
                                    '<span class="glyphicon glyphicon-ok-circle"></span>',
                                    '<span class="glyphicon glyphicon-ok-sign"></span>',
                                    '<span class="glyphicon glyphicon-copy"></span>',
                                    '<span class="glyphicon glyphicon-paste"></span>',
                                    '<span class="glyphicon glyphicon-scissors"></span>',
                                    '<span class="glyphicon glyphicon-filter"></span>',
                                    '<span class="glyphicon glyphicon-export"></span>'
                                ];
                                tool.append(icons[index]);

                                switch (index) {
                                    case 8:
                                        tool.click(function (evt) {
                                            evt.preventDefault();
                                            $("#subrecord_zustaendigkeitsbereiche").jqxDataTable(
                                                    {
                                                        filterable: !$("#subrecord_zustaendigkeitsbereiche").jqxDataTable('filterable')
                                                    }
                                            );
                                        });

                                }
                            }
                        });
                    }
                });

Rafael Ostertag's avatar
Rafael Ostertag committed
958
959
        var qfqPage = new QfqNS.QfqPage({
            tabsId: 'myTabs',
Rafael Ostertag's avatar
Rafael Ostertag committed
960
            formId: 'myForm',
961
962
            submitTo: 'api/' + $("#submitTo").val(),
            deleteUrl: 'api/' + $("#deleteUrl").val()
Rafael Ostertag's avatar
Rafael Ostertag committed
963
964
965
966
967
        });

        $("#submitTo").on("change", function (evt) {
            qfqPage.settings.submitTo = 'api/' + $(evt.target).val();
            qfqPage.qfqForm.submitTo = 'api/' + $(evt.target).val();
Rafael Ostertag's avatar
Rafael Ostertag committed
968
        });
Rafael Ostertag's avatar
Rafael Ostertag committed
969

970
971
972
973
974
        $("#deleteUrl").on("change", function (evt) {
            qfqPage.settings.deleteUrl = 'api/' + $(evt.target).val();
            qfqPage.qfqForm.deleteUrl = 'api/' + $(evt.target).val();
        });

Rafael Ostertag's avatar
Rafael Ostertag committed
975
        QfqNS.Log.level = 0;
Rafael Ostertag's avatar
Rafael Ostertag committed
976
    });
977
</script>
robot's avatar
robot committed
978
979
</body>
</html>