<?php

declare(strict_types=1);

use Fisharebest\Webtrees\I18N;

/**
 * @var string $days
 * @var string $sendmail
 */

?>

<p>
    <?= 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.') ?>
</p>

<fieldset class="row mb-3">
    <legend class="col-form-label col-sm-3">
        <?= /* I18N: Label for a configuration option */ I18N::translate('Send out reminder emails') ?>
    </legend>
    <div class="col-sm-9">
        <?= view('components/radios-inline', ['name' => 'sendmail', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $sendmail]) ?>
    </div>
</fieldset>

<div class="row mb-3">
    <label class="col-sm-3 col-form-label" for="days">
        <?= I18N::translate('Reminder email frequency (days)') ?>
    </label>
    <div class="col-sm-9">
        <input class="form-control" type="number" min="1" name="days" id="days" value="<?= e($days) ?>" required="required">
    </div>
</div>
