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