blob: 5ac8d16653374318b4b6f186d35869108f056919 (
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
|
<?
# Lifter010: TODO
use Studip\Button, Studip\LinkButton;
?>
<? if (isset($flash['message'])): ?>
<?= MessageBox::success($flash['message']) ?>
<? endif ?>
<form action="<?= $controller->url_for('admin/plugin/save_default_activation', $plugin_id) ?>" method="post" class="default">
<?= CSRFProtection::tokenTag() ?>
<input type="hidden" name="studip_ticket" value="<?= get_ticket() ?>">
<fieldset>
<legend>
<?= _('Standard-Aktivierung in Veranstaltungen') ?>: <?= htmlReady($plugin_name) ?>
</legend>
<label>
<?= _('Einrichtung') ?>
<select name="selected_inst[]" multiple size="20" class="nested-select" style="width: 100%">
<? foreach ($institutes as $id => $institute): ?>
<option class="nested-item-header" value="<?= $id ?>" <?= in_array($id, $selected_inst) ? 'selected' : '' ?>>
<?= htmlReady($institute['name']) ?>
</option>
<? if (isset($institute['children'])): ?>
<? foreach ($institute['children'] as $id => $child): ?>
<option class="nested-item" value="<?= $id ?>" <?= in_array($id, $selected_inst) ? 'selected' : '' ?>>
<?= htmlReady($child['name']) ?>
</option>
<? endforeach ?>
<? endif ?>
<? endforeach ?>
</select>
</label>
</fieldset>
<footer>
<?= Button::create(_('Übernehmen'),'save', ['title' => _('Einstellungen speichern')])?>
<?= LinkButton::create('<< ' . _("Zurück"), $controller->url_for('admin/plugin'), ['title' => _('Zurück zur Plugin-Verwaltung')])?>
</footer>
</form>
|