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-timeline-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 <input type="hidden" name="scale" value="<?= e($scale) ?>"> 14 15 <?php foreach ($individuals as $individual) : ?> 16 <input name="xrefs[]" type="hidden" value="<?= e($individual->xref()) ?>"> 17 <?php endforeach ?> 18 19 <div class="row form-group"> 20 <label class="col-sm-3 col-form-label wt-page-options-label" for="xref-add"> 21 <?= I18N::translate('Individual') ?> 22 </label> 23 <div class="col-sm-9 wt-page-options-value"> 24 <?= FunctionsEdit::formControlIndividual($tree, null, [ 25 'id' => 'xref-add', 26 'name' => 'xrefs[]', 27 ]) ?> 28 </div> 29 </div> 30 31 <div class="row form-group"> 32 <div class="col-form-label 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('add') ?>"> 36 <a class="btn btn-secondary" href="<?= e($reset_url) ?>"> 37 <?= /* I18N: A button label. */ I18N::translate('reset') ?> 38 </a> 39 </div> 40 </div> 41 42 <div class="row form-group"> 43 <div class="col-form-label col-sm-3 wt-page-options-label"></div> 44 <div class="col-sm-9 wt-page-options-value"> 45 <a href="<?= e($zoom_in_url) ?>" title="<?= I18N::translate('Zoom in') ?>"> 46 <?= view('icons/zoom-in') ?> 47 </a> 48 <a href="<?= e($zoom_out_url) ?>" title="<?= I18N::translate('Zoom out') ?>"> 49 <?= view('icons/zoom-out') ?> 50 </a> 51 </div> 52 </div> 53</form> 54 55<div class="row my-4"> 56 <?php foreach ($individuals as $n => $individual) : ?> 57 <div class="col-md-6 col-lg-4 col-xl-3 person<?= $n % 6 ?>"> 58 <?= $individual->getSexImage('large'); ?> 59 <a href="<?= e($individual->url()) ?>"> 60 <?= $individual->fullName() ?> 61 <?php if ($individual->alternateName() !== '') : ?> 62 <br> 63 <?= $individual->alternateName() ?> 64 <?php endif ?> 65 </a> 66 <a href="<?= e($remove_urls[$individual->xref()]) ?>"> 67 <?= I18N::translate('Remove individual') ?> 68 </a> 69 <?php if ($individual->getBirthDate()->isOK()) : ?> 70 <br> 71 <label> 72 <input type="checkbox" name="agebar<?= $n ?>" value="ON" onclick="$('#agebox<?= $n ?>').toggle();"> 73 <?= /* I18N: an age indicator, which can be dragged around the screen */ I18N::translate('Show an age cursor') ?> 74 </label> 75 <?php endif ?> 76 </div> 77 <?php endforeach ?> 78</div> 79 80<div class="wt-ajax-load wt-page-content wt-chart wt-timeline-chart" data-ajax-url="<?= e($ajax_url) ?>"></div> 81