Same options as for scales: "private" shows only the number of votes on the stage, "comments" adds an optional comment field whose comments rotate in the presentation, "comment_ratings" shows the chosen answer(s) next to each comment. With multiple choice the comment is stored on the participant's first row. Settings and participant fields are shared elements for scale and choice. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
20 lines
825 B
PHP
20 lines
825 B
PHP
<?php
|
|
/**
|
|
* Optional comment field and internal-feedback hint below a scale or choice on the participant page.
|
|
*
|
|
* @var \App\View\AppView $this
|
|
* @var \App\Model\Entity\Slide $slide Scale or choice slide
|
|
* @var string $placeholder Placeholder of the comment field
|
|
*/
|
|
?>
|
|
<?php if ($slide->hasComments()) : ?>
|
|
<label class="comment-label" for="feedback-comment"><?= __('Kommentar (optional)') ?></label>
|
|
<textarea id="feedback-comment" name="comment" rows="3" maxlength="500"
|
|
placeholder="<?= h($placeholder) ?>"></textarea>
|
|
<?php endif; ?>
|
|
<?php if ($slide->isPrivate()) : ?>
|
|
<p class="hint private-hint" id="private-hint">
|
|
🔒 <?= __('Internes Feedback: Das Ergebnis wird nicht öffentlich angezeigt und deine Antwort nicht mit deinem Namen gespeichert.') ?>
|
|
</p>
|
|
<?php endif; ?>
|