summaryrefslogtreecommitdiff
path: root/resources/views/edit/link-child-to-family.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'resources/views/edit/link-child-to-family.phtml')
-rw-r--r--resources/views/edit/link-child-to-family.phtml6
1 files changed, 2 insertions, 4 deletions
diff --git a/resources/views/edit/link-child-to-family.phtml b/resources/views/edit/link-child-to-family.phtml
index 76aeec84b2..cc8b63d997 100644
--- a/resources/views/edit/link-child-to-family.phtml
+++ b/resources/views/edit/link-child-to-family.phtml
@@ -1,5 +1,3 @@
-<?php use Fisharebest\Webtrees\Bootstrap4; ?>
-<?php use Fisharebest\Webtrees\Functions\FunctionsEdit; ?>
<?php use Fisharebest\Webtrees\GedcomCode\GedcomCodePedi; ?>
<?php use Fisharebest\Webtrees\I18N; ?>
@@ -13,7 +11,7 @@
<?= I18N::translate('Family') ?>
</label>
<div class="col-sm-9">
- <?= FunctionsEdit::formControlFamily($tree, null, ['id' => 'famid', 'name' => 'famid']) ?>
+ <?= view('components/select-family', ['name' => 'famid', 'tree' => $tree]) ?>
</div>
</div>
@@ -22,7 +20,7 @@
<?= I18N::translate('Pedigree') ?>
</label>
<div class="col-sm-9">
- <?= Bootstrap4::select(GedcomCodePedi::getValues($individual), '', ['id' => 'PEDI', 'name' => 'PEDI']) ?>
+ <?= view('components/select', ['name' => 'PEDI', 'selected' => '', 'values' => GedcomCodePedi::getValues($individual)]) ?>
<p class="small text-muted">
<?= 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.') ?>
</p>