aboutsummaryrefslogtreecommitdiff
path: root/app/views/course/evaluation/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/course/evaluation/index.php')
-rw-r--r--app/views/course/evaluation/index.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/app/views/course/evaluation/index.php b/app/views/course/evaluation/index.php
index b3d9bbc..a7268d0 100644
--- a/app/views/course/evaluation/index.php
+++ b/app/views/course/evaluation/index.php
@@ -1 +1,21 @@
<?php
+/**
+ * @var Course_EvaluationController $controller
+ */
+?>
+
+<?php foreach ($controller->evaluations as $evaluation) : ?>
+
+<?php endforeach ?>
+
+<?php
+if (User::findCurrent()->hasPermissionLevel('tutor', Context::get())) {
+ $actions = new ActionsWidget();
+ $actions->addLink(
+ _("QR-Code für Studierende anzeigen"),
+ URLHelper::getURL('dispatch.php/course/evaluation'),
+ Icon::create("code-qr", "clickable"),
+ ['data-qr-code' => sprintf(_( 'Evaluation zur Veranstaltung %s'), Context::get()->getFullname('number-name'))]
+ );
+ Sidebar::Get()->addWidget($actions);
+}