xref: /webtrees/resources/views/modules/pedigree-chart/page.phtml (revision 16e8b6e8ad4a9bca8890e43190b3fd794421b003)
1<?php use Fisharebest\Webtrees\I18N; ?>
2
3<h2 class="wt-page-title">
4    <?= $title ?>
5</h2>
6
7<form class="wt-page-options wt-page-options-pedigree-chart d-print-none">
8    <input type="hidden" name="route" value="module">
9    <input type="hidden" name="module" value="<?= e($module_name) ?>">
10    <input type="hidden" name="action" value="Chart">
11    <input type="hidden" name="ged" value="<?= e($tree->name()) ?>">
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            <?= view('components/select', ['name' => 'generations', 'selected' => $generations, 'options' => $generation_options]) ?>
28        </div>
29    </div>
30
31    <div class="row form-group">
32        <label class="col-sm-3 col-form-label wt-page-options-label" for="orientation">
33            <?= I18N::translate('Layout') ?>
34        </label>
35        <div class="col-sm-9 wt-page-options-value">
36            <?= view('components/radios-inline', ['name' => 'orientation', 'options' => ['left' => view('icons/pedigree-left') . I18N::translate('left'), 'right' => view('icons/pedigree-right') . I18N::translate('right'), 'up' => view('icons/pedigree-up') . I18N::translate('up'), 'down' => view('icons/pedigree-down') . I18N::translate('down'), ], 'selected' => $orientation]) ?>
37        </div>
38    </div>
39
40    <div class="row form-group">
41        <div class="col-sm-3 wt-page-options-label"></div>
42        <div class="col-sm-9 wt-page-options-value">
43            <input class="btn btn-primary" type="submit" value="<?= /* I18N: A button label. */ I18N::translate('view') ?>">
44        </div>
45    </div>
46</form>
47
48<div class="wt-ajax-load wt-page-content wt-chart wt-chart-pedigree" data-ajax-url="<?= e($ajax_url) ?>"></div>
49