1<?php 2 3declare(strict_types=1); 4 5use Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel; 6use Fisharebest\Webtrees\Http\RequestHandlers\ManageTrees; 7use Fisharebest\Webtrees\Http\RequestHandlers\RenumberTreeAction; 8use Fisharebest\Webtrees\I18N; 9use Fisharebest\Webtrees\Tree; 10 11/** 12 * @var Tree $tree 13 * @var string $title 14 * @var array<string> $xrefs 15 */ 16 17?> 18 19<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), route(ManageTrees::class, ['tree' => $tree->name()]) => I18N::translate('Manage family trees'), $title]]) ?> 20 21<h1><?= $title ?></h1> 22 23<p> 24 <?= I18N::translate('In a family tree, each record has an internal reference number (called an “XREF”) such as “F123” or “R14”.') ?> 25</p> 26 27<p> 28 <?= I18N::translate('You can renumber the records in a family tree, so that these internal reference numbers are not duplicated in any other family tree.') ?> 29</p> 30 31<p> 32 <?= I18N::plural('This family tree has %s record which uses the same “XREF” as another family tree.', 'This family tree has %s records which use the same “XREF” as another family tree.', count($xrefs), I18N::number(count($xrefs))) ?> 33</p> 34 35<?php if (!empty($xrefs)) : ?> 36 <p> 37 <?= I18N::translate('You can renumber this family tree.') ?> 38 </p> 39 40 <form method="post" action="<?= e(route(RenumberTreeAction::class, ['tree' => $tree->name()])) ?>"> 41 <button type="submit" class="btn btn-primary"> 42 <?= view('icons/save') ?> 43 <?= /* I18N: A button label. */ 44 I18N::translate('continue') ?> 45 </button> 46 47 <?= I18N::translate('Caution! This may take a long time. Be patient.') ?> 48 49 <?= csrf_field() ?> 50 </form> 51<?php endif ?> 52