Newer
Older
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
<form class="default" action="<?= $controller->link_for('admin/tree/store', get_class($node), $node->id ?: null) ?>" method="post">
<section>
<label>
<?= _('Name') ?>
<input type="text" name="name"
placeholder="<?= _('Name des Eintrags (wird bei Zuweisung zu einer Stud.IP-Einrichtung überschrieben)') ?>">
</label>
</section>
<? if (get_class($node) === StudipStudyArea::class): ?>
<section>
<label>
<?= _('Infotext') ?>
<textarea name="description" rows="3"></textarea>
</label>
</section>
<section>
<label>
<?= _('Typ') ?>
<select name="type">
<? foreach ($GLOBALS['SEM_TREE_TYPES'] as $index => $type) : ?>
<option value="<?= htmlReady($index) ?>">
<?= $type['name'] ?: _('Standard') ?>
<?= !$type['editable'] ? _('(nicht mehr nachträglich änderbar)') : '' ?>
<?= $type['hidden'] ? _('(dieser Knoten ist versteckt)') : '' ?>
</option>
<? endforeach ?>
</select>
</label>
</section>
<? endif ?>
<section>
<label>
<?= _('Elternelement') ?>
<?= $treesearch->render() ?>
</label>
</section>
<section>
<label>
<?= _('Zu einer Stud.IP-Einrichtung zuordnen') ?>
<?= $instsearch->render() ?>
</label>
</section>
<input type="hidden" name="from" value="<?= htmlReady($from) ?>">
<?= CSRFProtection::tokenTag() ?>
<footer data-dialog-button>
<?= Studip\Button::createAccept(_('Speichern'), 'store') ?>
<?= Studip\Button::createCancel(_('Abbrechen'), 'cancel', ['data-dialog' => 'close']) ?>
</footer>
</form>