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