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