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