blob: 23b87b42d8b2308ad2ba1a8c8a0925bcb618117f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
<legend>
<?= _('Grunddaten') ?>
</legend>
<label class="col-3">
<span class="required"><?= _('Name') ?></span>
<input type="text" name="name" id="wizard-name" maxlength="254" value="<?= htmlReady($values['name'] ?? '') ?>" required/>
</label>
<? if(count($types) > 1) : ?>
<label class="col-3">
<span class="required"><?= _('Typ') ?></span>
<select name="coursetype" id="wizard-coursetype">
<?php foreach ($types as $class => $subtypes) : ?>
<optgroup label="<?= htmlReady($class) ?>">
<?php foreach ($subtypes as $type) : ?>
<option value="<?= $type['id'] ?>"<?= $type['id'] == $values['coursetype'] ? ' selected="selected"' : '' ?>>
<?= htmlReady($type['name']) ?>
</option>
<?php endforeach ?>
</optgroup>
<?php endforeach ?>
</select>
</label>
<? else : ?>
<? $type = array_values($types)[0]; ?>
<input type="hidden" name="coursetype" value="<?= htmlReady($type[0]['id']) ?>">
<? endif ?>
<label class="col-3">
<?= _('Beschreibung') ?>
<textarea name="description" id="wizard-description"
rows="4"><?= htmlReady($values['description'] ?? '') ?></textarea>
</label>
<label class="col-3">
<span class="required"><?= _('Zugang') ?></span>
<select name="access" id="wizard-access">
<option value="all"
<? if (isset($values['access']) && $values['access'] === 'all') echo 'selected'; ?>>
<?= _('offen für alle') ?>
</option>
<option value="invite"
<? if (isset($values['access']) && $values['access'] === 'invite') echo 'selected'; ?>>
<?= _('auf Anfrage') ?>
</option>
<?php if (Config::get()->STUDYGROUPS_INVISIBLE_ALLOWED) : ?>
<option value="invisible"
<? if (isset($values['access']) && $values['access'] === 'invisible') echo 'selected'; ?>>
<?= _('unsichtbar') ?>
</option>
<?php endif ?>
</select>
</label>
<label><span class="required"><?= _('Nutzungsbedingungen')?></span></label>
<? if ($GLOBALS['perm']->have_perm('admin')) : ?>
<p style="font-weight: bold;">
<?= _('Ich habe die eingetragenen Personen darüber informiert, dass in Ihrem Namen eine Studiengruppe angelegt wird und versichere, dass Sie mit folgenden Nutzungsbedingungen einverstandenen sind:') ?>
</p>
<? endif ?>
<?= formatReady(Config::Get()->STUDYGROUP_TERMS) ?>
<label>
<input type="checkbox" name="accept" id="wizard-accept" required>
<?= _('Einverstanden') ?>
</label>
<input type="hidden" name="institute" value="<?= $values['institute'] ?>"/>
<input type="hidden" name="start_time" value="<?= $values['start_time'] ?>"/>
<input type="hidden" name="studygroup" value="1"/>
<?php foreach ($values['lecturers'] as $id => $assigned) : ?>
<input type="hidden" name="lecturers[<?= $id ?>]" value="1"/>
<?php endforeach ?>
|