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