<?php

use Fisharebest\Webtrees\I18N;
use Fisharebest\Webtrees\Tree;

/**
 * @var string                   $max_upload_size
 * @var array<int|string,string> $media_types
 * @var Tree                     $tree
 * @var array<string,string>     $unused_files
 */

?>

<?= view('modals/media-file-fields', ['max_upload_size' => $max_upload_size, 'media_file' => null, 'media_types' => $media_types, 'tree' => $tree, 'unused_files' => $unused_files]) ?>

<div class="row mb-3">
    <label class="col-form-label col-sm-2" for="media-note">
        <?= I18N::translate('Note') ?>
    </label>
    <div class="col-sm-10">
        <textarea class="form-control" id="media-note" name="media-note" rows="5" dir="auto"></textarea>
    </div>
</div>

<?= view('modals/restriction-fields') ?>
