xref: /webtrees/resources/views/modules/todays_events/config.phtml (revision afc2d1902ecd3bf5ad093d4f0c848f540e3f1cc8)
1d70512abSGreg Roach<?php
2d70512abSGreg Roach
3d70512abSGreg Roachuse Fisharebest\Webtrees\I18N;
4d70512abSGreg Roach
57c2c99faSGreg Roach/**
67c2c99faSGreg Roach * @var array<string,string> $all_events
77c2c99faSGreg Roach * @var array<string,string> $event_array
87c2c99faSGreg Roach * @var string               $filter
97c2c99faSGreg Roach * @var string               $info_style
107c2c99faSGreg Roach * @var array<string,string> $info_styles
117c2c99faSGreg Roach * @var string               $sort_style
127c2c99faSGreg Roach * @var array<string,string> $sort_styles
137c2c99faSGreg Roach */
147c2c99faSGreg Roach
15d70512abSGreg Roach?>
16dd6b2bfcSGreg Roach
17*afc2d190SGreg Roach<div class="row form-group mb-3">
18dd6b2bfcSGreg Roach    <label class="col-sm-3 col-form-label" for="filter">
19dd6b2bfcSGreg Roach        <?= I18N::translate('Show only events of living individuals') ?>
20dd6b2bfcSGreg Roach    </label>
21dd6b2bfcSGreg Roach    <div class="col-sm-9">
22b6c326d8SGreg Roach        <?= view('components/radios-inline', ['name' => 'filter', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $filter]) ?>
23dd6b2bfcSGreg Roach    </div>
24dd6b2bfcSGreg Roach</div>
25dd6b2bfcSGreg Roach
26*afc2d190SGreg Roach<div class="row form-group mb-3">
27dd6b2bfcSGreg Roach    <label class="col-sm-3 col-form-label" for="events">
28dd6b2bfcSGreg Roach        <?= I18N::translate('Events') ?>
29dd6b2bfcSGreg Roach    </label>
30dd6b2bfcSGreg Roach    <div class="col-sm-9">
31c9e11c2aSGreg Roach        <?= view('components/select', ['name' => 'events[]', 'id' => 'events', 'selected' => $event_array, 'options' => $all_events, 'class' => 'select2']) ?>
32dd6b2bfcSGreg Roach    </div>
33dd6b2bfcSGreg Roach</div>
34dd6b2bfcSGreg Roach
35*afc2d190SGreg Roach<div class="row form-group mb-3">
36dd6b2bfcSGreg Roach    <label class="col-sm-3 col-form-label" for="infoStyle">
37dd6b2bfcSGreg Roach        <?= /* I18N: Label for a configuration option */ I18N::translate('Presentation style') ?>
38dd6b2bfcSGreg Roach    </label>
39dd6b2bfcSGreg Roach    <div class="col-sm-9">
407c2c99faSGreg Roach        <?= view('components/select', ['name' => 'infoStyle', 'selected' => $info_style, 'options' => $info_styles]) ?>
41dd6b2bfcSGreg Roach    </div>
42dd6b2bfcSGreg Roach</div>
43dd6b2bfcSGreg Roach
44*afc2d190SGreg Roach<div class="row form-group mb-3">
45dd6b2bfcSGreg Roach    <label class="col-sm-3 col-form-label" for="sortStyle">
46dd6b2bfcSGreg Roach        <?= /* I18N: Label for a configuration option */ I18N::translate('Sort order') ?>
47dd6b2bfcSGreg Roach    </label>
48dd6b2bfcSGreg Roach    <div class="col-sm-9">
497c2c99faSGreg Roach        <?= view('components/select', ['name' => 'sortStyle', 'selected' => $sort_style, 'options' => $sort_styles]) ?>
50dd6b2bfcSGreg Roach    </div>
51dd6b2bfcSGreg Roach</div>
52