Add "Keine Angabe" to scales and an "Enthaltung" shortcut for choice slides
Scales and star ratings get an optional "Keine Angabe" answer (setting allow_skip). It counts as taking part but stays out of the average and the distribution; the number is shown separately on stage, in the evaluation and in the PDF. The choice form gets a button that appends an "Enthaltung" option. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1b48ce7852
commit
d6432911ed
14 files changed
+195
-11
No files matched your search
@@ -122,6 +122,10 @@ $optionsError = $slide->getError('options_text');
|
||||
<div class="input textarea<?= $optionsError ? ' error' : '' ?>">
|
||||
<label for="options-text"><?= __('Antwortoptionen (eine pro Zeile, max. 20)') ?></label>
|
||||
<textarea id="options-text" name="options_text" rows="6" required><?= h($optionsText) ?></textarea>
|
||||
<?php // Shortcut for formal votes; needs JavaScript, so it stays hidden without it. ?>
|
||||
<button type="button" class="button button--small button--ghost" hidden
|
||||
data-add-option="<?= h(__('Enthaltung')) ?>" data-add-option-target="options-text"
|
||||
data-add-option-max="20">+ <?= __('Option „Enthaltung“ hinzufügen') ?></button>
|
||||
<?php if ($optionsError) : ?>
|
||||
<div class="error-message"><?= h(implode(' ', (array)$optionsError)) ?></div>
|
||||
<?php endif; ?>
|
||||
@@ -191,6 +195,12 @@ $optionsError = $slide->getError('options_text');
|
||||
'placeholder' => __('z. B. sehr'), 'value' => $settings['max_label'],
|
||||
]) ?>
|
||||
</div>
|
||||
<?= $this->Form->control('settings.allow_skip', [
|
||||
'type' => 'checkbox',
|
||||
'label' => __('„Keine Angabe“ erlauben (Teilnehmende können die Frage überspringen)'),
|
||||
'checked' => (bool)$settings['allow_skip'],
|
||||
]) ?>
|
||||
<p class="hint"><?= __('Wer „Keine Angabe“ wählt, zählt als Teilnehmer/in, geht aber nicht in Durchschnitt und Verteilung ein. Die Zahl steht separat dabei.') ?></p>
|
||||
<?= $this->Form->control('settings.scale_view', [
|
||||
'type' => 'select',
|
||||
'label' => __('In der Präsentation zeigen'),
|
||||
|
||||
Reference in new issue
Block a user