Add personal ranking mode to order slides and show image placement only with an image
CI / Deploy / PHP 8.4 (push) Failing after 1m28s
CI / Deploy / PHP 8.5 (push) Failing after 1m31s
CI / Deploy / test (push) Failing after 2s
CI / Deploy / deploy (push) Skipped

Order slides get a "ranking" setting without a correct solution: the stage shows
the live average ranking, participants only get a confirmation. The image
placement question in the slide form is only shown for an existing image or a
chosen file.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Sonnet 5.5 committed 2026-11-17 09:15:49 +01:00
1 parent 85627b364d
commit 0aac113f30
15 files changed
+239 -15

No files matched your search

+2 -2
View File
@@ -32,7 +32,7 @@ if ($slide->type === Slide::TYPE_CONTENT) {
$imageError = $slide->getError('image');
$maxMb = (int)round((int)Configure::read('Plenario.images.maxUploadBytes', 10 * 1024 * 1024) / 1024 / 1024);
?>
<fieldset class="image-fields" data-image-fields>
<fieldset class="image-fields" data-image-fields<?= $hasImage ? ' data-has-image' : '' ?>>
<legend><?= __('Bild (optional)') ?></legend>
<?php if (!ImageService::isAvailable()) : ?>
<p class="hint"><?= __('Bilder sind auf diesem Server nicht verfügbar (PHP-Erweiterung GD mit WebP fehlt).') ?></p>
@@ -71,7 +71,7 @@ $maxMb = (int)round((int)Configure::read('Plenario.images.maxUploadBytes', 10 *
<div class="error-message" id="image-error"><?= h(implode(' ', (array)$imageError)) ?></div>
<?php endif; ?>
</div>
<fieldset class="scale-style image-fields__layout">
<fieldset class="scale-style image-fields__layout" data-image-layout>
<legend><?= __('Platzierung in der Präsentation') ?></legend>
<?= $this->Form->radio('image_layout', array_map(
fn($value, $text) => ['value' => $value, 'text' => $text],