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