1d70512abSGreg Roach<?php 2d70512abSGreg Roach 3*10e06497SGreg Roachdeclare(strict_types=1); 4*10e06497SGreg Roach 5ddb44b4cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkMediaToRecordAction; 6d70512abSGreg Roachuse Fisharebest\Webtrees\I18N; 7ddb44b4cSGreg Roachuse Fisharebest\Webtrees\Media; 8ddb44b4cSGreg Roachuse Fisharebest\Webtrees\Tree; 9ddb44b4cSGreg Roach 10ddb44b4cSGreg Roach/** 11ddb44b4cSGreg Roach * @var Media $media 12ddb44b4cSGreg Roach * @var Tree $tree 13ddb44b4cSGreg Roach */ 14d70512abSGreg Roach 15d70512abSGreg Roach?> 16dd6b2bfcSGreg Roach 17ddb44b4cSGreg Roach<form method="post" action="<?= e(route(LinkMediaToRecordAction::class, ['tree' => $tree->name(), 'xref' => $media->xref()])) ?>" id="wt-modal-form"> 18dd6b2bfcSGreg Roach <?= view('modals/header', ['title' => I18N::translate('Link this media object to a family')]) ?> 19dd6b2bfcSGreg Roach 20dd6b2bfcSGreg Roach <div class="modal-body"> 219e3c2cf9SGreg Roach <div class="mb-3"> 22dd6b2bfcSGreg Roach <label class="col-form-label" for="link"> 23dd6b2bfcSGreg Roach <?= I18N::translate('Family') ?> 24dd6b2bfcSGreg Roach </label> 25b6c326d8SGreg Roach <?= view('components/select-family', ['name' => 'link', 'tree' => $tree]) ?> 26dd6b2bfcSGreg Roach </div> 27dd6b2bfcSGreg Roach </div> 28dd6b2bfcSGreg Roach 29dd6b2bfcSGreg Roach <?= view('modals/footer-save-cancel') ?> 3081443e3cSGreg Roach 3181443e3cSGreg Roach <?= csrf_field() ?> 32dd6b2bfcSGreg Roach</form> 33dd6b2bfcSGreg Roach 34