xref: /webtrees/resources/views/modules/fanchart/page.phtml (revision 63763244e313b0e5dc598319721f6a7aa399e128)
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-fan-chart d-print-none">
12    <?= csrf_field() ?>
13
14    <div class="row form-group">
15        <label class="col-sm-3 col-form-label wt-page-options-label" for="xref">
16            <?= I18N::translate('Individual') ?>
17        </label>
18        <div class="col-sm-9 wt-page-options-value">
19            <?= view('components/select-individual', ['name' => 'xref', 'individual' => $individual, 'tree' => $tree, 'required' => true]) ?>
20        </div>
21    </div>
22
23    <div class="row form-group">
24        <label class="col-sm-3 col-form-label wt-page-options-label" for="style">
25            <?= I18N::translate('Layout') ?>
26        </label>
27        <div class="col-sm-9 wt-page-options-value">
28            <?= view('components/select', ['name' => 'style', 'selected' => $style, 'options' => $styles]) ?>
29        </div>
30    </div>
31
32    <div class="row form-group">
33        <label class="col-sm-3 col-form-label wt-page-options-label" for="generations">
34            <?= I18N::translate('Generations') ?>
35        </label>
36        <div class="col-sm-9 wt-page-options-value">
37            <?= view('components/select-number', ['name' => 'generations', 'selected' => $generations, 'options' => range($minimum_generations, $maximum_generations)]) ?>
38        </div>
39    </div>
40
41    <div class="row form-group">
42        <label class="col-sm-3 col-form-label wt-page-options-label" for="width">
43            <?= I18N::translate('Zoom') ?>
44        </label>
45        <div class="col-sm-9 wt-page-options-value">
46            <div class="input-group">
47                <input class="form-control" id="width" max="<?= $maximum_width ?>" min="<?= $minimum_width ?>" name="width" required type="number" value="<?= $width ?>">
48                <div class="input-group-append">
49                    <span class="input-group-text">
50                        %
51                    </span>
52                </div>
53            </div>
54        </div>
55    </div>
56
57    <div class="row form-group">
58        <div class="col-form-label col-sm-3 wt-page-options-label"></div>
59        <div class="col-sm-9 wt-page-options-value">
60            <input class="btn btn-primary" type="submit" value="<?= /* I18N: A button label. */ I18N::translate('view') ?>">
61        </div>
62    </div>
63</form>
64
65<div class="wt-ajax-load wt-page-content wt-chart wt-chart-fan" data-ajax-url="<?= e($ajax_url) ?>"></div>
66