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