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