1<?php 2 3use Fisharebest\Webtrees\I18N; 4use Fisharebest\Webtrees\Individual; 5use Fisharebest\Webtrees\Tree; 6 7/** 8 * @var string $ajax_url 9 * @var int $generations 10 * @var Individual $individual 11 * @var int $maximum_generations 12 * @var int $minimum_generations 13 * @var bool $spouses 14 * @var string $title 15 * @var Tree $tree 16 */ 17 18?> 19 20<h2 class="wt-page-title"> 21 <?= $title ?> 22</h2> 23 24<form method="post" class="wt-page-options wt-page-options-hourglass-chart d-print-none"> 25 <div class="row"> 26 <label class="col-sm-3 col-form-label wt-page-options-label" for="xref"> 27 <?= I18N::translate('Individual') ?> 28 </label> 29 <div class="col-sm-9 wt-page-options-value"> 30 <?= view('components/select-individual', ['name' => 'xref', 'individual' => $individual, 'tree' => $tree, 'required' => true]) ?> 31 </div> 32 </div> 33 34 <div class="row"> 35 <label class="col-sm-3 col-form-label wt-page-options-label" for="generations"> 36 <?= I18N::translate('Generations') ?> 37 </label> 38 <div class="col-sm-9 wt-page-options-value"> 39 <?= view('components/select-number', ['name' => 'generations', 'selected' => $generations, 'options' => range($minimum_generations, $maximum_generations)]) ?> 40 </div> 41 </div> 42 43 <fieldset class="row mb-3"> 44 <legend class="col-form-label col-sm-3 wt-page-options-label"> 45 <?= I18N::translate('Layout') ?> 46 </legend> 47 <div class="col-sm-9 wt-page-options-value"> 48 <?= view('components/checkbox', ['label' => I18N::translate('Show spouses'), 'name' => 'spouses', 'checked' => $spouses]) ?> 49 </div> 50 </fieldset> 51 52 <div class="row mb-3"> 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 59 <?= csrf_field() ?> 60</form> 61 62<div class="wt-ajax-load wt-page-content wt-chart wt-chart-hourglass" data-wt-ajax-url="<?= e($ajax_url) ?>"></div> 63