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