Add optional comment field to multiple choice slides
Participants can justify their choice; the comment is stored once in the first response row, rotates on the stage like scale comments and is listed in the admin area and the PDF export. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
28bfd535f4
commit
61718ed7c6
14 files changed
+330
-29
No files matched your search
@@ -107,7 +107,7 @@ class AdminControllerTest extends TestCase
|
||||
$slide = $this->slidesTable()->find()->contain(['SlideOptions'])->firstOrFail();
|
||||
$this->assertSame($poll->id, $slide->poll_id);
|
||||
$this->assertSame(['Pizza', 'Pasta'], array_map(fn($o) => $o->label, $slide->slide_options));
|
||||
$this->assertSame(['multiple' => true], $slide->settings);
|
||||
$this->assertSame(['multiple' => true, 'comments' => false], $slide->settings);
|
||||
$this->assertSame(1, $slide->position);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user