171378461SGreg Roach<?php 2d70512abSGreg Roach 3*10e06497SGreg Roachdeclare(strict_types=1); 4*10e06497SGreg Roach 571378461SGreg Roachuse Fisharebest\Webtrees\I18N; 67c2c99faSGreg Roachuse Fisharebest\Webtrees\Individual; 77c2c99faSGreg Roachuse Fisharebest\Webtrees\Tree; 87c2c99faSGreg Roach 97c2c99faSGreg Roach/** 107c2c99faSGreg Roach * @var string $ajax_url 117c2c99faSGreg Roach * @var int $book_size 127c2c99faSGreg Roach * @var int $generations 137c2c99faSGreg Roach * @var Individual $individual 14b55cbc6bSGreg Roach * @var int $maximum_book_size 15b55cbc6bSGreg Roach * @var int $minimum_book_size 167c2c99faSGreg Roach * @var int $maximum_generations 177c2c99faSGreg Roach * @var int $minimum_generations 187c2c99faSGreg Roach * @var bool $spouses 197c2c99faSGreg Roach * @var string $title 207c2c99faSGreg Roach * @var Tree $tree 217c2c99faSGreg Roach */ 22d70512abSGreg Roach 2371378461SGreg Roach?> 249b5537c3SGreg Roach 259b5537c3SGreg Roach<h2 class="wt-page-title"> 269b5537c3SGreg Roach <?= $title ?> 279b5537c3SGreg Roach</h2> 289b5537c3SGreg Roach 2971378461SGreg Roach<form method="post" class="wt-page-options wt-page-options-family-book-chart d-print-none"> 309e3c2cf9SGreg Roach <div class="row"> 319b5537c3SGreg Roach <label class="col-sm-3 col-form-label wt-page-options-label" for="xref"> 329b5537c3SGreg Roach <?= I18N::translate('Individual') ?> 339b5537c3SGreg Roach </label> 349b5537c3SGreg Roach <div class="col-sm-9 wt-page-options-value"> 3500efc03cSGreg Roach <?= view('components/select-individual', ['name' => 'xref', 'individual' => $individual, 'tree' => $tree, 'required' => true]) ?> 369b5537c3SGreg Roach </div> 379b5537c3SGreg Roach </div> 389b5537c3SGreg Roach 399e3c2cf9SGreg Roach <div class="row"> 409b5537c3SGreg Roach <label class="col-sm-3 col-form-label wt-page-options-label" for="book_size"> 419b5537c3SGreg Roach <?= I18N::translate('Generations') ?> 429b5537c3SGreg Roach </label> 439b5537c3SGreg Roach <div class="col-sm-9 wt-page-options-value"> 44b55cbc6bSGreg Roach <?= view('components/select-number', ['name' => 'book_size', 'selected' => $book_size, 'options' => range($minimum_book_size, $maximum_book_size)]) ?> 459b5537c3SGreg Roach </div> 469b5537c3SGreg Roach </div> 479b5537c3SGreg Roach 489e3c2cf9SGreg Roach <div class="row"> 499b5537c3SGreg Roach <label class="col-sm-3 col-form-label wt-page-options-label" for="generations"> 509b5537c3SGreg Roach <?= I18N::translate('Descendant generations') ?> 519b5537c3SGreg Roach </label> 529b5537c3SGreg Roach <div class="col-sm-9 wt-page-options-value"> 53f91b18ebSGreg Roach <?= view('components/select-number', ['name' => 'generations', 'selected' => $generations, 'options' => range($minimum_generations, $maximum_generations)]) ?> 549b5537c3SGreg Roach </div> 559b5537c3SGreg Roach </div> 569b5537c3SGreg Roach 579e3c2cf9SGreg Roach <fieldset class="row mb-3"> 589b5537c3SGreg Roach <legend class="col-form-label col-sm-3 wt-page-options-label"> 599b5537c3SGreg Roach <?= I18N::translate('Spouses') ?> 609b5537c3SGreg Roach </legend> 619b5537c3SGreg Roach <div class="col-sm-9 wt-page-options-value"> 6271378461SGreg Roach <?= view('components/checkbox', ['label' => I18N::translate('Show spouses'), 'name' => 'spouses', 'checked' => $spouses]) ?> 639b5537c3SGreg Roach </div> 649b5537c3SGreg Roach </fieldset> 659b5537c3SGreg Roach 669e3c2cf9SGreg Roach <div class="row mb-3"> 679b5537c3SGreg Roach <div class="col-sm-3 wt-page-options-label"></div> 689b5537c3SGreg Roach <div class="col-sm-9 wt-page-options-value"> 699b5537c3SGreg Roach <input class="btn btn-primary" type="submit" value="<?= /* I18N: A button label. */ I18N::translate('view') ?>"> 709b5537c3SGreg Roach </div> 719b5537c3SGreg Roach </div> 7281443e3cSGreg Roach 7381443e3cSGreg Roach <?= csrf_field() ?> 749b5537c3SGreg Roach</form> 759b5537c3SGreg Roach 76d4786c66SGreg Roach<div class="wt-ajax-load wt-page-content wt-chart wt-chart-family-book" data-wt-ajax-url="<?= e($ajax_url) ?>"></div> 77