xref: /webtrees/resources/views/modules/recent_changes/config.phtml (revision 45ebc6c6221f90468111ed2015b8449dca331d93)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\I18N;
6
7/**
8 * @var int                  $days
9 * @var int                  $max_days
10 * @var string               $infoStyle
11 * @var array<string,string> $info_styles
12 * @var string               $sortStyle
13 * @var array<string,string> $sort_styles
14 * @var string               $source
15 * @var array<string,string> $sources
16 * @var bool                 $show_date
17 * @var bool                 $show_user
18 */
19?>
20
21<div class="row mb-3">
22    <label class="col-sm-3 col-form-label" for="days">
23        <?= I18N::translate('Number of days to show') ?>
24    </label>
25    <div class="col-sm-9">
26        <input class="form-control" id="days" name="days" type="number" min="1" max="<?= $max_days ?>" value="<?= e($days) ?>" required="required">
27        <?= I18N::plural('maximum %s day', 'maximum %s days', $max_days, I18N::number($max_days)) ?>
28    </div>
29</div>
30
31<div class="row mb-3">
32    <label class="col-sm-3 col-form-label" for="infoStyle">
33        <?= I18N::translate('Layout') ?>
34    </label>
35    <div class="col-sm-9">
36        <?= view('components/select', ['name' => 'infoStyle', 'selected' => $infoStyle, 'options' => $info_styles]) ?>
37    </div>
38</div>
39
40<div class="row mb-3">
41    <label class="col-sm-3 col-form-label" for="sortStyle">
42        <?= I18N::translate('Sort order') ?>
43    </label>
44    <div class="col-sm-9">
45        <?= view('components/select', ['name' => 'sortStyle', 'selected' => $sortStyle, 'options' => $sort_styles]) ?>
46    </div>
47</div>
48
49<div class="row mb-3">
50    <label class="col-sm-3 col-form-label" for="source">
51        <?= I18N::translate('Changes') ?>
52    </label>
53    <div class="col-sm-9">
54        <?= view('components/select', ['name' => 'source', 'selected' => $source, 'options' => $sources]) ?>
55    </div>
56</div>
57
58<div class="row mb-3">
59    <label class="col-sm-3 col-form-label" for="show_user">
60        <?= /* I18N: label for a yes/no option */ I18N::translate('Show the user who made the change') ?>
61    </label>
62    <div class="col-sm-9">
63        <?= view('components/radios-inline', ['name' => 'show_user', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $show_user]) ?>
64    </div>
65</div>
66
67<div class="row mb-3">
68    <label class="col-sm-3 col-form-label" for="show_date">
69        <?= /* I18N: label for a yes/no option */ I18N::translate('Show the date and time') ?>
70    </label>
71    <div class="col-sm-9">
72        <?= view('components/radios-inline', ['name' => 'show_date', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $show_date]) ?>
73    </div>
74</div>
75