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