xref: /webtrees/resources/views/modals/link-media-to-individual.phtml (revision ddb44b4cf356ab8fd0c5d21becf3fce4c4e46244)
1d70512abSGreg Roach<?php
2d70512abSGreg Roach
3*ddb44b4cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkMediaToRecordAction;
4d70512abSGreg Roachuse Fisharebest\Webtrees\I18N;
5*ddb44b4cSGreg Roachuse Fisharebest\Webtrees\Media;
6*ddb44b4cSGreg Roachuse Fisharebest\Webtrees\Tree;
7*ddb44b4cSGreg Roach
8*ddb44b4cSGreg Roach/**
9*ddb44b4cSGreg Roach * @var Media $media
10*ddb44b4cSGreg Roach * @var Tree $tree
11*ddb44b4cSGreg Roach */
12d70512abSGreg Roach
13d70512abSGreg Roach?>
14dd6b2bfcSGreg Roach
15*ddb44b4cSGreg Roach<form method="post" action="<?= e(route(LinkMediaToRecordAction::class, ['tree' => $tree->name(), 'xref' => $media->xref()])) ?>" id="wt-modal-form">
16dd6b2bfcSGreg Roach    <?= csrf_field() ?>
17dd6b2bfcSGreg Roach
18dd6b2bfcSGreg Roach    <?= view('modals/header', ['title' => I18N::translate('Link this media object to an individual')]) ?>
19dd6b2bfcSGreg Roach
20dd6b2bfcSGreg Roach    <div class="modal-body">
21dd6b2bfcSGreg Roach        <div class="form-group">
22dd6b2bfcSGreg Roach            <label class="col-form-label" for="link">
23dd6b2bfcSGreg Roach                <?= I18N::translate('Individual') ?>
24dd6b2bfcSGreg Roach            </label>
25b6c326d8SGreg Roach            <?= view('components/select-individual', ['name' => 'link', 'tree' => $tree]) ?>
26dd6b2bfcSGreg Roach        </div>
27dd6b2bfcSGreg Roach    </div>
28dd6b2bfcSGreg Roach
29dd6b2bfcSGreg Roach    <?= view('modals/footer-save-cancel') ?>
30dd6b2bfcSGreg Roach</form>
31