xref: /webtrees/resources/views/admin/trees-renumber.phtml (revision 00b1984e374faddab4698e73088f0c964e529b65)
1<?php
2
3use Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel;
4use Fisharebest\Webtrees\I18N;
5
6?>
7
8<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), route('manage-trees', ['tree' => $tree->name()]) => I18N::translate('Manage family trees '), $title]]) ?>
9
10<h1><?= $title ?></h1>
11
12<p>
13    <?= I18N::translate('In a family tree, each record has an internal reference number (called an “XREF”) such as “F123” or “R14”.') ?>
14</p>
15
16<p>
17    <?= 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.') ?>
18</p>
19
20<p>
21    <?= 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))) ?>
22</p>
23
24<?php if (!empty($xrefs)) : ?>
25    <p>
26        <?= I18N::translate('You can renumber this family tree.') ?>
27    </p>
28
29    <form method="post">
30        <?= csrf_field() ?>
31        <button type="submit" class="btn btn-primary">
32            <?= view('icons/save') ?>
33            <?= /* I18N: A button label. */
34            I18N::translate('continue') ?>
35        </button>
36
37        <?= I18N::translate('Caution! This may take a long time. Be patient.') ?>
38    </form>
39<?php endif ?>
40