xref: /webtrees/resources/views/modals/edit-media-file.phtml (revision 009f366b781401d418fd04ab8ac2eb16daf18bf2)
1<?php use Fisharebest\Webtrees\I18N; ?>
2
3<form method="post" action="<?= e(route('edit-media-file', ['xref' => $media->xref(), 'tree' => $media->tree()->name(), 'fact_id' => $media_file->factId()])) ?>" enctype="multipart/form-data">
4    <?= csrf_field() ?>
5
6    <?= view('modals/header', ['title' => I18N::translate('Edit a media file')]) ?>
7
8    <div class="modal-body">
9        <?= view('modals/media-file-fields', ['max_upload_size' => $max_upload_size, 'unused_files' => [], 'media_file' => $media_file, 'tree' => $tree]) ?>
10    </div>
11
12    <?= view('modals/footer-save-cancel') ?>
13</form>
14