1d70512abSGreg Roach<?php 2d70512abSGreg Roach 3*10e06497SGreg Roachdeclare(strict_types=1); 4*10e06497SGreg Roach 57c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkChildToFamilyAction; 67c7d1e03SGreg Roachuse Fisharebest\Webtrees\I18N; 77c2c99faSGreg Roachuse Fisharebest\Webtrees\Individual; 8fb0b33a5SGreg Roachuse Fisharebest\Webtrees\Registry; 97c2c99faSGreg Roachuse Fisharebest\Webtrees\Tree; 107c2c99faSGreg Roach 117c2c99faSGreg Roach/** 127c2c99faSGreg Roach * @var Individual $individual 137c2c99faSGreg Roach * @var string $title 147c2c99faSGreg Roach * @var Tree $tree 157c2c99faSGreg Roach * @var string $xref 167c2c99faSGreg Roach */ 17d70512abSGreg Roach 18d70512abSGreg Roach?> 19dd6b2bfcSGreg Roach 20dd6b2bfcSGreg Roach<h2 class="wt-page-title"><?= $title ?></h2> 21dd6b2bfcSGreg Roach 227c7d1e03SGreg Roach<form method="post" action="<?= e(route(LinkChildToFamilyAction::class, ['tree' => $tree->name(), 'xref' => $xref])) ?>" class="wt-page-content"> 239e3c2cf9SGreg Roach <div class="row mb-3"> 24dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label" for="famid"> 25dd6b2bfcSGreg Roach <?= I18N::translate('Family') ?> 26dd6b2bfcSGreg Roach </label> 27dd6b2bfcSGreg Roach <div class="col-sm-9"> 28b6c326d8SGreg Roach <?= view('components/select-family', ['name' => 'famid', 'tree' => $tree]) ?> 29dd6b2bfcSGreg Roach </div> 30dd6b2bfcSGreg Roach </div> 31dd6b2bfcSGreg Roach 329e3c2cf9SGreg Roach <div class="row mb-3"> 33dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label" for="PEDI"> 3450220ae3SGreg Roach <?= Registry::elementFactory()->make('INDI:FAMC:PEDI')->label() ?> 35dd6b2bfcSGreg Roach </label> 36dd6b2bfcSGreg Roach <div class="col-sm-9"> 37b5a3d330SGreg Roach <?= Registry::elementFactory()->make('INDI:FAMC:PEDI')->edit('PEDI', 'PEDI', '', $tree) ?> 38315eb316SGreg Roach <div class="form-text"> 39dd6b2bfcSGreg 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.') ?> 40315eb316SGreg Roach </div> 41dd6b2bfcSGreg Roach </div> 42dd6b2bfcSGreg Roach </div> 43dd6b2bfcSGreg Roach 449e3c2cf9SGreg Roach <div class="row mb-3"> 45dd6b2bfcSGreg Roach <div class="col-sm-9 offset-sm-3"> 46dd6b2bfcSGreg Roach <button class="btn btn-primary" type="submit"> 47d993d560SGreg Roach <?= view('icons/save') ?> 48dd6b2bfcSGreg Roach <?= /* I18N: A button label. */ 49dd6b2bfcSGreg Roach I18N::translate('save') ?> 50dd6b2bfcSGreg Roach </button> 51dd6b2bfcSGreg Roach <a class="btn btn-secondary" href="<?= e($individual->url()) ?>"> 52d993d560SGreg Roach <?= view('icons/cancel') ?> 53dd6b2bfcSGreg Roach <?= /* I18N: A button label. */ 54dd6b2bfcSGreg Roach I18N::translate('cancel') ?> 55dd6b2bfcSGreg Roach </a> 56dd6b2bfcSGreg Roach </div> 57dd6b2bfcSGreg Roach </div> 5881443e3cSGreg Roach 5981443e3cSGreg Roach <?= csrf_field() ?> 60dd6b2bfcSGreg Roach</form> 61