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