1<?php 2 3use Fisharebest\Webtrees\I18N; 4use Fisharebest\Webtrees\Individual; 5use Fisharebest\Webtrees\Tree; 6 7/** 8 * @var int $generations 9 * @var Individual $individual 10 * @var string $map 11 * @var int $maxgenerations 12 * @var string $title 13 * @var Tree $tree 14 */ 15 16?> 17 18<h2 class="wt-page-title"><?= $title ?></h2> 19 20<form method="post" class="wt-page-options wt-page-options-pedigreemap-chart d-print-none"> 21 <div class="row"> 22 <label class="col-sm-3 col-form-label wt-page-options-label" for="xref"> 23 <?= I18N::translate('Individual') ?> 24 </label> 25 <div class="col-sm-9 wt-page-options-value"> 26 <?= view('components/select-individual', ['name' => 'xref', 'individual' => $individual, 'tree' => $tree, 'required' => true]) ?> 27 </div> 28 </div> 29 30 <div class="row"> 31 <label class="col-sm-3 col-form-label wt-page-options-label" for="generations"> 32 <?= I18N::translate('Generations') ?> 33 </label> 34 <div class="col-sm-9 wt-page-options-value"> 35 <?= view('components/select-number', ['name' => 'generations', 'selected' => $generations, 'options' => range(2, $maxgenerations)]) ?> 36 </div> 37 </div> 38 39 <div class="row"> 40 <div class="col-sm-3 wt-page-options-label"></div> 41 <div class="col-sm-9 wt-page-options-value"> 42 <input class="btn btn-primary" type="submit" value="<?= /* I18N: A button label. */ 43 I18N::translate('view') 44 ?>"> 45 </div> 46 </div> 47 48 <?= csrf_field() ?> 49</form> 50 51 52<div class="wt-ajax-load wt-page-content"> 53 <?= $map ?> 54</div> 55 56