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