xref: /webtrees/resources/views/modules/upcoming_events/config.phtml (revision d70512ab02636ee884ef6d7907223ed02c754ff5)
1*d70512abSGreg Roach<?php
2*d70512abSGreg Roach
3*d70512abSGreg Roachuse Fisharebest\Webtrees\I18N;
4*d70512abSGreg Roach
5*d70512abSGreg Roach?>
6dd6b2bfcSGreg Roach
7dd6b2bfcSGreg Roach<div class="form-group row">
8dd6b2bfcSGreg Roach    <label class="col-sm-3 col-form-label" for="days">
9dd6b2bfcSGreg Roach        <?= I18N::translate('Number of days to show') ?>
10dd6b2bfcSGreg Roach    </label>
11dd6b2bfcSGreg Roach    <div class="col-sm-9">
12dd6b2bfcSGreg Roach        <input type="text" name="days" id="days" size="2" value="<?= $days ?>">
13dd6b2bfcSGreg Roach        <?= I18N::plural('maximum %s day', 'maximum %s days', $max_days, I18N::number($max_days)) ?>
14dd6b2bfcSGreg Roach    </div>
15dd6b2bfcSGreg Roach</div>
16dd6b2bfcSGreg Roach
17dd6b2bfcSGreg Roach<div class="form-group row">
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
26dd6b2bfcSGreg Roach<div class="form-group row">
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
35dd6b2bfcSGreg Roach<div class="form-group row">
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">
4048f08416SGreg Roach        <?= view('components/select', ['name' => 'infoStyle', 'selected' => $infoStyle, 'options' => $info_styles]) ?>
41dd6b2bfcSGreg Roach    </div>
42dd6b2bfcSGreg Roach</div>
43dd6b2bfcSGreg Roach
44dd6b2bfcSGreg Roach<div class="form-group row">
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">
49c9e11c2aSGreg Roach        <?= view('components/select', ['name' => 'sortStyle', 'selected' => $sortStyle, 'options' => $sort_styles]) ?>
50dd6b2bfcSGreg Roach    </div>
51dd6b2bfcSGreg Roach</div>
52