aboutsummaryrefslogtreecommitdiff
path: root/app/views/evaluation
diff options
context:
space:
mode:
authorPhilipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de>2024-09-24 10:53:31 +0200
committerPhilipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de>2024-09-24 10:53:31 +0200
commit4459dd7917f4d1c34f40bb68f0e991e9c3d53e4c (patch)
tree5c07151ae61276d334e88f6309c30d439a85c12e /app/views/evaluation
parentda0022e5c1abbf9825ae76debaabdff7e8623bb4 (diff)
parent97a188592c679890a25c37ab78463add76a52ff7 (diff)
Merge branch 'main' into issue-3911issue-3911
Diffstat (limited to 'app/views/evaluation')
-rw-r--r--app/views/evaluation/_actions.php4
-rw-r--r--app/views/evaluation/_admin_list_vote.php27
-rw-r--r--app/views/evaluation/_buttons.php22
-rw-r--r--app/views/evaluation/_evaluation.php57
-rw-r--r--app/views/evaluation/display.php27
5 files changed, 0 insertions, 137 deletions
diff --git a/app/views/evaluation/_actions.php b/app/views/evaluation/_actions.php
deleted file mode 100644
index e702ff2..0000000
--- a/app/views/evaluation/_actions.php
+++ /dev/null
@@ -1,4 +0,0 @@
-<?= Icon::create('pause', 'clickable')->asImg() ?>
-<?= Icon::create('decline', 'clickable')->asImg() ?>
-<?= Icon::create('admin', 'clickable')->asImg() ?>
-<?= Icon::create('trash', 'clickable')->asImg() ?>
diff --git a/app/views/evaluation/_admin_list_vote.php b/app/views/evaluation/_admin_list_vote.php
deleted file mode 100644
index a98335b..0000000
--- a/app/views/evaluation/_admin_list_vote.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<? foreach ($votes as $vote): ?>
- <tr>
- <td>
- <?= htmlReady($vote->title) ?>
- </td>
- <td>
- <?= ObjectdisplayHelper::link($vote->author) ?>
- </td>
- <td>
- <?= strftime("%d.%m.%Y %T", $vote->startdate) ?>
- </td>
- <td>
- <? if ($vote->stopdate): ?>
- <?= strftime("%d.%m.%Y %T", $vote->stopdate) ?>
- <? else: ?>
- <? if ($vote->timespan): ?>
- <?= strftime("%d.%m.%Y %T", $vote->startdate + $vote->timespan) ?>
- <? else: ?>
- <?= _('Unbegrenzt') ?>
- <? endif; ?>
- <? endif; ?>
- </td>
- <td class="actions">
- <?= $this->render_partial("vote/_actions.php", ['vote' => $vote]) ?>
- </td>
- </tr>
-<? endforeach; ?> \ No newline at end of file
diff --git a/app/views/evaluation/_buttons.php b/app/views/evaluation/_buttons.php
deleted file mode 100644
index b5a3b33..0000000
--- a/app/views/evaluation/_buttons.php
+++ /dev/null
@@ -1,22 +0,0 @@
-<? if (!$controller->showResult($vote)): ?>
- <? if ($vote->isRunning() && !$nobody) : ?>
- <?= Studip\Button::create(_('Abstimmen'), 'vote', ['value' => $vote->id]) ?>
- <? endif ?>
- <?= Studip\LinkButton::create(_('Ergebnisse'), ContentBoxHelper::href($vote->id, ['preview[]' => $vote->id])) ?>
-<? else: ?>
- <?= Studip\LinkButton::create(_('Ergebnisse ausblenden'), ContentBoxHelper::href($vote->id, ['preview' => 0])) ?>
- <?= Request::get('sort')
- ? Studip\LinkButton::create(_('Nicht sortieren'), ContentBoxHelper::href($vote->id, ['preview[]' => $vote->id, 'sort' => 0]))
- : Studip\LinkButton::create(_('Sortieren'), ContentBoxHelper::href($vote->id, ['preview[]' => $vote->id, 'sort' => 1]))
- ?>
- <? if ($vote->changeable && $vote->state == 'active' && !$nobody): ?>
- <?= Studip\LinkButton::create(_('Antwort ändern'), ContentBoxHelper::href($vote->id, ['change' => 1])) ?>
- <? endif; ?>
- <? if (!$vote->anonymous && ($admin || $vote->namesvisibility)): ?>
- <? if (Request::get('revealNames') === $vote->id) : ?>
- <?= Studip\LinkButton::create(_('Namen ausblenden'), ContentBoxHelper::href($vote->id, ['revealNames' => null])) ?>
- <? else : ?>
- <?= Studip\LinkButton::create(_('Namen zeigen'), ContentBoxHelper::href($vote->id, ['revealNames' => $vote->id])); ?>
- <? endif; ?>
- <? endif; ?>
-<? endif; ?> \ No newline at end of file
diff --git a/app/views/evaluation/_evaluation.php b/app/views/evaluation/_evaluation.php
deleted file mode 100644
index 82c6fd1..0000000
--- a/app/views/evaluation/_evaluation.php
+++ /dev/null
@@ -1,57 +0,0 @@
-<? $is_new = ($evaluation->chdate >= object_get_visit($evaluation->id, 'eval', false, false)) && ($evaluation->author_id != $GLOBALS['user']->id);
-?>
-<article class="studip toggle <?=($is_new ? 'new' : '')?>" id="<?= $evaluation->id ?>" data-visiturl="<?=URLHelper::getScriptLink('dispatch.php/vote/visit')?>">
- <header>
- <h1>
- <a href="<?= ContentBoxHelper::switchhref($evaluation->id, ['contentbox_type' => 'eval']) ?>">
- <?= htmlReady($evaluation->title) ?>
- </a>
- </h1>
- <nav>
- <a href="<?= $evaluation->author ? URLHelper::getLink('dispatch.php/profile', ['username' => $evaluation->author->username]) : '' ?>">
- <?= $evaluation->author ? htmlReady($evaluation->author->getFullName()) : '' ?>
- </a> |
- <?= strftime("%d.%m.%Y", $evaluation->mkdate) ?>
- <? if ($admin): ?>
- <a title="<?= _("Evaluation bearbeiten") ?>" href="<?= URLHelper::getLink('admin_evaluation.php', ['openID' => $evaluation->id, 'rangeID' => $range_id]) ?>">
- <?= Icon::create('admin', 'clickable')->asImg() ?>
- </a>
- <? if (!$evaluation->enddate || $evaluation->enddate > time()): ?>
- <a title="<?= _("Evaluation stoppen") ?>" href="<?= URLHelper::getLink('admin_evaluation.php', ['evalID' => $evaluation->id, 'evalAction' => 'stop']) ?>">
- <?= Icon::create('pause', 'clickable')->asImg() ?>
- </a>
- <? else: ?>
- <a title="<?= _("Evaluation fortsetzen") ?>" href="<?= URLHelper::getLink('admin_evaluation.php', ['evalID' => $evaluation->id, 'evalAction' => 'continue']) ?>">
- <?= Icon::create('play', 'clickable')->asImg() ?>
- </a>
- <? endif; ?>
- <a title="<?= _("Evaluation löschen") ?>" href="<?= URLHelper::getLink('admin_evaluation.php', ['evalID' => $evaluation->id, 'evalAction' => 'delete_request']) ?>">
- <?= Icon::create('trash', 'clickable')->asImg() ?>
- </a>
- <a title="<?= _("Evaluation exportieren") ?>" href="<?= URLHelper::getLink('admin_evaluation.php', ['evalID' => $evaluation->id, 'evalAction' => 'export_request']) ?>">
- <?= Icon::create('export', 'clickable')->asImg() ?>
- </a>
- <a title="<?= _("Evaluation auswerten") ?>" href="<?= URLHelper::getLink('eval_summary.php', ['eval_id' => $evaluation->id]) ?>">
- <?= Icon::create('vote', 'clickable')->asImg() ?>
- </a>
- <? endif; ?>
- </nav>
- </header>
- <section>
- <?= formatReady($evaluation->text); ?>
- </section>
- <section>
- <?= \Studip\LinkButton::create(_('Anzeigen'), URLHelper::getURL('show_evaluation.php', ['evalID' => $evaluation->id]), ['data-dialog' => '', 'target' => '_blank']) ?>
- </section>
- <footer>
- <p>
- <?= _('Teilnehmende') ?>: <?= $evaluation->getNumberOfVotes() ?>
- </p>
- <p>
- <?= _('Anonym') ?>: <?= $evaluation->anonymous ? _('Ja') : _('Nein') ?>
- </p>
- <p>
- <?= _('Endzeitpunkt') ?>: <?= $evaluation->enddate ? strftime('%d.%m.%y, %H:%M', $evaluation->enddate) : _('Unbekannt') ?>
- </p>
- </footer>
-</article>
diff --git a/app/views/evaluation/display.php b/app/views/evaluation/display.php
deleted file mode 100644
index 35d3178..0000000
--- a/app/views/evaluation/display.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<? if ($admin || $evaluations): ?>
-<article class="studip">
- <header>
- <h1>
- <?= Icon::create('vote', 'info')->asImg(); ?>
- <?= _('Evaluationen') ?>
- </h1>
- <nav>
- <? if ($admin): ?>
- <a href="<?= URLHelper::getLink('admin_evaluation.php', ['rangeID' => $range_id]) ?>">
- <?= Icon::create('edit', 'clickable')->asImg(); ?>
- </a>
- <? endif; ?>
- </nav>
- </header>
-
- <? if (!$evaluations): ?>
- <section>
- <?= _('Keine Evaluationen vorhanden. Um neue Umfragen zu erstellen, klicken Sie rechts auf das Bearbeiten-Zeichen.') ?>
- </section>
- <? else: ?>
- <? foreach ($evaluations as $evaluation): ?>
- <?= $this->render_partial('evaluation/_evaluation.php', ['evaluation' => $evaluation]); ?>
- <? endforeach; ?>
- <? endif; ?>
-</article>
-<? endif; ?>