xref: /webtrees/resources/views/modules/upcoming_events/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="days">
9        <?= I18N::translate('Number of days to show') ?>
10    </label>
11    <div class="col-sm-9">
12        <input type="text" name="days" id="days" size="2" value="<?= $days ?>">
13        <?= I18N::plural('maximum %s day', 'maximum %s days', $max_days, I18N::number($max_days)) ?>
14    </div>
15</div>
16
17<div class="form-group row">
18    <label class="col-sm-3 col-form-label" for="filter">
19        <?= I18N::translate('Show only events of living individuals') ?>
20    </label>
21    <div class="col-sm-9">
22        <?= view('components/radios-inline', ['name' => 'filter', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $filter]) ?>
23    </div>
24</div>
25
26<div class="form-group row">
27    <label class="col-sm-3 col-form-label" for="events">
28        <?= I18N::translate('Events') ?>
29    </label>
30    <div class="col-sm-9">
31        <?= view('components/select', ['name' => 'events[]', 'id' => 'events', 'selected' => $event_array, 'options' => $all_events, 'class' => 'select2']) ?>
32    </div>
33</div>
34
35<div class="form-group row">
36    <label class="col-sm-3 col-form-label" for="infoStyle">
37        <?= /* I18N: Label for a configuration option */ I18N::translate('Presentation style') ?>
38    </label>
39    <div class="col-sm-9">
40        <?= view('components/select', ['name' => 'infoStyle', 'selected' => $infoStyle, 'options' => $info_styles]) ?>
41    </div>
42</div>
43
44<div class="form-group row">
45    <label class="col-sm-3 col-form-label" for="sortStyle">
46        <?= /* I18N: Label for a configuration option */ I18N::translate('Sort order') ?>
47    </label>
48    <div class="col-sm-9">
49        <?= view('components/select', ['name' => 'sortStyle', 'selected' => $sortStyle, 'options' => $sort_styles]) ?>
50    </div>
51</div>
52