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