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