<?php

declare(strict_types=1);

use Fisharebest\Webtrees\I18N;

/**
 * @var string               $info_style
 * @var array<string,string> $info_styles
 * @var string               $num
 */

?>

<div class="row mb-3">
    <label class="col-sm-3 col-form-label" for="num">
        <?= /* I18N: ... to show in a list */ I18N::translate('Number of given names') ?>
    </label>
    <div class="col-sm-9">
        <input type="number" id="num" name="num" min="1" value="<?= $num ?>" required="required">
    </div>
</div>

<div class="row mb-3">
    <label class="col-sm-3 col-form-label" for="infoStyle">
        <?= I18N::translate('Layout') ?>
    </label>
    <div class="col-sm-9">
        <?= view('components/select', ['name' => 'infoStyle', 'selected' => $info_style, 'options' => $info_styles]) ?>
    </div>
</div>
