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