From c43df6c862aead957a507989eb520fd3a1bc7272 Mon Sep 17 00:00:00 2001 From: Finn Schneider Date: Mon, 16 Mar 2026 17:49:47 +0100 Subject: dozent/tutor view course --- app/views/course/evaluation/index.php | 54 ++++++++++++++++++++++++-- app/views/evaluation/profiles/index.php | 2 +- lib/models/QuestionnaireEvalCentralProfile.php | 2 +- resources/assets/stylesheets/scss/tables.scss | 25 ++++++++++++ 4 files changed, 77 insertions(+), 6 deletions(-) diff --git a/app/views/course/evaluation/index.php b/app/views/course/evaluation/index.php index 193ecf7..19f6bdf 100644 --- a/app/views/course/evaluation/index.php +++ b/app/views/course/evaluation/index.php @@ -4,7 +4,9 @@ */ ?> + evaluations as $key => $evaluation) : ?> + eval_assignment->semester_id) ?>

@@ -14,12 +16,56 @@

- isStopped()) : ?> + render_partial('questionnaire/evaluate.php', ['questionnaire' => $evaluation, 'range_type' => 'course', 'range_id' => Context::getId()]) ?> - isAnswerable()) : ?> - render_partial('questionnaire/answer.php', ['questionnaire' => $evaluation, 'range_type' => 'course', 'range_id' => Context::getId()]) ?> + hasPermissionLevel('tutor', Context::get())) : ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
eval_assignment->startdate) ?>
eval_assignment->stopdate) ?>
anonymous ? _('Ja') : _('Nein') ?>
editanswers ? _('Ja') : _('Nein') ?>
+ resultvisibility]) ?> +
+ result_visible_for ? + _(QuestionnaireEvalCentralProfile::RESULT_VISIBLE_FOR_OPTIONS[$profile->result_visible_for]) + : _('Evaluations-Admins') ?> +
minimum_responses) ?>
-

+ isStopped()) : ?> + render_partial('questionnaire/evaluate.php', ['questionnaire' => $evaluation, 'range_type' => 'course', 'range_id' => Context::getId()]) ?> + isAnswerable()) : ?> + render_partial('questionnaire/answer.php', ['questionnaire' => $evaluation, 'range_type' => 'course', 'range_id' => Context::getId()]) ?> + +

+
diff --git a/app/views/evaluation/profiles/index.php b/app/views/evaluation/profiles/index.php index 8f7ec86..75bafbf 100644 --- a/app/views/evaluation/profiles/index.php +++ b/app/views/evaluation/profiles/index.php @@ -72,7 +72,7 @@ use Studip\Button; result_visible_for ? _(QuestionnaireEvalCentralProfile::RESULT_VISIBLE_FOR_OPTIONS[$profile->result_visible_for]) : - _('Admins') + _('Evaluations-Admins') ?> minimum_responses ?> diff --git a/lib/models/QuestionnaireEvalCentralProfile.php b/lib/models/QuestionnaireEvalCentralProfile.php index f3eef52..6c4a0bb 100644 --- a/lib/models/QuestionnaireEvalCentralProfile.php +++ b/lib/models/QuestionnaireEvalCentralProfile.php @@ -16,7 +16,7 @@ class QuestionnaireEvalCentralProfile extends SimpleORMap { public const RESULT_VISIBILITY_OPTIONS = - ['never' => 'nie', 'afterending' => 'nach Ende', 'afterparticipation' => 'nach Teilnahme']; + ['never' => 'Nie', 'afterending' => 'Nach Ende', 'afterparticipation' => 'Nach Teilnahme']; public const RESULT_VISIBLE_FOR_OPTIONS = ['autor' => 'Alle', 'tutor' => 'Tutor/-innen', 'dozent' => 'Lehrende']; protected static function configure($config = []): void diff --git a/resources/assets/stylesheets/scss/tables.scss b/resources/assets/stylesheets/scss/tables.scss index 251932f..1f59538 100644 --- a/resources/assets/stylesheets/scss/tables.scss +++ b/resources/assets/stylesheets/scss/tables.scss @@ -996,3 +996,28 @@ table.mycourses { height: 25px; width: 25px; } + +.row-headers { + text-align: left; + border-collapse: collapse; + width: stretch; + tr { + border-bottom: 1px solid var(--color--table-border) + } + th { + padding: 10px 5px 10px 10px; + width: 40%; + } + td { + padding: 10px 10px 10px 5px; + width: 60%; + } +} + +article.studip > table.row-headers:last-child { + margin-bottom: 0; + + > tbody:last-child > tr:last-child { + border-bottom: 0; + } +} -- cgit v1.0