xref: /webtrees/resources/views/modals/add-media-file.phtml (revision dd6b2bfcc550270bb6d6778e11576148f71e4330)
1<?php use Fisharebest\Webtrees\I18N; ?>
2
3<form action="<?= e(route('add-media-file', ['xref' => $media->getXref(), 'ged' => $media->getTree()->getName()])) ?>" enctype="multipart/form-data" method="POST">
4    <?= csrf_field() ?>
5
6    <?= view('modals/header', ['title' => I18N::translate('Add a media file')]) ?>
7
8    <div class="modal-body">
9        <?= view('modals/media-file-fields', ['max_upload_size' => $max_upload_size, 'unused_files' => $unused_files, 'media_file' => null]) ?>
10    </div>
11
12    <?= view('modals/footer-save-cancel') ?>
13</form>
14