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 $max_generations 12 * @var int $min_generations 13 * @var string $style 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-pedigree-chart d-print-none"> 25 <?= csrf_field() ?> 26 27 <div class="row form-group"> 28 <label class="col-sm-3 col-form-label wt-page-options-label" for="xref"> 29 <?= I18N::translate('Individual') ?> 30 </label> 31 <div class="col-sm-9 wt-page-options-value"> 32 <?= view('components/select-individual', ['name' => 'xref', 'individual' => $individual, 'tree' => $tree]) ?> 33 </div> 34 </div> 35 36 <div class="row form-group"> 37 <label class="col-sm-3 col-form-label wt-page-options-label" for="generations"> 38 <?= I18N::translate('Generations') ?> 39 </label> 40 <div class="col-sm-9 wt-page-options-value"> 41 <?= view('components/select-number', ['name' => 'generations', 'selected' => $generations, 'options' => range($min_generations, $max_generations)]) ?> 42 </div> 43 </div> 44 45 <div class="row form-group"> 46 <label class="col-sm-3 col-form-label wt-page-options-label" for="style"> 47 <?= I18N::translate('Layout') ?> 48 </label> 49 <div class="col-sm-9 wt-page-options-value"> 50 <?= view('components/radios-inline', ['name' => 'style', 'options' => ['left' => view('icons/pedigree-left') . I18N::translate('left'), 'right' => view('icons/pedigree-right') . I18N::translate('right'), 'up' => view('icons/pedigree-up') . I18N::translate('up'), 'down' => view('icons/pedigree-down') . I18N::translate('down'),], 'selected' => $style]) ?> 51 </div> 52 </div> 53 54 <div class="row form-group"> 55 <div class="col-sm-3 wt-page-options-label"></div> 56 <div class="col-sm-9 wt-page-options-value"> 57 <input class="btn btn-primary" type="submit" value="<?= /* I18N: A button label. */ 58 I18N::translate('view') ?>"> 59 </div> 60 </div> 61</form> 62 63<div class="wt-ajax-load wt-page-content wt-chart wt-chart-pedigree" data-ajax-url="<?= e($ajax_url) ?>"></div> 64