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