xref: /webtrees/resources/views/edit/link-child-to-family.phtml (revision b6c326d8b8798b83b744c4d4a669df5aa9f3e0c2)
1<?php use Fisharebest\Webtrees\GedcomCode\GedcomCodePedi; ?>
2<?php use Fisharebest\Webtrees\I18N; ?>
3
4<h2 class="wt-page-title"><?= $title ?></h2>
5
6<form class="wt-page-content" method="post">
7    <?= csrf_field() ?>
8
9    <div class="row form-group">
10        <label class="col-sm-3 col-form-label" for="famid">
11            <?= I18N::translate('Family') ?>
12        </label>
13        <div class="col-sm-9">
14            <?= view('components/select-family', ['name' => 'famid', 'tree' => $tree]) ?>
15        </div>
16    </div>
17
18    <div class="row form-group">
19        <label class="col-sm-3 col-form-label" for="PEDI">
20            <?= I18N::translate('Pedigree') ?>
21        </label>
22        <div class="col-sm-9">
23            <?= view('components/select', ['name' => 'PEDI', 'selected' => '', 'values' => GedcomCodePedi::getValues($individual)]) ?>
24            <p class="small text-muted">
25                <?= I18N::translate('A child may have more than one set of parents. The relationship between the child and the parents can be biological, legal, or based on local culture and tradition. If no pedigree is specified, then a biological relationship will be assumed.') ?>
26            </p>
27        </div>
28    </div>
29
30    <div class="row form-group">
31        <div class="col-sm-9 offset-sm-3">
32            <button class="btn btn-primary" type="submit">
33                <?= view('icons/save') ?>
34                <?= /* I18N: A button label. */
35                I18N::translate('save') ?>
36            </button>
37            <a class="btn btn-secondary" href="<?= e($individual->url()) ?>">
38                <?= view('icons/cancel') ?>
39                <?= /* I18N: A button label. */
40                I18N::translate('cancel') ?>
41            </a>
42        </div>
43    </div>
44</form>
45