1d70512abSGreg Roach<?php 2d70512abSGreg Roach 3ddb44b4cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditMediaFileAction; 4d70512abSGreg Roachuse Fisharebest\Webtrees\I18N; 5ddb44b4cSGreg Roachuse Fisharebest\Webtrees\Media; 6ddb44b4cSGreg Roachuse Fisharebest\Webtrees\MediaFile; 7ddb44b4cSGreg Roachuse Fisharebest\Webtrees\Tree; 8ddb44b4cSGreg Roach 9ddb44b4cSGreg Roach/** 10ddb44b4cSGreg Roach * @var string $max_upload_size 11ddb44b4cSGreg Roach * @var Media $media 12ddb44b4cSGreg Roach * @var MediaFile $media_file 13455a30feSGreg Roach * @var array<int|string,string> $media_types 14ddb44b4cSGreg Roach * @var Tree $tree 15ddb44b4cSGreg Roach */ 16d70512abSGreg Roach 17d70512abSGreg Roach?> 18dd6b2bfcSGreg Roach 19ddb44b4cSGreg Roach<form method="post" action="<?= e(route(EditMediaFileAction::class, ['xref' => $media->xref(), 'tree' => $media->tree()->name(), 'fact_id' => $media_file->factId()])) ?>" enctype="multipart/form-data"> 20dd6b2bfcSGreg Roach <?= view('modals/header', ['title' => I18N::translate('Edit a media file')]) ?> 21dd6b2bfcSGreg Roach 22dd6b2bfcSGreg Roach <div class="modal-body"> 23455a30feSGreg Roach <?= view('modals/media-file-fields', ['max_upload_size' => $max_upload_size, 'media_file' => $media_file, 'media_types' => $media_types, 'tree' => $tree, 'unused_files' => []]) ?> 24dd6b2bfcSGreg Roach </div> 25dd6b2bfcSGreg Roach 26dd6b2bfcSGreg Roach <?= view('modals/footer-save-cancel') ?> 27*81443e3cSGreg Roach 28*81443e3cSGreg Roach <?= csrf_field() ?> 29dd6b2bfcSGreg Roach</form> 30