diff options
Diffstat (limited to 'app/views/evaluation/profiles/index.php')
| -rw-r--r-- | app/views/evaluation/profiles/index.php | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/app/views/evaluation/profiles/index.php b/app/views/evaluation/profiles/index.php index 8b4517e..8f7ec86 100644 --- a/app/views/evaluation/profiles/index.php +++ b/app/views/evaluation/profiles/index.php @@ -37,12 +37,22 @@ use Studip\Button; <td> <input type="checkbox" name="profiles[]" value="<?= htmlReady($profile->semester_id) ?>"> </td> - <td data-text="<?= $profile->semester->beginn ?>"> - <a href="<?= $controller->link_for("evaluation/profiles/edit/" . $profile->semester_id) ?>" - data-dialog> + <?php if ($profile->isEditable()) : ?> + <td data-text="<?= $profile->semester->beginn ?>"> + <a href="<?= $controller->link_for("evaluation/profiles/edit/" . $profile->semester_id) ?>" + data-dialog> + <?= htmlReady($profile->semester->name) ?> + </a> + </td> + <?php else : ?> + <td data-text="<?= $profile->semester->beginn ?>" + title="<?= sprintf( + _('Mindestens eine Evaluation des Profils %s ist gestartet. Es kann nicht mehr bearbeitet werden.'), + $profile->semester->name) + ?>"> <?= htmlReady($profile->semester->name) ?> - </a> - </td> + </td> + <?php endif ?> <td><?= htmlReady($profile->template->title) ?></td> <td> <?php foreach (Questionnaire::findMany(explode(',', $profile->optional_templates)) as $opt_template) : ?> |
