xref: /webtrees/resources/views/modules/family-book-chart/page.phtml (revision 7ef421a4290b6b468944b845497d6139b0eddd3f)
1<?php
2use Fisharebest\Webtrees\Functions\FunctionsEdit;
3use Fisharebest\Webtrees\I18N;
4?>
5
6<h2 class="wt-page-title">
7    <?= $title ?>
8</h2>
9
10<form method="post" class="wt-page-options wt-page-options-family-book-chart d-print-none">
11    <?= csrf_field() ?>
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, 'required' => true]) ?>
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="book_size">
24            <?= I18N::translate('Generations') ?>
25        </label>
26        <div class="col-sm-9 wt-page-options-value">
27            <?= view('components/select', ['name' => 'book_size', 'selected' => $book_size, 'options' => FunctionsEdit::numericOptions(range(2, 5))]) ?>
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="generations">
33            <?= I18N::translate('Descendant generations') ?>
34        </label>
35        <div class="col-sm-9 wt-page-options-value">
36            <?= view('components/select', ['name' => 'generations', 'selected' => $generations, 'options' => FunctionsEdit::numericOptions(range($minimum_generations, $maximum_generations))]) ?>
37        </div>
38    </div>
39
40    <fieldset class="form-group">
41        <div class="row">
42            <legend class="col-form-label col-sm-3 wt-page-options-label">
43                <?= I18N::translate('Spouses') ?>
44            </legend>
45            <div class="col-sm-9 wt-page-options-value">
46                <?= view('components/checkbox', ['label' => I18N::translate('Show spouses'), 'name' => 'spouses', 'checked' => $spouses]) ?>
47            </div>
48        </div>
49    </fieldset>
50
51    <div class="row form-group">
52        <div class="col-sm-3 wt-page-options-label"></div>
53        <div class="col-sm-9 wt-page-options-value">
54            <input class="btn btn-primary" type="submit" value="<?= /* I18N: A button label. */ I18N::translate('view') ?>">
55        </div>
56    </div>
57</form>
58
59<div class="wt-ajax-load wt-page-content wt-chart wt-chart-family-book" data-ajax-url="<?= e($ajax_url) ?>"></div>
60