blob: fef62793a94698b0d1ffe9db49a751515d1c0828 (
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
|
<?php
/**
* @var Admin_RoleController $controller
* @var Role $role
* @var User $user
* @var QuickSearch $qsearch
* @var Institute[] $institutes
*/
?>
<form action="<?= $controller->action_link('assign_role_institutes/' . $role->getRoleid() . '/' . $user->id) ?>" method="post" class="default" data-dialog="size=auto;reload-on-close">
<fieldset>
<legend>
<?= _('Einrichtungszuordnung anpassen') ?>
</legend>
<label>
<?= sprintf(_("Einrichtungszuordnung für %s in der Rolle %s"), htmlReady($user->getFullName()), htmlready($role->getRoleName()))?>
<div class="hgroup">
<?= $qsearch->render() ?>
</div>
</label>
<h4><?= _('Vorhandene Zuordnungen') ?></h4>
<ul>
<? foreach ($institutes as $institute): ?>
<li>
<?= htmlReady($institute->name) ?>
<a href="<?= $controller->action_link("assign_role_institutes/{$role->getRoleid()}/{$user->id}", ['remove_institute' => $institute->id]) ?>" data-dialog="size=auto;reload-on-close">
<?= Icon::create('trash') ?>
</a>
</li>
<? endforeach ?>
</ul>
</fieldset>
<footer data-dialog-button>
<?= Studip\Button::create(_('Einrichtung hinzufügen'), "add_institute", ["rel" => "lightbox"]) ?>
<?= Studip\LinkButton::createCancel(_('Schließen'), $controller->action_url('assign_role/' . $user->id), [
'data-dialog-button' => '',
'data-dialog' => 'size=auto;reload-on-close'
]) ?>
</footer>
</form>
|