xref: /webtrees/resources/views/modules/relationships-chart/config.phtml (revision 73b8c04073f4aae42af235f4485847d0a07c8f8c)
1<?php
2
3use Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel;
4use Fisharebest\Webtrees\Http\RequestHandlers\ModulesAllPage;
5use Fisharebest\Webtrees\I18N;
6
7?>
8
9<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), route(ModulesAllPage::class) => I18N::translate('Modules'), $title]]) ?>
10
11<h1><?= $title ?></h1>
12<p>
13    <?= I18N::translate('Searching for all possible relationships can take a lot of time in complex trees.') ?>
14</p>
15
16<form method="post">
17    <?= csrf_field() ?>
18    <?php foreach ($all_trees as $tree) : ?>
19        <h2><?= e($tree->title()) ?></h2>
20        <div class="row form-group">
21            <label class="col-sm-3 col-form-label" for="relationship-ancestors-<?= $tree->id() ?>">
22                <?= /* I18N: Configuration option */
23                I18N::translate('Relationships') ?>
24            </label>
25            <div class="col-sm-9">
26                <?= view('components/select', ['name' => 'relationship-ancestors-' . $tree->id(), 'selected' => $tree->getPreference('RELATIONSHIP_ANCESTORS', $default_ancestors), 'options' => $ancestors_options]) ?>
27            </div>
28        </div>
29
30        <fieldset class="form-group">
31            <div class="row">
32                <legend class="col-form-label col-sm-3">
33                    <?= /* I18N: Configuration option */
34                    I18N::translate('How much recursion to use when searching for relationships') ?>
35                </legend>
36                <div class="col-sm-9">
37                    <?= view('components/radios-inline', ['name' => 'relationship-recursion-' . $tree->id(), 'options' => $recursion_options, 'selected' => (int) $tree->getPreference('RELATIONSHIP_RECURSION', $default_recursion)]) ?>
38                </div>
39            </div>
40        </fieldset>
41    <?php endforeach ?>
42
43    <div class="row form-group">
44        <div class="offset-sm-3 col-sm-9">
45            <button type="submit" class="btn btn-primary">
46                <?= view('icons/save') ?>
47                <?= I18N::translate('save') ?>
48            </button>
49        </div>
50    </div>
51</form>
52