xref: /webtrees/resources/views/modals/link-media-to-individual.phtml (revision f1d723354d7de5d20a8e2996ee1fe0d3217955e5)
1<?php use Fisharebest\Webtrees\I18N; ?>
2
3<form action="<?= e(route('link-media-to-record')) ?>" id="wt-modal-form" method="POST">
4    <?= csrf_field() ?>
5    <input type="hidden" name="ged" 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