xref: /webtrees/resources/views/modules/family-book-chart/page.phtml (revision 4d314e6b28a3e57668463e010244449523e91e5c)
1<?php use Fisharebest\Webtrees\Bootstrap4; ?>
2<?php use Fisharebest\Webtrees\Functions\FunctionsEdit; ?>
3<?php use Fisharebest\Webtrees\I18N; ?>
4
5<h2 class="wt-page-title">
6    <?= $title ?>
7</h2>
8
9<form class="wt-page-options wt-page-options-family-book-chart d-print-none">
10    <input type="hidden" name="route" value="module">
11    <input type="hidden" name="module" value="<?= e($module_name) ?>">
12    <input type="hidden" name="action" value="Chart">
13    <input type="hidden" name="ged" value="<?= e($individual->tree()->name()) ?>">
14
15    <div class="row form-group">
16        <label class="col-sm-3 col-form-label wt-page-options-label" for="xref">
17            <?= I18N::translate('Individual') ?>
18        </label>
19        <div class="col-sm-9 wt-page-options-value">
20            <?= FunctionsEdit::formControlIndividual($individual->tree(), $individual, ['id' => 'xref', 'name' => 'xref']) ?>
21        </div>
22    </div>
23
24    <div class="row form-group">
25        <label class="col-sm-3 col-form-label wt-page-options-label" for="book_size">
26            <?= I18N::translate('Generations') ?>
27        </label>
28        <div class="col-sm-9 wt-page-options-value">
29            <?= Bootstrap4::select(FunctionsEdit::numericOptions(range(2, 5)), $book_size, ['id' => 'book_size', 'name' => 'book_size']) ?>
30        </div>
31    </div>
32
33    <div class="row form-group">
34        <label class="col-sm-3 col-form-label wt-page-options-label" for="generations">
35            <?= I18N::translate('Descendant generations') ?>
36        </label>
37        <div class="col-sm-9 wt-page-options-value">
38            <?= Bootstrap4::select(FunctionsEdit::numericOptions(range($minimum_generations, $maximum_generations)), $generations, ['id' => 'generations', 'name' => 'generations']) ?>
39        </div>
40    </div>
41
42    <fieldset class="form-group">
43        <div class="row">
44            <legend class="col-form-label col-sm-3 wt-page-options-label">
45                <?= I18N::translate('Spouses') ?>
46            </legend>
47            <div class="col-sm-9 wt-page-options-value">
48                <?= Bootstrap4::checkbox(I18N::translate('Show spouses'), false, ['name' => 'show_spouse', 'checked' => $show_spouse]) ?>
49            </div>
50        </div>
51    </fieldset>
52
53    <div class="row form-group">
54        <div class="col-sm-3 wt-page-options-label"></div>
55        <div class="col-sm-9 wt-page-options-value">
56            <input class="btn btn-primary" type="submit" value="<?= /* I18N: A button label. */ I18N::translate('view') ?>">
57        </div>
58    </div>
59</form>
60
61<div class="wt-ajax-load wt-page-content wt-chart wt-chart-family-book" data-ajax-url="<?= e($ajax_url) ?>"></div>
62