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 $maximum_width 13 * @var int $minimum_generations 14 * @var int $minimum_width 15 * @var string $style 16 * @var array<string,string> $styles 17 * @var string $title 18 * @var Tree $tree 19 * @var int $width 20 */ 21 22?> 23 24<h2 class="wt-page-title"> 25 <?= $title ?> 26</h2> 27 28<form method="post" class="wt-page-options wt-page-options-fan-chart d-print-none"> 29 <div class="row"> 30 <label class="col-sm-3 col-form-label wt-page-options-label" for="xref"> 31 <?= I18N::translate('Individual') ?> 32 </label> 33 <div class="col-sm-9 wt-page-options-value"> 34 <?= view('components/select-individual', ['name' => 'xref', 'individual' => $individual, 'tree' => $tree, 'required' => true]) ?> 35 </div> 36 </div> 37 38 <div class="row"> 39 <label class="col-sm-3 col-form-label wt-page-options-label" for="style"> 40 <?= I18N::translate('Layout') ?> 41 </label> 42 <div class="col-sm-9 wt-page-options-value"> 43 <?= view('components/select', ['name' => 'style', 'selected' => $style, 'options' => $styles]) ?> 44 </div> 45 </div> 46 47 <div class="row"> 48 <label class="col-sm-3 col-form-label wt-page-options-label" for="generations"> 49 <?= I18N::translate('Generations') ?> 50 </label> 51 <div class="col-sm-9 wt-page-options-value"> 52 <?= view('components/select-number', ['name' => 'generations', 'selected' => $generations, 'options' => range($minimum_generations, $maximum_generations)]) ?> 53 </div> 54 </div> 55 56 <div class="row"> 57 <label class="col-sm-3 col-form-label wt-page-options-label" for="width"> 58 <?= I18N::translate('Zoom') ?> 59 </label> 60 <div class="col-sm-9 wt-page-options-value"> 61 <div class="input-group"> 62 <input class="form-control" id="width" max="<?= $maximum_width ?>" min="<?= $minimum_width ?>" name="width" required="required" type="number" value="<?= $width ?>"> 63 <span class="input-group-text">%</span> 64 </div> 65 </div> 66 </div> 67 68 <div class="row mb-3"> 69 <div class="col-form-label col-sm-3 wt-page-options-label"></div> 70 <div class="col-sm-9 wt-page-options-value"> 71 <input class="btn btn-primary" type="submit" value="<?= /* I18N: A button label. */ I18N::translate('view') ?>"> 72 </div> 73 </div> 74 75 <?= csrf_field() ?> 76</form> 77 78<div class="wt-ajax-load wt-page-content wt-chart wt-chart-fan" data-wt-ajax-url="<?= e($ajax_url) ?>"></div> 79