summaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorBert Koorengevel <BertKoor@users.noreply.github.com>2026-02-06 18:59:52 +0100
committerGitHub <noreply@github.com>2026-02-06 17:59:52 +0000
commit823da595e59c27ac89729b3640941a014a634b8b (patch)
tree22812ea112a23fa0cca913becb4b29f443a7ca9c /resources
parent00761d2727abd24cf3a9b8d6f176d180151602fc (diff)
downloadwebtrees-823da595e59c27ac89729b3640941a014a634b8b.tar.gz
webtrees-823da595e59c27ac89729b3640941a014a634b8b.tar.bz2
webtrees-823da595e59c27ac89729b3640941a014a634b8b.zip
SlideShow module - configurable delay time as block setting (#5303)
* fix #5302: SlideShow module - configurable delay time as block setting * fixed PR code review issues * Use input-group addon for units * Change text label * Code style - whitespace --------- Co-authored-by: Greg Roach <greg@subaqua.co.uk>
Diffstat (limited to 'resources')
-rw-r--r--resources/views/modules/random_media/config.phtml13
1 files changed, 13 insertions, 0 deletions
diff --git a/resources/views/modules/random_media/config.phtml b/resources/views/modules/random_media/config.phtml
index f587b18df6..7bfd86c14d 100644
--- a/resources/views/modules/random_media/config.phtml
+++ b/resources/views/modules/random_media/config.phtml
@@ -10,6 +10,7 @@ use Fisharebest\Webtrees\I18N;
* @var array<string,string> $filters
* @var array<string,string> $formats
* @var string $start
+ * @var int $delay
*/
?>
@@ -51,3 +52,15 @@ use Fisharebest\Webtrees\I18N;
<?= view('components/radios-inline', ['name' => 'start', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $start]) ?>
</div>
</div>
+
+<div class="row mb-3">
+ <label for="delay" class="col-sm-3 col-form-label">
+ <?= I18N::translate('Slide show interval') ?>
+ </label>
+ <div class="col-sm-9">
+ <div class="input-group">
+ <input type="number" name="delay" id="delay" class="form-control" value="<?= $delay ?>" min="1" max="999">
+ <span class="input-group-text"><?= I18N::translate('seconds') ?></span>
+ </div>
+ </div>
+</div>