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