xref: /webtrees/resources/views/report-select-page.phtml (revision ab2c91523aeb171fd76225844c6c3c0d2440dda3)
1<?php
2
3use Fisharebest\Webtrees\I18N;
4use Fisharebest\Webtrees\Module\ModuleReportInterface;
5use Illuminate\Support\Collection;
6
7/**
8 * @var Collection<int,ModuleReportInterface> $reports
9 * @var string                                $title
10 */
11
12?>
13
14<h2 class="wt-page-title">
15    <?= $title ?>
16</h2>
17
18<form method="post" class="wt-page-options wt-page-options-report-select">
19    <div class="row">
20        <label class="col-sm-3 col-form-label wt-page-options-label" for="report">
21            <?= I18N::translate('Report') ?>
22        </label>
23        <div class="col-sm-9 wt-page-options-value">
24            <select class="form-select" id="report" name="report">
25                <?php foreach ($reports as $report) : ?>
26                    <option value="<?= e($report->name()) ?>">
27                        <?= e($report->title()) ?>
28                    </option>
29                <?php endforeach ?>
30            </select>
31        </div>
32    </div>
33
34    <div class="row">
35        <div class="col-sm-3 col-form-label wt-page-options-label"></div>
36        <div class="col-sm-9 wt-page-options-value">
37            <button type="submit" class="btn btn-primary">
38                <?= I18N::translate('continue') ?>
39            </button>
40        </div>
41    </div>
42
43    <?= csrf_field() ?>
44</form>
45