Skip to content
Snippets Groups Projects
Commit b596e3d3 authored by David Siegfried's avatar David Siegfried
Browse files

Biest 1086

Closes #1086

Merge request studip/studip!647
parent 06bc1d02
No related branches found
No related tags found
No related merge requests found
...@@ -8,13 +8,13 @@ $icons = [ ...@@ -8,13 +8,13 @@ $icons = [
<div class="file_select_possibilities"> <div class="file_select_possibilities">
<div> <div>
<a href="<?= $controller->link_for("questionnaire/edit", ['range_type' => Context::getType(), 'range_id' => Context::get()->id]) ?>" <a href="<?= $controller->link_for("questionnaire/edit", ['range_type' => Context::getType(), 'range_id' => Context::get()->id]) ?>"
data-dialog> data-dialog="size=big">
<?= Icon::create($icons[Context::getType()], Icon::ROLE_CLICKABLE)->asImg(50) ?> <?= Icon::create($icons[Context::getType()], Icon::ROLE_CLICKABLE)->asImg(50) ?>
<?= htmlReady(Context::get()->name) ?> <?= htmlReady(Context::get()->name) ?>
</a> </a>
<? foreach ($statusgruppen as $statusgruppe) : ?> <? foreach ($statusgruppen as $statusgruppe) : ?>
<a href="<?= $controller->link_for("questionnaire/edit", ['range_type' => "statusgruppe", 'range_id' => $statusgruppe->getId()]) ?>" <a href="<?= $controller->link_for("questionnaire/edit", ['range_type' => "statusgruppe", 'range_id' => $statusgruppe->getId()]) ?>"
data-dialog> data-dialog="size=big">
<?= Icon::create('group2', Icon::ROLE_CLICKABLE)->asImg(50) ?> <?= Icon::create('group2', Icon::ROLE_CLICKABLE)->asImg(50) ?>
<?= htmlReady($statusgruppe->name) ?> <?= htmlReady($statusgruppe->name) ?>
</a> </a>
......
...@@ -39,7 +39,7 @@ $actions = new ActionsWidget(); ...@@ -39,7 +39,7 @@ $actions = new ActionsWidget();
$actions->addLink( $actions->addLink(
_('Fragebogen erstellen'), _('Fragebogen erstellen'),
$controller->url_for('questionnaire/add_to_context', $range_type ? ['range_type' => $range_type, 'range_id' => Context::getId()]: []), $controller->url_for('questionnaire/add_to_context', $range_type ? ['range_type' => $range_type, 'range_id' => Context::getId()]: []),
Icon::create('add', 'clickable'), Icon::create('add'),
['data-dialog' => 'size=auto'] ['data-dialog' => 'size=auto']
); );
Sidebar::Get()->addWidget($actions); Sidebar::Get()->addWidget($actions);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment