xref: /webtrees/resources/views/modules/relationships-chart/config.phtml (revision ff207a438a844df04996b7be31c5a2e6c457057b)
19b5537c3SGreg Roach<?php use Fisharebest\Webtrees\I18N; ?>
29b5537c3SGreg Roach
30cb66f86SGreg Roach<?= view('components/breadcrumbs', ['links' => [route('admin-control-panel') => I18N::translate('Control panel'), route('modules') => I18N::translate('Modules'), $title]]) ?>
49b5537c3SGreg Roach
59b5537c3SGreg Roach<h1><?= $title ?></h1>
69b5537c3SGreg Roach<p>
79b5537c3SGreg Roach    <?= I18N::translate('Searching for all possible relationships can take a lot of time in complex trees.') ?>
89b5537c3SGreg Roach</p>
99b5537c3SGreg Roach
109b5537c3SGreg Roach<form method="post">
119b5537c3SGreg Roach    <?= csrf_field() ?>
129b5537c3SGreg Roach    <?php foreach ($all_trees as $tree) : ?>
139b5537c3SGreg Roach        <h2><?= e($tree->title()) ?></h2>
149b5537c3SGreg Roach        <div class="row form-group">
159b5537c3SGreg Roach            <label class="col-sm-3 col-form-label" for="relationship-ancestors-<?= $tree->id() ?>">
169b5537c3SGreg Roach                <?= /* I18N: Configuration option */
179b5537c3SGreg Roach                I18N::translate('Relationships') ?>
189b5537c3SGreg Roach            </label>
199b5537c3SGreg Roach            <div class="col-sm-9">
20c9e11c2aSGreg Roach                <?= view('components/select', ['name' => 'relationship-ancestors-' . $tree->id(), 'selected' => $tree->getPreference('RELATIONSHIP_ANCESTORS', $default_ancestors), 'options' => $ancestors_options]) ?>
219b5537c3SGreg Roach            </div>
229b5537c3SGreg Roach        </div>
239b5537c3SGreg Roach
249b5537c3SGreg Roach        <fieldset class="form-group">
259b5537c3SGreg Roach            <div class="row">
269b5537c3SGreg Roach                <legend class="col-form-label col-sm-3">
279b5537c3SGreg Roach                    <?= /* I18N: Configuration option */
289b5537c3SGreg Roach                    I18N::translate('How much recursion to use when searching for relationships') ?>
299b5537c3SGreg Roach                </legend>
309b5537c3SGreg Roach                <div class="col-sm-9">
31*ff207a43SGreg Roach                    <?= view('components/radios-inline', ['name' => 'relationship-recursion-' . $tree->id(), 'options' => $recursion_options, 'selected' => (int) $tree->getPreference('RELATIONSHIP_RECURSION', $default_recursion)]) ?>
329b5537c3SGreg Roach                </div>
339b5537c3SGreg Roach            </div>
349b5537c3SGreg Roach        </fieldset>
359b5537c3SGreg Roach    <?php endforeach ?>
369b5537c3SGreg Roach
379b5537c3SGreg Roach    <div class="row form-group">
389b5537c3SGreg Roach        <div class="offset-sm-3 col-sm-9">
399b5537c3SGreg Roach            <button type="submit" class="btn btn-primary">
409b5537c3SGreg Roach                <?= view('icons/save') ?>
419b5537c3SGreg Roach                <?= I18N::translate('save') ?>
429b5537c3SGreg Roach            </button>
439b5537c3SGreg Roach        </div>
449b5537c3SGreg Roach    </div>
459b5537c3SGreg Roach</form>
46