xref: /webtrees/resources/views/modules/review_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
77c2c99faSGreg Roach/**
87c2c99faSGreg Roach * @var string $days
97c2c99faSGreg Roach * @var string $sendmail
107c2c99faSGreg Roach */
117c2c99faSGreg Roach
12d70512abSGreg Roach?>
13dd6b2bfcSGreg Roach
14dd6b2bfcSGreg Roach<p>
15dd6b2bfcSGreg Roach    <?= I18N::translate('This block will show editors a list of records with pending changes that need to be reviewed by a moderator. It also generates daily emails to moderators whenever pending changes exist.') ?>
16dd6b2bfcSGreg Roach</p>
17dd6b2bfcSGreg Roach
189e3c2cf9SGreg Roach<fieldset class="row mb-3">
19dd6b2bfcSGreg Roach    <legend class="col-form-label col-sm-3">
20dd6b2bfcSGreg Roach        <?= /* I18N: Label for a configuration option */ I18N::translate('Send out reminder emails') ?>
21dd6b2bfcSGreg Roach    </legend>
22dd6b2bfcSGreg Roach    <div class="col-sm-9">
23b6c326d8SGreg Roach        <?= view('components/radios-inline', ['name' => 'sendmail', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $sendmail]) ?>
24dd6b2bfcSGreg Roach    </div>
25dd6b2bfcSGreg Roach</fieldset>
26dd6b2bfcSGreg Roach
279e3c2cf9SGreg Roach<div class="row mb-3">
28dd6b2bfcSGreg Roach    <label class="col-sm-3 col-form-label" for="days">
29dd6b2bfcSGreg Roach        <?= I18N::translate('Reminder email frequency (days)') ?>
30dd6b2bfcSGreg Roach    </label>
31dd6b2bfcSGreg Roach    <div class="col-sm-9">
327dca5265SGreg Roach        <input class="form-control" type="number" min="1" name="days" id="days" value="<?= e($days) ?>" required="required">
33dd6b2bfcSGreg Roach    </div>
34dd6b2bfcSGreg Roach</div>
35