xref: /webtrees/resources/views/edit/link-child-to-family.phtml (revision a34b54dc84837d4fd1e3b55dfaf41e1761acb658)
1<?php use Fisharebest\Webtrees\Bootstrap4; ?>
2<?php use Fisharebest\Webtrees\Functions\FunctionsEdit; ?>
3<?php use Fisharebest\Webtrees\GedcomCode\GedcomCodePedi; ?>
4<?php use Fisharebest\Webtrees\I18N; ?>
5
6<h2 class="wt-page-title"><?= $title ?></h2>
7
8<form class="wt-page-content" method="post">
9    <?= csrf_field() ?>
10
11    <div class="row form-group">
12        <label class="col-sm-3 col-form-label" for="famid">
13            <?= I18N::translate('Family') ?>
14        </label>
15        <div class="col-sm-9">
16            <?= FunctionsEdit::formControlFamily($tree, null, ['id' => 'famid', 'name' => 'famid']) ?>
17        </div>
18    </div>
19
20    <div class="row form-group">
21        <label class="col-sm-3 col-form-label" for="PEDI">
22            <?= I18N::translate('Pedigree') ?>
23        </label>
24        <div class="col-sm-9">
25            <?= Bootstrap4::select(GedcomCodePedi::getValues($individual), '', ['id' => 'PEDI', 'name' => 'PEDI']) ?>
26            <p class="small text-muted">
27                <?= 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.') ?>
28            </p>
29        </div>
30    </div>
31
32    <div class="row form-group">
33        <div class="col-sm-9 offset-sm-3">
34            <button class="btn btn-primary" type="submit">
35                <?= view('icons/save') ?>
36                <?= /* I18N: A button label. */
37                I18N::translate('save') ?>
38            </button>
39            <a class="btn btn-secondary" href="<?= e($individual->url()) ?>">
40                <?= view('icons/cancel') ?>
41                <?= /* I18N: A button label. */
42                I18N::translate('cancel') ?>
43            </a>
44        </div>
45    </div>
46</form>
47