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