xref: /webtrees/resources/views/modals/edit-media-file.phtml (revision 9b152ff9230017d2c03aa1bf603a98b18250446d)
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