aboutsummaryrefslogtreecommitdiff
path: root/app/views/evaluation/profiles
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/evaluation/profiles')
-rw-r--r--app/views/evaluation/profiles/index.php4
-rw-r--r--app/views/evaluation/profiles/preedit.php48
2 files changed, 50 insertions, 2 deletions
diff --git a/app/views/evaluation/profiles/index.php b/app/views/evaluation/profiles/index.php
index 71c9ad0..3b1f672 100644
--- a/app/views/evaluation/profiles/index.php
+++ b/app/views/evaluation/profiles/index.php
@@ -90,8 +90,8 @@ use Studip\Button;
$actions = new ActionsWidget();
$actions->addLink(
_('Profil anlegen'),
- $controller->url_for('evaluation/profiles/edit'),
+ $controller->url_for('evaluation/profiles/preedit'),
Icon::create('add'),
- ['data-dialog' => '']
+ ['data-dialog' => 'size=auto']
);
Sidebar::Get()->addWidget($actions);
diff --git a/app/views/evaluation/profiles/preedit.php b/app/views/evaluation/profiles/preedit.php
new file mode 100644
index 0000000..38a2479
--- /dev/null
+++ b/app/views/evaluation/profiles/preedit.php
@@ -0,0 +1,48 @@
+<?php
+/**
+ * @var Evaluation_ProfilesController $controller
+ */
+?>
+
+<form method="post">
+ <?= CSRFProtection::tokenTag() ?>
+ <h2>Leeres Profil anlegen</h2>
+ <div>
+ <div class="clickable">
+ <button
+ class="as-link"
+ formaction="<?= $controller->link_for('/edit') ?>"
+ data-dialog="size=default"
+ style="vertical-align: center"
+ >
+ <?= Icon::create('add')->asSvg(50) ?>
+ <p><?= _('Neu anlegen') ?></p>
+ </button>
+ </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>
+ </div>
+ </div>
+</form>