171378461SGreg Roach<?php 2d70512abSGreg Roach 371378461SGreg Roachuse Fisharebest\Webtrees\I18N; 47c2c99faSGreg Roachuse Fisharebest\Webtrees\Individual; 57c2c99faSGreg Roachuse Fisharebest\Webtrees\Tree; 67c2c99faSGreg Roach 77c2c99faSGreg Roach/** 87c2c99faSGreg Roach * @var string $ajax_url 97c2c99faSGreg Roach * @var int $book_size 107c2c99faSGreg Roach * @var int $generations 117c2c99faSGreg Roach * @var Individual $individual 12b55cbc6bSGreg Roach * @var int $maximum_book_size 13b55cbc6bSGreg Roach * @var int $minimum_book_size 147c2c99faSGreg Roach * @var int $maximum_generations 157c2c99faSGreg Roach * @var int $minimum_generations 167c2c99faSGreg Roach * @var bool $spouses 177c2c99faSGreg Roach * @var string $title 187c2c99faSGreg Roach * @var Tree $tree 197c2c99faSGreg Roach */ 20d70512abSGreg Roach 2171378461SGreg Roach?> 229b5537c3SGreg Roach 239b5537c3SGreg Roach<h2 class="wt-page-title"> 249b5537c3SGreg Roach <?= $title ?> 259b5537c3SGreg Roach</h2> 269b5537c3SGreg Roach 2771378461SGreg Roach<form method="post" class="wt-page-options wt-page-options-family-book-chart d-print-none"> 2871378461SGreg Roach <?= csrf_field() ?> 299b5537c3SGreg Roach 30*9e3c2cf9SGreg 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 39*9e3c2cf9SGreg 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 48*9e3c2cf9SGreg 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 57*9e3c2cf9SGreg 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 66*9e3c2cf9SGreg 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> 729b5537c3SGreg Roach</form> 739b5537c3SGreg Roach 74d4786c66SGreg Roach<div class="wt-ajax-load wt-page-content wt-chart wt-chart-family-book" data-wt-ajax-url="<?= e($ajax_url) ?>"></div> 75