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