xref: /webtrees/resources/views/modules/descendancy_chart/page.phtml (revision 0010d42b5dcc725e166945c3345a365d5aa115e3)
1<?php use Fisharebest\Webtrees\Bootstrap4; ?>
2<?php use Fisharebest\Webtrees\Functions\FunctionsEdit; ?>
3<?php use Fisharebest\Webtrees\I18N; ?>
4
5<h2 class="wt-page-title">
6    <?= $title ?>
7</h2>
8
9<form class="wt-page-options wt-page-options-descendants-chart d-print-none">
10    <input type="hidden" name="route" value="module">
11    <input type="hidden" name="module" value="<?= e($module_name) ?>">
12    <input type="hidden" name="action" value="Chart">
13    <input type="hidden" name="ged" value="<?= e($tree->name()) ?>">
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            <?= FunctionsEdit::formControlIndividual($tree, $individual, ['id' => 'xref', 'name' => 'xref']) ?>
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="generations">
26            <?= I18N::translate('Generations') ?>
27        </label>
28        <div class="col-sm-9 wt-page-options-value">
29            <input class="form-control" id="generations" name="generations" type="number" min="<?= e($minimum_generations) ?>" max="<?= e($maximum_generations) ?>" value="<?= e($generations) ?>" required>
30        </div>
31    </div>
32
33    <fieldset class="form-group">
34        <div class="row">
35            <legend class="col-form-label col-sm-3 wt-page-options-label">
36                <?= I18N::translate('Layout') ?>
37            </legend>
38            <div class="col-sm-9 wt-page-options-value">
39                <?= Bootstrap4::radioButtons('chart_style', $chart_styles, $chart_style, true) ?>
40            </div>
41        </div>
42    </fieldset>
43
44    <div class="row form-group">
45        <div class="col-form-label col-sm-3 wt-page-options-label"></div>
46        <div class="col-sm-9 wt-page-options-value">
47            <input class="btn btn-primary" type="submit" value="<?= /* I18N: A button label. */ I18N::translate('view') ?>">
48        </div>
49    </div>
50</form>
51
52<div class="wt-ajax-load wt-page-content wt-chart wt-descendants-chart" data-ajax-url="<?= e($ajax_url) ?>"></div>
53