aboutsummaryrefslogtreecommitdiff
path: root/app/views/questionnaire/add_to_context.php
blob: 7e2e5e78639c735b4942c4c80c8e6e4917bd7414 (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>
            <?= 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>
                <?= Icon::create('group2', Icon::ROLE_CLICKABLE)->asImg(50) ?>
                <?= htmlReady($statusgruppe->name) ?>
            </a>
        <? endforeach ?>
    </div>
</div>