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