xref: /webtrees/resources/views/modules/recent_changes/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
7501bc70dSGreg Roach/**
8501bc70dSGreg Roach * @var int                  $days
9501bc70dSGreg Roach * @var int                  $max_days
10501bc70dSGreg Roach * @var string               $infoStyle
11501bc70dSGreg Roach * @var array<string,string> $info_styles
12501bc70dSGreg Roach * @var string               $sortStyle
13501bc70dSGreg Roach * @var array<string,string> $sort_styles
14501bc70dSGreg Roach * @var string               $source
15501bc70dSGreg Roach * @var array<string,string> $sources
16501bc70dSGreg Roach * @var bool                 $show_date
17501bc70dSGreg Roach * @var bool                 $show_user
18501bc70dSGreg Roach */
19d70512abSGreg Roach?>
20dd6b2bfcSGreg Roach
219e3c2cf9SGreg Roach<div class="row mb-3">
22dd6b2bfcSGreg Roach    <label class="col-sm-3 col-form-label" for="days">
23dd6b2bfcSGreg Roach        <?= I18N::translate('Number of days to show') ?>
24dd6b2bfcSGreg Roach    </label>
25dd6b2bfcSGreg Roach    <div class="col-sm-9">
267dca5265SGreg Roach        <input class="form-control" id="days" name="days" type="number" min="1" max="<?= $max_days ?>" value="<?= e($days) ?>" required="required">
27dd6b2bfcSGreg Roach        <?= I18N::plural('maximum %s day', 'maximum %s days', $max_days, I18N::number($max_days)) ?>
28dd6b2bfcSGreg Roach    </div>
29dd6b2bfcSGreg Roach</div>
30dd6b2bfcSGreg Roach
319e3c2cf9SGreg Roach<div class="row mb-3">
32dd6b2bfcSGreg Roach    <label class="col-sm-3 col-form-label" for="infoStyle">
33b6f85d51SGreg Roach        <?= I18N::translate('Layout') ?>
34dd6b2bfcSGreg Roach    </label>
35dd6b2bfcSGreg Roach    <div class="col-sm-9">
36eb235819SGreg Roach        <?= view('components/select', ['name' => 'infoStyle', 'selected' => $infoStyle, 'options' => $info_styles]) ?>
37dd6b2bfcSGreg Roach    </div>
38dd6b2bfcSGreg Roach</div>
39dd6b2bfcSGreg Roach
409e3c2cf9SGreg Roach<div class="row mb-3">
41dd6b2bfcSGreg Roach    <label class="col-sm-3 col-form-label" for="sortStyle">
42dd6b2bfcSGreg Roach        <?= I18N::translate('Sort order') ?>
43dd6b2bfcSGreg Roach    </label>
44dd6b2bfcSGreg Roach    <div class="col-sm-9">
45b6c326d8SGreg Roach        <?= view('components/select', ['name' => 'sortStyle', 'selected' => $sortStyle, 'options' => $sort_styles]) ?>
46dd6b2bfcSGreg Roach    </div>
47dd6b2bfcSGreg Roach</div>
48dd6b2bfcSGreg Roach
499e3c2cf9SGreg Roach<div class="row mb-3">
50501bc70dSGreg Roach    <label class="col-sm-3 col-form-label" for="source">
51501bc70dSGreg Roach        <?= I18N::translate('Changes') ?>
52501bc70dSGreg Roach    </label>
53501bc70dSGreg Roach    <div class="col-sm-9">
54501bc70dSGreg Roach        <?= view('components/select', ['name' => 'source', 'selected' => $source, 'options' => $sources]) ?>
55501bc70dSGreg Roach    </div>
56501bc70dSGreg Roach</div>
57501bc70dSGreg Roach
589e3c2cf9SGreg Roach<div class="row mb-3">
59501bc70dSGreg Roach    <label class="col-sm-3 col-form-label" for="show_user">
60dd6b2bfcSGreg Roach        <?= /* I18N: label for a yes/no option */ I18N::translate('Show the user who made the change') ?>
61dd6b2bfcSGreg Roach    </label>
62dd6b2bfcSGreg Roach    <div class="col-sm-9">
63c9e11c2aSGreg Roach        <?= view('components/radios-inline', ['name' => 'show_user', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $show_user]) ?>
64dd6b2bfcSGreg Roach    </div>
65dd6b2bfcSGreg Roach</div>
66501bc70dSGreg Roach
679e3c2cf9SGreg Roach<div class="row mb-3">
68501bc70dSGreg Roach    <label class="col-sm-3 col-form-label" for="show_date">
69501bc70dSGreg Roach        <?= /* I18N: label for a yes/no option */ I18N::translate('Show the date and time') ?>
70501bc70dSGreg Roach    </label>
71501bc70dSGreg Roach    <div class="col-sm-9">
72501bc70dSGreg Roach        <?= view('components/radios-inline', ['name' => 'show_date', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $show_date]) ?>
73501bc70dSGreg Roach    </div>
74501bc70dSGreg Roach</div>
75