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