personmock.html 44.3 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

Rafael Ostertag's avatar
Rafael Ostertag committed
40
41
42
43
44
45
46
47
<label>Upload to
    <select name="uploadTo" id="uploadTo">
        <option>404 error</option>
        <option>uploadhandler.php</option>
        <option>uploadhandler_error.php</option>
    </select>
</label>

48
49
50
51
52
53
54
55
<label>File Delete Url
    <select name="fileDeleteUrl" id="fileDeleteUrl">
        <option>404 error</option>
        <option>delete_file_ok.json</option>
        <option>delete_file_error.json</option>
    </select>
</label>

robot's avatar
robot committed
56

robot's avatar
robot committed
57
<div class="container-fluid">
robot's avatar
robot committed
58
59
60
61
62
    <div class="row hidden-xs">
        <div class="col-md-12">
            <h1>Title with a long text</h1>
        </div>
    </div>
robot's avatar
robot committed
63

robot's avatar
robot committed
64
    <div class="row">
robot's avatar
robot committed
65
66
        <div class="col-md-10">
            <ul id="myTabs" class="nav nav-pills" role="tablist">
67
68
69
70
71
72
                <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
73
74
                <li role="presentation" class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button">
75
                        more <span class="caret"></span>
robot's avatar
robot committed
76
77
                    </a>
                    <ul class="dropdown-menu">
78
79
80
81
82
83
                        <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
84
85
86
87
                    </ul>
                </li>

            </ul>
robot's avatar
robot committed
88
89
90
91
        </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
92
                    <button id="save-button" type="button" class="btn btn-default navbar-btn"><span
robot's avatar
robot committed
93
                            class="glyphicon glyphicon-ok"></span></button>
Rafael Ostertag's avatar
Rafael Ostertag committed
94
                    <button id="close-button" type="button" class="btn btn-default navbar-btn"><span
robot's avatar
robot committed
95
96
97
                            class="glyphicon glyphicon-remove"></span></button>
                </div>
                <div class="btn-group" role="group">
Rafael Ostertag's avatar
Rafael Ostertag committed
98
                    <button id="delete-button" type="button" class="btn btn-default navbar-btn"><span
robot's avatar
robot committed
99
100
101
                            class="glyphicon glyphicon-trash"></span></button>
                </div>
                <div class="btn-group" role="group">
102
                    <a id="form-new-button" href="personmock.html?s=badcaffe1" class="btn btn-default navbar-btn"><span
103
                            class="glyphicon glyphicon-plus"></span></a>
robot's avatar
robot committed
104
105
106
107
                </div>
            </div>
        </div>

robot's avatar
robot committed
108
    </div>
robot's avatar
robot committed
109
110


111
    <form id="myForm" class="form-horizontal" data-toggle="validator">
112
        <input type="hidden" name="s" value="badcaffee1234">
Rafael Ostertag's avatar
Rafael Ostertag committed
113

114
115
116
117
118
119
        <div class="tab-content">

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


robot's avatar
robot committed
120
121
                <div class="form-group">
                    <div class="col-md-2">
122
123
124
125
                        <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
126
                    </div>
127
                </div>
robot's avatar
robot committed
128

129
130
131
                <div class="form-group">
                    <div class="col-md-2">
                        <label for="name" class="control-label">Name</label>
robot's avatar
robot committed
132
133
                    </div>

134
                    <div class="col-md-6">
135
                        <input id="name" name="name" type="text" class="form-control">
robot's avatar
robot committed
136
                    </div>
137

robot's avatar
robot committed
138
                </div>
139

robot's avatar
robot committed
140
141
                <div class="form-group">
                    <div class="col-md-2">
142
                        <label for="firstname" class="control-label">Vorname</label>
robot's avatar
robot committed
143
144
145
                    </div>

                    <div class="col-md-6">
146
147
148
                        <input id="firstname" name="firstname" type="text" class="form-control" required>

                        <div class="help-block with-errors"></div>
robot's avatar
robot committed
149
150
                    </div>
                </div>
151

