1<?php use Fisharebest\Webtrees\Functions\FunctionsEdit; ?> 2<?php use Fisharebest\Webtrees\I18N; ?> 3 4<h2 class="wt-page-title"> 5 <?= $title ?> 6</h2> 7 8<form class="wt-page-options wt-page-options-fan-chart d-print-none"> 9 <input type="hidden" name="route" value="module"> 10 <input type="hidden" name="module" value="<?= e($module_name) ?>"> 11 <input type="hidden" name="action" value="Chart"> 12 <input type="hidden" name="ged" value="<?= e($tree->name()) ?>"> 13 14 <div class="row form-group"> 15 <label class="col-sm-3 col-form-label wt-page-options-label" for="xref"> 16 <?= I18N::translate('Individual') ?> 17 </label> 18 <div class="col-sm-9 wt-page-options-value"> 19 <?= view('components/select-individual', ['name' => 'xref', 'individual' => $individual, 'tree' => $tree]) ?> 20 </div> 21 </div> 22 23 <div class="row form-group"> 24 <label class="col-sm-3 col-form-label wt-page-options-label"> 25 <?= I18N::translate('Layout') ?> 26 </label> 27 <div class="col-sm-9 wt-page-options-value"> 28 <?= view('components/select', ['name' => 'chart_style', 'selected' => $chart_style, 'options' => $chart_styles]) ?> 29 </div> 30 </div> 31 32 <div class="row form-group"> 33 <label class="col-sm-3 col-form-label wt-page-options-label" for="generations"> 34 <?= I18N::translate('Generations') ?> 35 </label> 36 <div class="col-sm-9 wt-page-options-value"> 37 <?= view('components/select', ['name' => 'generations', 'selected' => $generations, 'options' => FunctionsEdit::numericOptions(range($minimum_generations, $maximum_generations))]) ?> 38 </div> 39 </div> 40 41 <div class="row form-group"> 42 <label class="col-sm-3 col-form-label wt-page-options-label" for="fan_width"> 43 <?= I18N::translate('Zoom') ?> 44 </label> 45 <div class="col-sm-9 wt-page-options-value"> 46 <div class="input-group"> 47 <input class="form-control" id="fan_width" max="<?= $maximum_width ?>" min="<?= $minimum_width ?>" name="fan_width" required type="number" value="<?= $fan_width ?>"> 48 <div class="input-group-append"> 49 <span class="input-group-text"> 50 % 51 </span> 52 </div> 53 </div> 54 </div> 55 </div> 56 57 <div class="row form-group"> 58 <div class="col-form-label col-sm-3 wt-page-options-label"></div> 59 <div class="col-sm-9 wt-page-options-value"> 60 <input class="btn btn-primary" type="submit" value="<?= /* I18N: A button label. */ I18N::translate('view') ?>"> 61 </div> 62 </div> 63</form> 64 65<div class="wt-ajax-load wt-page-content wt-chart wt-chart-fan" data-ajax-url="<?= e($ajax_url) ?>"></div> 66