1dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\Functions\FunctionsEdit; ?> 2dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\I18N; ?> 3dd6b2bfcSGreg Roach 4dd6b2bfcSGreg Roach<form action="<?= e(route('link-media-to-record')) ?>" id="wt-modal-form" method="POST"> 5dd6b2bfcSGreg Roach <?= csrf_field() ?> 6*aa6f03bbSGreg Roach <input type="hidden" name="ged" value="<?= e($tree->name()) ?>"> 7dd6b2bfcSGreg Roach <input type="hidden" name="xref" value="<?= e($media->getXref()) ?>"> 8dd6b2bfcSGreg Roach 9dd6b2bfcSGreg Roach <?= view('modals/header', ['title' => I18N::translate('Link this media object to an individual')]) ?> 10dd6b2bfcSGreg Roach 11dd6b2bfcSGreg Roach <div class="modal-body"> 12dd6b2bfcSGreg Roach <div class="form-group"> 13dd6b2bfcSGreg Roach <label class="col-form-label" for="link"> 14dd6b2bfcSGreg Roach <?= I18N::translate('Individual') ?> 15dd6b2bfcSGreg Roach </label> 16dd6b2bfcSGreg Roach <?= FunctionsEdit::formControlIndividual($tree, null, ['id' => 'link', 'name' => 'link']) ?> 17dd6b2bfcSGreg Roach </div> 18dd6b2bfcSGreg Roach </div> 19dd6b2bfcSGreg Roach 20dd6b2bfcSGreg Roach <?= view('modals/footer-save-cancel') ?> 21dd6b2bfcSGreg Roach</form> 22