blob: df6b8212aab16f08f74bce69a9a35c2e5367607d (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
<fieldset>
<legend>
<?= _('Grundeigenschaften') ?>
</legend>
<label>
<?= _('Fragestellung') ?>
<input required type="text" name="question" placeholder="<?= _('Frage') ?>"
value="<?= htmlReady($feedback->question); ?>">
</label>
<label>
<?= _('Beschreibung') ?>
<textarea name="description" class="wysiwyg"
placeholder="<?= _('Optionale Beschreibung') ?>"><?= wysiwygReady($feedback->description); ?></textarea>
</label>
<label>
<input type="checkbox" name="results_visible" value="1" <?= $feedback->results_visible == 1 ? 'checked' : '' ?>>
<?= _('Feedback-Ergebnisse nach Antwort sichtbar') ?>
</label>
<label>
<input
type="checkbox"
name="anonymous_entries"
value="1"
<?= $this->current_action === 'edit_form' ? 'disabled' : '' ?>
<?= $feedback->anonymous_entries ? 'checked' : '' ?>
>
<?= _('Feedback kann anonym abgegeben werden')?>
</label>
<label>
<input id="comment-activated" type="checkbox" name="commentable" value="1" <? if ($this->current_action ==
'edit_form') {echo ('disabled');} else { echo('data-activates="#comment-only"');}?>
<?= $feedback->commentable == 1 ? 'checked' : '' ?>>
<?= _('Abgegebenes Feedback kann einen Kommentar beinhalten') ?>
</label>
<label>
<input id="comment-only" type="checkbox" name="comment_only" value="1"
<?= $feedback->mode == FeedbackElement::MODE_NO_RATING ? 'checked' : '' ?> <? if ($this->current_action ==
'edit_form') {echo ('disabled');} else { echo('data-deactivates="#comment-activated, .feedback-mode"');}?>>
<?= _('Nur Kommentare (keine numerische Bewertung)') ?>
</label>
</fieldset>
<fieldset>
<legend>
<?= _('Bewertungsmodus') ?>
</legend>
<label>
<input class="feedback-mode" type="radio" name="mode" value="<?= FeedbackElement::MODE_5STAR_RATING ?>"
<?= $feedback->mode == FeedbackElement::MODE_5STAR_RATING ? 'checked' : '' ?>
required <? if ($current_action === 'edit_form') echo ('disabled'); ?>>
<?= _('Sternbewertung von 1 bis 5') ?>
</label>
<label>
<input class="feedback-mode" type="radio" name="mode" value="<?= FeedbackElement::MODE_10STAR_RATING ?>"
<?= $feedback->mode == FeedbackElement::MODE_10STAR_RATING ? 'checked' : '' ?> <?
if ($current_action === 'edit_form') echo ('disabled'); ?>>
<?= _('Sternbewertung von 1 bis 10') ?>
</label>
</fieldset>
|