xref: /webtrees/resources/views/modals/edit-media-file.phtml (revision b0fcccb03b84c12d54b4ae85014c3af52863d08c)
1<?php
2
3use Fisharebest\Webtrees\I18N;
4
5?>
6
7<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">
8    <?= csrf_field() ?>
9
10    <?= view('modals/header', ['title' => I18N::translate('Edit a media file')]) ?>
11
12    <div class="modal-body">
13        <?= view('modals/media-file-fields', ['max_upload_size' => $max_upload_size, 'unused_files' => [], 'media_file' => $media_file, 'tree' => $tree]) ?>
14    </div>
15
16    <?= view('modals/footer-save-cancel') ?>
17</form>
18