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