aboutsummaryrefslogtreecommitdiff
path: root/app/views/questionnaire/add_to_context.php
blob: 337d130b8d56cbfa093fa4099109b66a6892e241 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?
$icons = [
    'user' => "person",
    'course' => "seminar",
    'institute' => "institute"
];
?>
<div class="file_select_possibilities">
    <div>
        <a href="<?= $controller->link_for("questionnaire/edit", ['range_type' => Context::getType(), 'range_id' => Context::get()->id]) ?>"
           data-dialog="size=big">
            <?= Icon::create($icons[Context::getType()], Icon::ROLE_CLICKABLE)->asImg(50) ?>
            <?= htmlReady(Context::get()->name) ?>
        </a>
        <? foreach ($statusgruppen as $statusgruppe) : ?>
            <a href="<?= $controller->link_for('questionnaire/edit', ['range_type' => 'statusgruppe', 'range_id' => $statusgruppe->getId()]) ?>"
               data-dialog="size=big">
                <?= Icon::create('group2', Icon::ROLE_CLICKABLE)->asImg(50) ?>
                <?= htmlReady($statusgruppe->name) ?>
            </a>
        <? endforeach ?>
    </div>
</div>