xref: /webtrees/resources/views/report-select-page.phtml (revision 4b9213b33377fa752da3c34c8057f8662b73fd24)
11cfe16bdSGreg Roach<?php
21cfe16bdSGreg Roach
31cfe16bdSGreg Roachuse Fisharebest\Webtrees\I18N;
4dc270d8cSGreg Roachuse Fisharebest\Webtrees\Module\ModuleReportInterface;
5dc270d8cSGreg Roachuse Illuminate\Support\Collection;
6dc270d8cSGreg Roach
7dc270d8cSGreg Roach/**
836779af1SGreg Roach * @var Collection<int,ModuleReportInterface> $reports
9dc270d8cSGreg Roach * @var string                                $title
10dc270d8cSGreg Roach */
111cfe16bdSGreg Roach
121cfe16bdSGreg Roach?>
13dd6b2bfcSGreg Roach
14dd6b2bfcSGreg Roach<h2 class="wt-page-title">
15dd6b2bfcSGreg Roach    <?= $title ?>
16dd6b2bfcSGreg Roach</h2>
17dd6b2bfcSGreg Roach
181cfe16bdSGreg Roach<form method="post" class="wt-page-options wt-page-options-report-select">
191cfe16bdSGreg Roach    <?= csrf_field() ?>
209e3c2cf9SGreg Roach    <div class="row">
21dd6b2bfcSGreg Roach        <label class="col-sm-3 col-form-label wt-page-options-label" for="report">
22dd6b2bfcSGreg Roach            <?= I18N::translate('Report') ?>
23dd6b2bfcSGreg Roach        </label>
24dd6b2bfcSGreg Roach        <div class="col-sm-9 wt-page-options-value">
25*4b9213b3SGreg Roach            <select class="form-select" id="report" name="report">
269cad7645SGreg Roach                <?php foreach ($reports as $report) : ?>
279cad7645SGreg Roach                    <option value="<?= e($report->name()) ?>">
289cad7645SGreg Roach                        <?= e($report->title()) ?>
29dd6b2bfcSGreg Roach                    </option>
30dd6b2bfcSGreg Roach                <?php endforeach ?>
31dd6b2bfcSGreg Roach            </select>
32dd6b2bfcSGreg Roach        </div>
33dd6b2bfcSGreg Roach    </div>
34dd6b2bfcSGreg Roach
359e3c2cf9SGreg Roach    <div class="row">
36dd6b2bfcSGreg Roach        <div class="col-sm-3 col-form-label wt-page-options-label"></div>
37dd6b2bfcSGreg Roach        <div class="col-sm-9 wt-page-options-value">
38dd6b2bfcSGreg Roach            <button type="submit" class="btn btn-primary">
39dd6b2bfcSGreg Roach                <?= I18N::translate('continue') ?>
40dd6b2bfcSGreg Roach            </button>
41dd6b2bfcSGreg Roach        </div>
42dd6b2bfcSGreg Roach    </div>
43dd6b2bfcSGreg Roach</form>
44