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