aboutsummaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorFinn Schneider <schneider@data-quest.de>2026-02-23 12:06:30 +0100
committerFinn Schneider <schneider@data-quest.de>2026-03-13 17:25:01 +0000
commite690aab5c6e10a54235555dfaeba053bba519435 (patch)
tree3bbecde2fc31f1114e5d6619e67a26c580d56235 /app/views
parent31a373c968d2fb4e66c58e763ea9cc81f1eb668d (diff)
preedit transfer only if exist
Diffstat (limited to 'app/views')
-rw-r--r--app/views/evaluation/profiles/preedit.php52
1 files changed, 27 insertions, 25 deletions
diff --git a/app/views/evaluation/profiles/preedit.php b/app/views/evaluation/profiles/preedit.php
index 38a2479..ac503ec 100644
--- a/app/views/evaluation/profiles/preedit.php
+++ b/app/views/evaluation/profiles/preedit.php
@@ -6,7 +6,7 @@
<form method="post">
<?= CSRFProtection::tokenTag() ?>
- <h2>Leeres Profil anlegen</h2>
+ <h2><?= _('Neues Profil anlegen') ?></h2>
<div>
<div class="clickable">
<button
@@ -21,28 +21,30 @@
</div>
</form>
-<form method="post">
- <?= CSRFProtection::tokenTag() ?>
- <h2>Profildaten übernehmen</h2>
- <label>
- Aus Profil von Semester</br>
- <select name="sem_select">
- <?php foreach ($controller->semesters as $key => $semester) : ?>
- <option value="<?= $key ?>"><?= $semester ?></option>
- <?php endforeach ?>
- </select>
- </label>
- </br>
- </br>
- <div class="clickable">
- <button
- class="as-link"
- formaction="<?= $controller->link_for('/edit') ?>"
- data-dialog="size=default"
- >
- <?= Icon::create('copy')->asSvg(50) ?>
- <p><?= _('Daten übernehmen') ?></p>
- </button>
+<?php if (count($controller->semesters)) : ?>
+ <form method="post">
+ <?= CSRFProtection::tokenTag() ?>
+ <h2><?= _('Profildaten übernehmen') ?></h2>
+ <label>
+ <?= _('Aus Profil von Semester') ?></br>
+ <select name="sem_select">
+ <?php foreach ($controller->semesters as $key => $semester) : ?>
+ <option value="<?= $key ?>"><?= htmlReady($semester) ?></option>
+ <?php endforeach ?>
+ </select>
+ </label>
+ </br>
+ </br>
+ <div class="clickable">
+ <button
+ class="as-link"
+ formaction="<?= $controller->link_for('/edit') ?>"
+ data-dialog="size=default"
+ >
+ <?= Icon::create('copy')->asSvg(50) ?>
+ <p><?= _('Daten übernehmen') ?></p>
+ </button>
+ </div>
</div>
- </div>
-</form>
+ </form>
+<?php endif ?>