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