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