xref: /webtrees/resources/views/modules/yahrzeit/config.phtml (revision 78606cf427772fbdc5222ff607ee23f43078f94b)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\I18N;
6
7/**
8 * @var string               $calendar
9 * @var array<string,string> $calendars
10 * @var string               $days
11 * @var string               $info_style
12 * @var array<string,string> $styles
13 * @var int                  $max_days
14 */
15
16?>
17
18<div class="row mb-3">
19    <label class="col-sm-3 col-form-label" for="days">
20        <?= I18N::translate('Number of days to show') ?>
21    </label>
22    <div class="col-sm-9">
23        <input class="form-control" type="text" id="days" name="days" value="<?= e($days) ?>">
24        <em>
25            <?= I18N::plural('maximum %s day', 'maximum %s days', $max_days, I18N::number($max_days)) ?>
26        </em>
27    </div>
28</div>
29
30<div class="row mb-3">
31    <label class="col-sm-3 col-form-label" for="infoStyle">
32        <?= I18N::translate('Layout') ?>
33    </label>
34    <div class="col-sm-9">
35        <?= view('components/select', ['name' => 'infoStyle', 'selected' => $info_style, 'options' => $styles]) ?>
36    </div>
37</div>
38
39<div class="row mb-3">
40    <label class="col-sm-3 col-form-label" for="calendar">
41        <?= I18N::translate('Calendar') ?>
42    </label>
43    <div class="col-sm-9">
44        <?= view('components/select', ['name' => 'calendar', 'selected' => $calendar, 'options' => $calendars]) ?>
45    </div>
46</div>
47