blob: 9d21f93d9543b1abb79cdf7e33c5821e827f1ce0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<? $class = get_class($question) ?>
<fieldset data-questiontype="<?= htmlReady($class) ?>"
class="question <?= htmlReady(mb_strtolower($class)) ?>">
<legend>
<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']) ?>
</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']) ?>
</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']) ?>
</a>
</div>
<div>
<?= $class::getIcon()->asSvg(['class' => 'text-bottom']) ?>
<?= htmlReady($class::getName()) ?>
</div>
</legend>
<input type="hidden" name="neworder[]" value="<?= htmlReady($question->getId()) ?>">
<input type="hidden" name="question_types[<?= htmlReady($question->getId()) ?>]" value="<?= htmlReady(get_class($question)) ?>">
<?= $question->getEditingTemplate()->render() ?>
</fieldset>
|