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