xref: /webtrees/resources/views/modals/link-media-to-family.phtml (revision ba1d7494e9648df5a87aaa3fece3e098e5ce26b1)
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 a family')]) ?>
9
10    <div class="modal-body">
11        <div class="form-group">
12            <label class="col-form-label" for="link">
13                <?= I18N::translate('Family') ?>
14            </label>
15            <?= view('components/select-family', ['name' => 'link', 'tree' => $tree]) ?>
16        </div>
17    </div>
18
19    <?= view('modals/footer-save-cancel') ?>
20</form>
21
22