xref: /webtrees/resources/views/modules/ancestors-chart/page.phtml (revision 7c2c99fad7cacd17c98be88238ff735d82c6351b)
150b578bcSGreg Roach<?php
250b578bcSGreg Roach
350b578bcSGreg Roachuse Fisharebest\Webtrees\I18N;
4*7c2c99faSGreg Roachuse Fisharebest\Webtrees\Individual;
5*7c2c99faSGreg Roachuse Fisharebest\Webtrees\Tree;
6*7c2c99faSGreg Roach
7*7c2c99faSGreg Roach/**
8*7c2c99faSGreg Roach * @var string               $ajax_url
9*7c2c99faSGreg Roach * @var int                  $generations
10*7c2c99faSGreg Roach * @var Individual|null      $individual
11*7c2c99faSGreg Roach * @var int                  $maximum_generations
12*7c2c99faSGreg Roach * @var int                  $minimum_generations
13*7c2c99faSGreg Roach * @var string               $style
14*7c2c99faSGreg Roach * @var array<string,string> $styles
15*7c2c99faSGreg Roach * @var string               $title
16*7c2c99faSGreg Roach * @var Tree                 $tree
17*7c2c99faSGreg Roach */
1850b578bcSGreg Roach
1950b578bcSGreg Roach?>
209b5537c3SGreg Roach
219b5537c3SGreg Roach<h2 class="wt-page-title">
229b5537c3SGreg Roach    <?= $title ?>
239b5537c3SGreg Roach</h2>
249b5537c3SGreg Roach
2571378461SGreg Roach<form method="post" class="wt-page-options wt-page-options-ancestors-chart d-print-none">
2671378461SGreg Roach    <?= csrf_field() ?>
279b5537c3SGreg Roach
289b5537c3SGreg Roach    <div class="row form-group">
299b5537c3SGreg Roach        <label class="col-sm-3 col-form-label wt-page-options-label" for="xref">
309b5537c3SGreg Roach            <?= I18N::translate('Individual') ?>
319b5537c3SGreg Roach        </label>
329b5537c3SGreg Roach        <div class="col-sm-9 wt-page-options-value">
3300efc03cSGreg Roach            <?= view('components/select-individual', ['name' => 'xref', 'individual' => $individual, 'tree' => $tree, 'required' => true]) ?>
349b5537c3SGreg Roach        </div>
359b5537c3SGreg Roach    </div>
369b5537c3SGreg Roach
379b5537c3SGreg Roach    <div class="row form-group">
389b5537c3SGreg Roach        <label class="col-sm-3 col-form-label wt-page-options-label" for="generations">
399b5537c3SGreg Roach            <?= I18N::translate('Generations') ?>
409b5537c3SGreg Roach        </label>
419b5537c3SGreg Roach        <div class="col-sm-9 wt-page-options-value">
429b5537c3SGreg Roach            <input class="form-control" id="generations" name="generations" type="number" min="<?= e($minimum_generations) ?>" max="<?= e($maximum_generations) ?>" value="<?= e($generations) ?>" required>
439b5537c3SGreg Roach        </div>
449b5537c3SGreg Roach    </div>
459b5537c3SGreg Roach
469b5537c3SGreg Roach    <fieldset class="form-group">
479b5537c3SGreg Roach        <div class="row">
489b5537c3SGreg Roach            <legend class="col-form-label col-sm-3 wt-page-options-label">
499b5537c3SGreg Roach                <?= I18N::translate('Layout') ?>
509b5537c3SGreg Roach            </legend>
519b5537c3SGreg Roach            <div class="col-sm-9 wt-page-options-value">
5271378461SGreg Roach                <?= view('components/radios-inline', ['name' => 'style', 'options' => $styles, 'selected' => $style]) ?>
539b5537c3SGreg Roach            </div>
549b5537c3SGreg Roach        </div>
559b5537c3SGreg Roach    </fieldset>
569b5537c3SGreg Roach
579b5537c3SGreg Roach    <div class="row form-group">
589b5537c3SGreg Roach        <div class="col-form-label col-sm-3 wt-page-options-label"></div>
599b5537c3SGreg Roach        <div class="col-sm-9 wt-page-options-value">
609b5537c3SGreg Roach            <input class="btn btn-primary" type="submit" value="<?= /* I18N: A button label. */ I18N::translate('view') ?>">
619b5537c3SGreg Roach        </div>
629b5537c3SGreg Roach    </div>
639b5537c3SGreg Roach</form>
649b5537c3SGreg Roach
65242a7862SGreg Roach<div class="wt-ajax-load wt-page-content wt-chart wt-chart-ancestors" data-ajax-url="<?= e($ajax_url) ?>"></div>
66