xref: /webtrees/resources/views/modals/link-media-to-individual.phtml (revision c09358794665832df009408551d8543ccb6e3783)
1dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\Functions\FunctionsEdit; ?>
2dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\I18N; ?>
3dd6b2bfcSGreg Roach
4dd6b2bfcSGreg Roach<form action="<?= e(route('link-media-to-record')) ?>" id="wt-modal-form" method="POST">
5dd6b2bfcSGreg Roach    <?= csrf_field() ?>
6aa6f03bbSGreg Roach    <input type="hidden" name="ged" value="<?= e($tree->name()) ?>">
7*c0935879SGreg Roach    <input type="hidden" name="xref" value="<?= e($media->xref()) ?>">
8dd6b2bfcSGreg Roach
9dd6b2bfcSGreg Roach    <?= view('modals/header', ['title' => I18N::translate('Link this media object to an individual')]) ?>
10dd6b2bfcSGreg Roach
11dd6b2bfcSGreg Roach    <div class="modal-body">
12dd6b2bfcSGreg Roach        <div class="form-group">
13dd6b2bfcSGreg Roach            <label class="col-form-label" for="link">
14dd6b2bfcSGreg Roach                <?= I18N::translate('Individual') ?>
15dd6b2bfcSGreg Roach            </label>
16dd6b2bfcSGreg Roach            <?= FunctionsEdit::formControlIndividual($tree, null, ['id' => 'link', 'name' => 'link']) ?>
17dd6b2bfcSGreg Roach        </div>
18dd6b2bfcSGreg Roach    </div>
19dd6b2bfcSGreg Roach
20dd6b2bfcSGreg Roach    <?= view('modals/footer-save-cancel') ?>
21dd6b2bfcSGreg Roach</form>
22