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