xref: /webtrees/resources/views/modules/random_media/config.phtml (revision ad7270802ba57a28d195fc58fcc55f26458a779a)
1<?php use Fisharebest\Webtrees\Bootstrap4; ?>
2<?php use Fisharebest\Webtrees\Functions\FunctionsEdit; ?>
3<?php use Fisharebest\Webtrees\I18N; ?>
4
5<div class="form-group row">
6    <label class="col-sm-3 col-form-label" for="filter">
7        <?= I18N::translate('Show only individuals, events, or all') ?>
8    </label>
9    <div class="col-sm-9">
10        <?= Bootstrap4::select(['indi' => I18N::translate('Individuals'), 'event' => I18N::translate('Facts and events'), 'all' => I18N::translate('All')], $filter, ['id' => 'filter', 'name' => 'filter']) ?>
11    </div>
12</div>
13
14<fieldset class="form-group">
15    <div class="row">
16        <legend class="col-form-label col-sm-3">
17            <?= I18N::translate('Type') ?>
18        </legend>
19        <div class="col-sm-9">
20            <?php foreach ($formats as $typeName => $typeValue) : ?>
21                <?= Bootstrap4::checkbox($typeValue, false, ['name' => 'filter_' . $typeName, 'checked' => (bool) $filters[$typeName]]) ?>
22            <?php endforeach ?>
23        </div>
24    </div>
25</fieldset>
26
27<div class="form-group row">
28    <label class="col-sm-3 col-form-label" for="controls">
29        <?= I18N::translate('Show slide show controls') ?>
30    </label>
31    <div class="col-sm-9">
32        <?= Bootstrap4::radioButtons('controls', FunctionsEdit::optionsNoYes(), $controls, true) ?>
33    </div>
34</div>
35
36<div class="form-group row">
37    <label class="col-sm-3 col-form-label" for="start">
38        <?= I18N::translate('Start slide show on page load') ?>
39    </label>
40    <div class="col-sm-9">
41        <?= Bootstrap4::radioButtons('start', FunctionsEdit::optionsNoYes(), $start, true) ?>
42    </div>
43</div>
44