xref: /webtrees/resources/views/modules/upcoming_events/config.phtml (revision d4ec5ec0fe611c85b1d77527db3e9becde7e473d)
1<?php
2
3use Fisharebest\Webtrees\I18N;
4
5/**
6 * @var array<string,string> $all_events
7 * @var int                  $days
8 * @var array<string>        $event_array
9 * @var string               $filter
10 * @var string               $info_style
11 * @var array<string,string> $info_styles
12 * @var string               $sort_style
13 * @var array<string,string> $sort_styles
14 * @var int                  $max_days
15 */
16
17?>
18
19<div class="row form-group mb-3">
20    <label class="col-sm-3 col-form-label" for="days">
21        <?= I18N::translate('Number of days to show') ?>
22    </label>
23    <div class="col-sm-9">
24        <input type="text" name="days" id="days" size="2" value="<?= $days ?>">
25        <?= I18N::plural('maximum %s day', 'maximum %s days', $max_days, I18N::number($max_days)) ?>
26    </div>
27</div>
28
29<div class="row form-group mb-3">
30    <label class="col-sm-3 col-form-label" for="filter">
31        <?= I18N::translate('Show only events of living individuals') ?>
32    </label>
33    <div class="col-sm-9">
34        <?= view('components/radios-inline', ['name' => 'filter', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $filter]) ?>
35    </div>
36</div>
37
38<div class="row form-group mb-3">
39    <label class="col-sm-3 col-form-label" for="events">
40        <?= I18N::translate('Events') ?>
41    </label>
42    <div class="col-sm-9">
43        <?= view('components/select', ['name' => 'events[]', 'id' => 'events', 'selected' => $event_array, 'options' => $all_events, 'class' => 'tom-select']) ?>
44    </div>
45</div>
46
47<div class="row form-group mb-3">
48    <label class="col-sm-3 col-form-label" for="infoStyle">
49        <?= /* I18N: Label for a configuration option */ I18N::translate('Presentation style') ?>
50    </label>
51    <div class="col-sm-9">
52        <?= view('components/select', ['name' => 'infoStyle', 'selected' => $info_style, 'options' => $info_styles]) ?>
53    </div>
54</div>
55
56<div class="row form-group mb-3">
57    <label class="col-sm-3 col-form-label" for="sortStyle">
58        <?= /* I18N: Label for a configuration option */ I18N::translate('Sort order') ?>
59    </label>
60    <div class="col-sm-9">
61        <?= view('components/select', ['name' => 'sortStyle', 'selected' => $sort_style, 'options' => $sort_styles]) ?>
62    </div>
63</div>
64