xref: /webtrees/resources/views/modules/descendancy_chart/page.phtml (revision 4874f72da8279544d9c0a459e2920a9986acfaa0)
1<?php
2
3use Fisharebest\Webtrees\I18N;
4?>
5
6<h2 class="wt-page-title">
7    <?= $title ?>
8</h2>
9
10<form method="post" class="wt-page-options wt-page-options-descendants-chart d-print-none">
11    <?= csrf_field() ?>
12
13    <div class="row form-group">
14        <label class="col-sm-3 col-form-label wt-page-options-label" for="xref">
15            <?= I18N::translate('Individual') ?>
16        </label>
17        <div class="col-sm-9 wt-page-options-value">
18            <?= view('components/select-individual', ['name' => 'xref', 'individual' => $individual, 'tree' => $tree]) ?>
19        </div>
20    </div>
21
22    <div class="row form-group">
23        <label class="col-sm-3 col-form-label wt-page-options-label" for="generations">
24            <?= I18N::translate('Generations') ?>
25        </label>
26        <div class="col-sm-9 wt-page-options-value">
27            <input class="form-control" id="generations" name="generations" type="number" min="<?= e($minimum_generations) ?>" max="<?= e($maximum_generations) ?>" value="<?= e($generations) ?>" required>
28        </div>
29    </div>
30
31    <fieldset class="form-group">
32        <div class="row">
33            <legend class="col-form-label col-sm-3 wt-page-options-label">
34                <?= I18N::translate('Layout') ?>
35            </legend>
36            <div class="col-sm-9 wt-page-options-value">
37                <?= view('components/radios-inline', ['name' => 'style', 'options' => $styles, 'selected' => $style]) ?>
38            </div>
39        </div>
40    </fieldset>
41
42    <div class="row form-group">
43        <div class="col-form-label col-sm-3 wt-page-options-label"></div>
44        <div class="col-sm-9 wt-page-options-value">
45            <input class="btn btn-primary" type="submit" value="<?= /* I18N: A button label. */ I18N::translate('view') ?>">
46        </div>
47    </div>
48</form>
49
50<div class="wt-ajax-load wt-page-content wt-chart wt-chart-descendants" data-ajax-url="<?= e($ajax_url) ?>"></div>
51