xref: /webtrees/resources/views/report-setup-page.phtml (revision 9ed80f829cfb208ae92f7928345696619569bf4e)
1<?php use Fisharebest\Webtrees\I18N; ?>
2
3<h2 class="wt-page-title">
4    <?= $title ?>
5</h2>
6
7<form class="wt-page-options wt-page-options-report-setup">
8    <input type="hidden" name="route" value="report-run">
9    <input type="hidden" name="ged" value="<?= e($tree->name()) ?>">
10    <input type="hidden" name="report" value="<?= e($report) ?>">
11
12    <div class="row form-group">
13        <div class="col-sm-3 col-form-label wt-page-options-label">
14            <?= I18N::translate('Description') ?>
15        </div>
16        <div class="col-sm-9 wt-page-options-value">
17            <?= $description ?>
18        </div>
19    </div>
20
21    <?php foreach ($inputs as $n => $input) : ?>
22        <input type="hidden" name="varnames[]" value="<?= e($input['name']) ?>">
23        <div class="row form-group">
24            <label class="col-sm-3 col-form-label wt-page-options-label" for="input-<?= $n ?>">
25                <?= I18N::translate($input['value']) ?>
26            </label>
27            <div class="col-sm-9 wt-page-options-value">
28                <?= $input['control'] ?>
29                <?= $input['extra'] ?>
30            </div>
31        </div>
32    <?php endforeach ?>
33
34    <div class="row form-group">
35        <div class="col-sm-3 col-form-label wt-page-options-label">
36        </div>
37
38        <div class="col-sm-9 wt-page-options-value d-flex justify-content-around">
39            <div class="text-center">
40                <label for="HTML"><?= view('icons/mime', ['type' => 'text/html']) ?></label>
41                <br>
42                <input type="radio" name="output" id="HTML" value="HTML" checked>
43            </div>
44            <div class="text-center">
45                <label for="PDF"><?= view('icons/mime', ['type' => 'application/pdf']) ?></label>
46                <br>
47                <input type="radio" name="output" value="PDF" id="PDF">
48            </div>
49        </div>
50    </div>
51
52    <div class="row form-group">
53        <div class="col-sm-3 col-form-label wt-page-options-label"></div>
54        <div class="col-sm-9 wt-page-options-value">
55            <button type="submit" class="btn btn-primary">
56                <?= I18N::translate('continue') ?>
57            </button>
58        </div>
59    </div>
60</form>
61