diff options
Diffstat (limited to 'app/views/evaluation/profiles/preedit.php')
| -rw-r--r-- | app/views/evaluation/profiles/preedit.php | 52 |
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 ?> |
