diff --git a/templates/Slides/form.php b/templates/Slides/form.php index bd0fe10..1981b98 100644 --- a/templates/Slides/form.php +++ b/templates/Slides/form.php @@ -214,8 +214,8 @@ $optionsError = $slide->getError('options_text'); type === 'quiz') : $quizError = $slide->getError('quiz_options'); $rows = $quizOptions; - // Always offer a few empty rows (more via "Antwort hinzufügen" with JS). - $rowCount = min(\App\Model\Table\SlidesTable::MAX_QUIZ_OPTIONS, max(4, count($rows) + 1)); + // Offer the two required rows (more via "Antwort hinzufügen" with JS), plus one spare when editing. + $rowCount = min(\App\Model\Table\SlidesTable::MAX_QUIZ_OPTIONS, max(2, count($rows) + 1)); $rows = array_pad($rows, $rowCount, ['label' => '', 'correct' => false]); ?>
getError('options_text'); isOrder()) : $orderError = $slide->getError('order_options'); $max = \App\Model\Table\SlidesTable::MAX_ORDER_OPTIONS; - $rows = array_pad($orderOptions, min($max, max(4, count($orderOptions) + 1)), ''); + $rows = array_pad($orderOptions, min($max, max(2, count($orderOptions) + 1)), ''); ?>