diff options
Diffstat (limited to 'app/views/questionnaire')
11 files changed, 21 insertions, 21 deletions
diff --git a/app/views/questionnaire/_answer_description_container.php b/app/views/questionnaire/_answer_description_container.php index 26c45b7..dfdb9f8 100644 --- a/app/views/questionnaire/_answer_description_container.php +++ b/app/views/questionnaire/_answer_description_container.php @@ -10,7 +10,7 @@ </div> <article class="description"> <? if (isset($vote->questiondata['mandatory']) && $vote->questiondata['mandatory']) : ?> - <?= Icon::create('star', Icon::ROLE_ATTENTION)->asSvg(['class' => 'text-bottom', 'alt' => '']) ?> + <?= Icon::create('star', Icon::ROLE_ATTENTION)->asImg(['class' => 'text-bottom', 'alt' => '']) ?> <?= _('Pflichtantwort') ?> <? endif ?> <?= formatReady($vote->questiondata['description']) ?> diff --git a/app/views/questionnaire/_overview_questionnaire.php b/app/views/questionnaire/_overview_questionnaire.php index 23e1cc1..8b45d42 100644 --- a/app/views/questionnaire/_overview_questionnaire.php +++ b/app/views/questionnaire/_overview_questionnaire.php @@ -74,7 +74,7 @@ </td> <td class="actions"> <? if ($questionnaire->isRunning() && $countedAnswers) : ?> - <?= Icon::create('edit', Icon::ROLE_INACTIVE)->asSvg(['title' => _('Der Fragebogen wurde gestartet und kann nicht mehr bearbeitet werden.')]) ?> + <?= Icon::create('edit', Icon::ROLE_INACTIVE)->asImg(['title' => _('Der Fragebogen wurde gestartet und kann nicht mehr bearbeitet werden.')]) ?> <? else : ?> <a href="<?= $controller->link_for('questionnaire/edit/' . $questionnaire->id) ?>" data-dialog="size=big" diff --git a/app/views/questionnaire/_question.php b/app/views/questionnaire/_question.php index 9d21f93..757603a 100644 --- a/app/views/questionnaire/_question.php +++ b/app/views/questionnaire/_question.php @@ -5,19 +5,19 @@ <div style="float: right; padding-top: 3px; padding-right: 5px;"> <a href="#" class="move_up" title="<?= _('Frage nach oben verschieben') ?>" onClick="STUDIP.Questionnaire.moveQuestionUp.call(this); return false;"> - <?= Icon::create('arr_1up')->asSvg(['class' => 'text-bottom']) ?> + <?= Icon::create('arr_1up')->asImg(['class' => 'text-bottom']) ?> </a> <a href="#" class="move_down" title="<?= _('Frage nach unten verschieben') ?>" onClick="STUDIP.Questionnaire.moveQuestionDown.call(this); return false;"> - <?= Icon::create('arr_1down')->asSvg(['class' => 'text-bottom']) ?> + <?= Icon::create('arr_1down')->asImg(['class' => 'text-bottom']) ?> </a> <a href="#" onClick="var that = this; STUDIP.Dialog.confirm('<?= _('Wirklich löschen?') ?>', function () { jQuery(that).closest('fieldset').remove(); }); return false;" title="<?= sprintf(_('%s löschen'), htmlReady($class::getName())) ?>"> - <?= Icon::create('trash')->asSvg(['class' => 'text-bottom']) ?> + <?= Icon::create('trash')->asImg(['class' => 'text-bottom']) ?> </a> </div> <div> - <?= $class::getIcon()->asSvg(['class' => 'text-bottom']) ?> + <?= $class::getIcon()->asImg(['class' => 'text-bottom']) ?> <?= htmlReady($class::getName()) ?> </div> diff --git a/app/views/questionnaire/_widget_questionnaire.php b/app/views/questionnaire/_widget_questionnaire.php index 295d913..3941a66 100644 --- a/app/views/questionnaire/_widget_questionnaire.php +++ b/app/views/questionnaire/_widget_questionnaire.php @@ -41,7 +41,7 @@ title="<?= _('QR-Code zu diesem Fragebogen anzeigen') ?>" aria-label="<?= _('QR-Code zu diesem Fragebogen anzeigen') ?>" data-qr-code> <? URLHelper::setBaseURL($oldbase) ?> - <?= Icon::create('code-qr')->asSvg(['class' => 'text-bottom']) ?> + <?= Icon::create('code-qr')->asImg(['class' => 'text-bottom']) ?> </a> </span> </nav> diff --git a/app/views/questionnaire/add_to_context.php b/app/views/questionnaire/add_to_context.php index ac80be6..337d130 100644 --- a/app/views/questionnaire/add_to_context.php +++ b/app/views/questionnaire/add_to_context.php @@ -9,13 +9,13 @@ $icons = [ <div> <a href="<?= $controller->link_for("questionnaire/edit", ['range_type' => Context::getType(), 'range_id' => Context::get()->id]) ?>" data-dialog="size=big"> - <?= Icon::create($icons[Context::getType()], Icon::ROLE_CLICKABLE)->asSvg(50) ?> + <?= Icon::create($icons[Context::getType()], Icon::ROLE_CLICKABLE)->asImg(50) ?> <?= htmlReady(Context::get()->name) ?> </a> <? foreach ($statusgruppen as $statusgruppe) : ?> <a href="<?= $controller->link_for('questionnaire/edit', ['range_type' => 'statusgruppe', 'range_id' => $statusgruppe->getId()]) ?>" data-dialog="size=big"> - <?= Icon::create('group2', Icon::ROLE_CLICKABLE)->asSvg(50) ?> + <?= Icon::create('group2', Icon::ROLE_CLICKABLE)->asImg(50) ?> <?= htmlReady($statusgruppe->name) ?> </a> <? endforeach ?> diff --git a/app/views/questionnaire/context.php b/app/views/questionnaire/context.php index e1b53ac..78455b1 100644 --- a/app/views/questionnaire/context.php +++ b/app/views/questionnaire/context.php @@ -8,7 +8,7 @@ <input type="text" aria-label="<?= _('URL zum Fragebogen (nur lesbar)') ?>" readonly value="<?= htmlReady($GLOBALS['ABSOLUTE_URI_STUDIP'].'dispatch.php/questionnaire/answer/'.$questionnaire->getId()) ?>"> <a href="<?= htmlReady($GLOBALS['ABSOLUTE_URI_STUDIP'] . "dispatch.php/questionnaire/answer/" . $questionnaire->id) ?>" data-qr-code title="<?= _('QR-Code zum Link anzeigen') ?>"> - <?= Icon::create('code-qr')->asSvg(['class' => 'text-bottom']) ?> + <?= Icon::create('code-qr')->asImg(['class' => 'text-bottom']) ?> </a> </fieldset> <fieldset> @@ -41,7 +41,7 @@ <a href="<?= URLHelper::getLink('dispatch.php/course/go', ['to' => $course->getId()]) ?>"> <?= htmlReady((Config::get()->IMPORTANT_SEMNUMBER ? $course->veranstaltungsnummer." " : "").$course->name. ' ('.$course->semester_text.')') ?> </a> - <?= Icon::create('trash')->asSvg(['class' => 'text-bottom', 'title' => _('Zuweisung zur Veranstaltung aufheben.')]) ?> + <?= Icon::create('trash')->asImg(['class' => 'text-bottom', 'title' => _('Zuweisung zur Veranstaltung aufheben.')]) ?> </span> </label> </li> @@ -63,7 +63,7 @@ <a href="<?= URLHelper::getLink("dispatch.php/course/go", ['to' => $statusgruppe->getId()]) ?>"> <?= htmlReady($statusgruppe->course['name'].": ".$statusgruppe->name) ?> </a> - <?= Icon::create('trash')->asSvg(['class' => 'text-bottom', 'title' => _('Zuweisung zur Veranstaltung aufheben.')]) ?> + <?= Icon::create('trash')->asImg(['class' => 'text-bottom', 'title' => _('Zuweisung zur Veranstaltung aufheben.')]) ?> </span> </label> </li> @@ -81,7 +81,7 @@ <label> <input type="checkbox" name="remove_inst[]" value="<?= htmlReady($assignment['range_id']) ?>" style="display: none;"> <span><?= htmlReady(Institute::find($assignment['range_id'])->name) ?></span> - <?= Icon::create('trash', 'clickable', ['title' => _('Zuweisung zur Einrichtung aufheben.')])->asSvg(['class' => 'text-bottom']) ?> + <?= Icon::create('trash', 'clickable', ['title' => _('Zuweisung zur Einrichtung aufheben.')])->asImg(['class' => 'text-bottom']) ?> </label> </li> <? endif ?> diff --git a/app/views/questionnaire/question_types/automated_data/_evaluation_part.php b/app/views/questionnaire/question_types/automated_data/_evaluation_part.php index 966c30d..d2b7bac 100644 --- a/app/views/questionnaire/question_types/automated_data/_evaluation_part.php +++ b/app/views/questionnaire/question_types/automated_data/_evaluation_part.php @@ -36,7 +36,7 @@ <a href="" title="<?= _('Zeige wieder alle Ergebnisse ohne Filterung an.') ?>" onclick="STUDIP.Questionnaire.removeFilter('<?= htmlReady($question['questionnaire_id']) ?>'); return false;"> - <?= Icon::create('filter2')->asSvg(['class' => 'text-bottom']) ?> + <?= Icon::create('filter2')->asImg(['class' => 'text-bottom']) ?> (<?= $percentage ?>% | <?= (int) count((array) $answerdata[$key]) ?>/<?= $countAnswers ?>) </a> <? else : ?> diff --git a/app/views/questionnaire/question_types/likert/likert_evaluation.php b/app/views/questionnaire/question_types/likert/likert_evaluation.php index cc3b287..f92adf9 100644 --- a/app/views/questionnaire/question_types/likert/likert_evaluation.php +++ b/app/views/questionnaire/question_types/likert/likert_evaluation.php @@ -104,7 +104,7 @@ $options = $vote->questiondata['options']; <?= htmlReady($hits) ?> </div> </div> - <?= Icon::create('filter2')->asSvg(Icon::SIZE_INLINE, ['class' => 'text-bottom']) ?> + <?= Icon::create('filter2')->asImg(Icon::SIZE_INLINE, ['class' => 'text-bottom']) ?> <?= round(100 * $hits / $countAnswers) ?>% </a> <? else : ?> diff --git a/app/views/questionnaire/question_types/rangescale/rangescale_evaluation.php b/app/views/questionnaire/question_types/rangescale/rangescale_evaluation.php index f51d1aa..7f090dd 100644 --- a/app/views/questionnaire/question_types/rangescale/rangescale_evaluation.php +++ b/app/views/questionnaire/question_types/rangescale/rangescale_evaluation.php @@ -105,7 +105,7 @@ $options = range($vote->questiondata['minimum'], $vote->questiondata['maximum']) <?= htmlReady($hits) ?> </div> </div> - <?= Icon::create('filter2')->asSvg(Icon::SIZE_INLINE, ['class' => 'text-bottom']) ?> + <?= Icon::create('filter2')->asImg(Icon::SIZE_INLINE, ['class' => 'text-bottom']) ?> <?= round(100 * $hits / $countAnswers) ?>% </a> <? else : ?> diff --git a/app/views/questionnaire/question_types/vote/vote_evaluation.php b/app/views/questionnaire/question_types/vote/vote_evaluation.php index 77cab48..cd1222f 100644 --- a/app/views/questionnaire/question_types/vote/vote_evaluation.php +++ b/app/views/questionnaire/question_types/vote/vote_evaluation.php @@ -102,7 +102,7 @@ rsort($ordered_results); <a href="" title="<?= _('Zeige wieder alle Ergebnisse ohne Filterung an.') ?>" onclick="STUDIP.Questionnaire.removeFilter('<?= htmlReady($vote['questionnaire_id']) ?>'); return false;"> - <?= Icon::create('filter2')->asSvg(['class' => 'text-bottom']) ?> + <?= Icon::create('filter2')->asImg(['class' => 'text-bottom']) ?> (<?= $percentage ?>% | <?= (int) ($results[$key] ?? 0) ?>/<?= $countAnswers ?>) </a> <? else : ?> diff --git a/app/views/questionnaire/widget.php b/app/views/questionnaire/widget.php index fac294c..3ab9ce7 100644 --- a/app/views/questionnaire/widget.php +++ b/app/views/questionnaire/widget.php @@ -2,7 +2,7 @@ <article class="studip questionnaire_widget" id="questionnaire_area"> <header> <h1> - <?= Icon::create('evaluation', Icon::ROLE_INFO)->asSvg(['class' => 'text-bottom']) ?> + <?= Icon::create('evaluation', Icon::ROLE_INFO)->asImg(['class' => 'text-bottom']) ?> <?= _('Fragebögen') ?> </h1> <nav> @@ -10,17 +10,17 @@ <? if ($statusgruppen_ids): ?> <a href="<?= $controller->link_for('questionnaire/add_to_context') ?>" data-dialog="size=auto" title="<?= _('Fragebogen hinzufügen') ?>" aria-label="<?= _('Fragebogen hinzufügen') ?>"> - <?= Icon::create('add')->asSvg(['class' => 'text-bottom']) ?> + <?= Icon::create('add')->asImg(['class' => 'text-bottom']) ?> </a> <? else: ?> <a href="<?= $controller->link_for('questionnaire/edit', compact('range_type', 'range_id')) ?>" data-dialog title="<?= _('Fragebogen hinzufügen') ?>" aria-label="<?= _('Fragebogen hinzufügen') ?>"> - <?= Icon::create('add')->asSvg(['class' => 'text-bottom']) ?> + <?= Icon::create('add')->asImg(['class' => 'text-bottom']) ?> </a> <? endif ?> <a href="<?= URLHelper::getLink('dispatch.php/questionnaire/' . ($range_type == 'course' || $range_type == 'institute' ? 'course' : ''). 'overview') ?>" title="<?= _('Fragebögen verwalten') ?>" aria-label="<?= _('Fragebögen verwalten') ?>"> - <?= Icon::create('admin')->asSvg(['class' => 'text-bottom']) ?> + <?= Icon::create('admin')->asImg(['class' => 'text-bottom']) ?> </a> <? endif ?> </nav> |
