xref: /webtrees/resources/views/report-select-page.phtml (revision 10e0649788c8d7d4974d81c048ca2b225df8f22e)
11cfe16bdSGreg Roach<?php
21cfe16bdSGreg Roach
3*10e06497SGreg Roachdeclare(strict_types=1);
4*10e06497SGreg Roach
51cfe16bdSGreg Roachuse Fisharebest\Webtrees\I18N;
6dc270d8cSGreg Roachuse Fisharebest\Webtrees\Module\ModuleReportInterface;
7dc270d8cSGreg Roachuse Illuminate\Support\Collection;
8dc270d8cSGreg Roach
9dc270d8cSGreg Roach/**
1036779af1SGreg Roach * @var Collection<int,ModuleReportInterface> $reports
11dc270d8cSGreg Roach * @var string                                $title
12dc270d8cSGreg Roach */
131cfe16bdSGreg Roach
141cfe16bdSGreg Roach?>
15dd6b2bfcSGreg Roach
16dd6b2bfcSGreg Roach<h2 class="wt-page-title">
17dd6b2bfcSGreg Roach    <?= $title ?>
18dd6b2bfcSGreg Roach</h2>
19dd6b2bfcSGreg Roach
201cfe16bdSGreg Roach<form method="post" class="wt-page-options wt-page-options-report-select">
219e3c2cf9SGreg Roach    <div class="row">
22dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label wt-page-options-label" for="report">
23dd6b2bfcSGreg Roach            <?= I18N::translate('Report') ?>
24dd6b2bfcSGreg Roach        </label>
25dd6b2bfcSGreg Roach        <div class="col-sm-9 wt-page-options-value">
264b9213b3SGreg Roach            <select class="form-select" id="report" name="report">
279cad7645SGreg Roach                <?php foreach ($reports as $report) : ?>
289cad7645SGreg Roach                    <option value="<?= e($report->name()) ?>">
299cad7645SGreg Roach                        <?= e($report->title()) ?>
30dd6b2bfcSGreg Roach                    </option>
31dd6b2bfcSGreg Roach                <?php endforeach ?>
32dd6b2bfcSGreg Roach            </select>
33dd6b2bfcSGreg Roach        </div>
34dd6b2bfcSGreg Roach    </div>
35dd6b2bfcSGreg Roach
369e3c2cf9SGreg Roach    <div class="row">
37dd6b2bfcSGreg Roach        <div class="col-sm-3 col-form-label wt-page-options-label"></div>
38dd6b2bfcSGreg Roach        <div class="col-sm-9 wt-page-options-value">
39dd6b2bfcSGreg Roach            <button type="submit" class="btn btn-primary">
40dd6b2bfcSGreg Roach                <?= I18N::translate('continue') ?>
41dd6b2bfcSGreg Roach            </button>
42dd6b2bfcSGreg Roach        </div>
43dd6b2bfcSGreg Roach    </div>
4481443e3cSGreg Roach
4581443e3cSGreg Roach    <?= csrf_field() ?>
46dd6b2bfcSGreg Roach</form>
47