robot's avatar
robot committed
152
153
                <div class="form-group">
                    <div class="col-md-2">
154
                        <label for="nameShort" class="control-label">Vorname Kurz</label>
robot's avatar
robot committed
155
156
                    </div>
                    <div class="col-md-6">
157
158
159
160
                        <input id="nameShort" name="shortname" type="text" class="form-control" required
                               data-error="Short name is required">

                        <div class="help-block with-errors"></div>
robot's avatar
robot committed
161
162
163
164
165
166
                    </div>

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

robot's avatar
robot committed
168
169
170
171
172
                <div class="form-group">
                    <div class="col-md-2">
                        <label for="personHandle" class="control-label">Kurzform</label>
                    </div>
                    <div class="col-md-6">
173
174
                        <input id="personHandle" name="personhandle" type="text" class="form-control"
                               data-required="no">
robot's avatar
robot committed
175
176
177
178
179
180
181
                    </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>
182

robot's avatar
robot committed
183
184
185
186
187
                <div class="form-group">
                    <div class="col-md-2">
                        <label for="personTitle" class="control-label">Titel</label>
                    </div>
                    <div class="col-md-6">
188
                        <select id="personTitle" class="form-control" name="persontitle">
robot's avatar
robot committed
189
190
191
192
193
                            <option></option>
                            <option>Dr.</option>
                            <option>Prof. Dr.</option>
                        </select>
                    </div>
194
                </div>
robot's avatar
robot committed
195

196
197
198
199
200
201
202
203
204
205
                <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>
206
                                <input type="radio" name="gender">male
207
208
209
210
                            </label>
                        </div>
                        <div class="radio">
                            <label>
211
                                <input type="radio" name="gender">female
212
213
214
215
                            </label>
                        </div>
                    </div>
                    <div class="col-md-4">
robot's avatar
robot committed
216
217
218
                        <p class="help-block"></p>
                    </div>
                </div>
219
220
221
222
223
224
225
226


                <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
227
                        <input id="personGeburtstag" type="text" class="form-control" name="geburtstag">
228
229
230
231
232
233
234
235
236
237
238
239
240
241
                    </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
242
                        <input id="personMat" type="text" class="form-control" name="matno">
243
244
245
246
247
248
249
250
                    </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
251
252
253
254
255
256
257
258
259
260
261
262
263
                <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>
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280

                <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
281
282
283
284
285
286
287
288
289
290
291
292
293
                <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>
294

robot's avatar
robot committed
295
296
                <div class="form-group">
                    <div class="col-md-2">
297
                        <label for="personNameCredits" class="control-label">Credits</label>
robot's avatar
robot committed
298
                    </div>
299
300
301
302
303
304
305
                    <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
306

307
308
309
310
311
312
313
314
315
316
317
318
319
320
                <!--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
321
                        </div>
322
323
324
325
326
327
328
329
330
331

                    </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
332
333
                        </div>
                    </div>
334
335
336
337
338
339
340
341
342
                </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
343
344
                    </div>
                </div>
345
346
347
348
            </div>

            <!--pill: Adresse-->
            <div role="tabpanel" class="tab-pane" id="adresse">
robot's avatar
robot committed
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
                <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>

389
                <!--Adresse (subrecord)-->
robot's avatar
robot committed
390
                <div class="form-group">
391
392
393
394
395
                    <div class="col-md-12">
                        <b>subrecord Adresse</b>

                        <div id="subrecord_adresse">
                        </div>
robot's avatar
robot committed
396
                    </div>
397

robot's avatar
robot committed
398
                </div>
399
400
401
402
403

            </div>

            <!--pill: Display-->
            <div role="tabpanel" class="tab-pane" id="display">
robot's avatar
robot committed
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
                <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>
431

robot's avatar
robot committed
432
433
434
435
436
437
438
439
440
                <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">
441
                        <p class="help-block">Anzeige aller Publikationen seit diesem Jahr (persönliche Homepage).
robot's avatar
robot committed
442
443
444
                            0=disable</p>
                    </div>
                </div>
445

robot's avatar
robot committed
446
447
                <div class="form-group">
                    <div class="col-md-2">
