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