xref: /webtrees/resources/views/report-select-page.phtml (revision 090a06287954f43677f06ea778b3f67c029de8fe)
1<?php
2
3use Fisharebest\Webtrees\I18N;
4use Fisharebest\Webtrees\Module\ModuleReportInterface;
5use Illuminate\Support\Collection;
6
7/**
8 * @var Collection<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    <?= csrf_field() ?>
20    <div class="row form-group">
21        <label class="col-sm-3 col-form-label wt-page-options-label" for="report">
22            <?= I18N::translate('Report') ?>
23        </label>
24        <div class="col-sm-9 wt-page-options-value">
25            <select class="form-control" id="report" name="report">
26                <?php foreach ($reports as $report) : ?>
27                    <option value="<?= e($report->name()) ?>">
28                        <?= e($report->title()) ?>
29                    </option>
30                <?php endforeach ?>
31            </select>
32        </div>
33    </div>
34
35    <div class="row form-group">
36        <div class="col-sm-3 col-form-label wt-page-options-label"></div>
37        <div class="col-sm-9 wt-page-options-value">
38            <button type="submit" class="btn btn-primary">
39                <?= I18N::translate('continue') ?>
40            </button>
41        </div>
42    </div>
43</form>
44