xref: /webtrees/resources/views/report-select-page.phtml (revision 4874f72da8279544d9c0a459e2920a9986acfaa0)
1<?php use Fisharebest\Webtrees\I18N; ?>
2
3<h2 class="wt-page-title">
4    <?= $title ?>
5</h2>
6
7<form method="get" action="<?= e(route('report-setup', ['tree' => $tree->name()])) ?>" class="wt-page-options wt-page-options-report-select">
8    <input type="hidden" name="route" value="<?= e(route('report-setup', ['tree' => $tree->name()])) ?>">
9    <input type="hidden" name="tree" value="<?= e($tree->name()) ?>">
10    <div class="row form-group">
11        <label class="col-sm-3 col-form-label wt-page-options-label" for="report">
12            <?= I18N::translate('Report') ?>
13        </label>
14        <div class="col-sm-9 wt-page-options-value">
15            <select class="form-control" id="report" name="report">
16                <?php foreach ($reports as $report) : ?>
17                    <option value="<?= e($report->name()) ?>">
18                        <?= e($report->title()) ?>
19                    </option>
20                <?php endforeach ?>
21            </select>
22        </div>
23    </div>
24
25    <div class="row form-group">
26        <div class="col-sm-3 col-form-label wt-page-options-label"></div>
27        <div class="col-sm-9 wt-page-options-value">
28            <button type="submit" class="btn btn-primary">
29                <?= I18N::translate('continue') ?>
30            </button>
31        </div>
32    </div>
33</form>
34