<?php use Fisharebest\Webtrees\I18N; ?>

<form method="post" action="<?= e(route('edit-media-file', ['xref' => $media->xref(), 'ged' => $media->tree()->name(), 'fact_id' => $media_file->factId()])) ?>" enctype="multipart/form-data">
    <?= csrf_field() ?>

    <?= view('modals/header', ['title' => I18N::translate('Edit a media file')]) ?>

    <div class="modal-body">
        <?= view('modals/media-file-fields', ['max_upload_size' => $max_upload_size, 'unused_files' => [], 'media_file' => $media_file]) ?>
    </div>

    <?= view('modals/footer-save-cancel') ?>
</form>
