xref: /webtrees/resources/views/edit/link-child-to-family.phtml (revision 6676e53a41fe1ededa19cc82f6cd2e8d21214842)
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 method="post" action="<?= e(route('link-child-to-family-action', ['tree' => $tree->name(), 'xref' => $xref])) ?>" class="wt-page-content">
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' => '', 'options' => 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