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