xref: /webtrees/resources/views/admin/trees-unconnected.phtml (revision 9f9acdbc09170c04c1e150c36ee57d49027e314a)
1<?php
2
3use Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel;
4use Fisharebest\Webtrees\Http\RequestHandlers\UnconnectedAction;
5use Fisharebest\Webtrees\I18N;
6use Fisharebest\Webtrees\Individual;
7use Fisharebest\Webtrees\Tree;
8
9/**
10 * @var string         $title
11 * @var bool           $aliases
12 * @var bool           $associates
13 * @var Individual[][] $individual_groups
14 * @var Individual     $root
15 * @var Tree           $tree
16 */
17
18?>
19
20<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), route('manage-trees', ['tree' => $tree->name()]) => I18N::translate('Manage family trees '), $title]]) ?>
21
22<h1><?= $title ?></h1>
23
24<form method="post" action="<?= e(route(UnconnectedAction::class, ['tree' => $tree->name()])) ?>" class="form-inline">
25    <?= csrf_field() ?>
26
27    <?= view('components/checkbox-inline', ['label' => I18N::translate('Include associates'), 'checked' => $associates, 'name' => 'associates']) ?>
28    <?= view('components/checkbox-inline', ['label' => I18N::translate('Include aliases'), 'checked' => $aliases, 'name' => 'aliases']) ?>
29    <button type="submit" class="btn btn-primary">
30        <?= I18N::translate('update') ?>
31    </button>
32</form>
33
34<p><?= I18N::translate('These groups of individuals are not related to %s.', $root->fullName()) ?></p>
35
36<?php foreach ($individual_groups as $group) : ?>
37    <h2><?= I18N::plural('%s individual', '%s individuals', count($group), I18N::number(count($group))) ?></h2>
38    <ul>
39        <?php foreach ($group as $individual) : ?>
40            <li>
41                <a href="<?= e($individual->url()) ?>"><?= $individual->fullName() ?></a>
42            </li>
43        <?php endforeach ?>
44    </ul>
45<?php endforeach ?>
46