448
                        <b class="control-label">Fotowand</b>
robot's avatar
robot committed
449
450
                    </div>
                    <div class="col-md-6">
451
452
453
454
455
456
457
458
459
                        <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
460

461
462
463
464
465
466
467
468
                            <div class="form-group">
                                <div class="checkbox">
                                    <label>
                                        <input type="checkbox">Zweizeilig
                                    </label>
                                </div>
                            </div>
                        </div>
robot's avatar
robot committed
469
470
                    </div>
                </div>
471
472
473
474
475
476
477
                <!--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
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
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
                <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>

645
646
647
648
649
650
                <!--Arbeitszeiten (subrecord)-->

            </div>

            <!--pill: Arbeitsgruppe-->
            <div role="tabpanel" class="tab-pane" id="arbeitsgruppe">
651
652
653
654
655
                <div class="form-group">
                    <div class="col-md-2">
                        <label for="fileupload" class="control-label">File upload</label>
                    </div>
                    <div class="col-md-6">
Rafael Ostertag's avatar
Rafael Ostertag committed
656
657
                        <div class="col-md-6">
                            <div class="uploaded-file "><span class="uploaded-file-name">john.doe.png</span>
658
                                <button class="delete-file" data-sip="filedeletesip"
Rafael Ostertag's avatar
Rafael Ostertag committed
659
660
661
                                        name="trash-picture:1"><span
                                        class="glyphicon glyphicon-trash"></span></button>
                            </div>
662
663
                            <input id="fileupload" name="picture:1" disabled="disabled" class="hidden" type="file"
                                   data-sip="fileuploadsip">
Rafael Ostertag's avatar
Rafael Ostertag committed
664
665
666
667

                            <div class="help-block with-errors"></div>
                        </div>

668
669
670
                    </div>

                    <div class=" col-md-4">
671
672
673
674
675
676
677
678
679
680
681
682
683
                        <p class="help-block"></p>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-md-2">
                        <label for="mytextarea" class="control-label">Text area</label>
                    </div>
                    <div class="col-md-6">
                        <textarea id="mytextarea" name="mytextarea"></textarea>
                    </div>

                    <div class=" col-md-4">
684
685
686
                        <p class="help-block"></p>
                    </div>
                </div>
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
                <!--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
705
706
                <div class="form-group">
                    <div class="col-md-2">
707
                        <label for="personAngelegt" class="control-label">Angelegt</label>
robot's avatar
robot committed
708
                    </div>
709
710
                    <div class="col-md-6">
                        <input id="personAngelegt" type="text" class="form-control">
robot's avatar
robot committed
711
                    </div>
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
                </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
735
                    <div class=" col-md-4">
736
737
                        <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
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
                    </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>

763
764
765
766
                <!--Registrierte MAC-Adressen (subrecord)-->
                <!--Hardware (subrecord)-->
                <!--Software Licenses (owner or used by) (subrecord)-->
            </div>
robot's avatar
robot committed
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
            <!--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
796
797
</div>

Rafael Ostertag's avatar
Rafael Ostertag committed
798
799
<script src="../js/jquery.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
800
<script src="../js/validator.min.js"></script>
Rafael Ostertag's avatar
Rafael Ostertag committed
801
<script src="../js/jqx-all.js"></script>
802
<script src="../js/EventEmitter.min.js"></script>
803
<script src="../js/qfq.debug.js"></script>
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
846
847
848
849
850
851
852
853
854
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
<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
908
                            initeditor: function (row, cellvalue, editor) {
909
                                var source = [
robot's avatar
robot committed
910
911
912
913
914
915
916
                                    'flag: free printing bw',
                                    'flag: free printing color',
                                    'flag: permission onlinetool',
                                    'flag: compute',
                                    'online permission',
                                    'admin'
                                ];
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
958
959
960
961
962
963
964
965
966
967
968
969
970
971

                                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
972
        var subrecord_adapter_2 = new $.jqx.dataAdapter(subrecord_source_2);
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
        $("#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>'
                                ];