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