xref: /webtrees/resources/views/modals/media-object-fields.phtml (revision ac71572d8462e396ed5a307f05b29381e49f9e6e)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\I18N;
6use Fisharebest\Webtrees\Tree;
7
8/**
9 * @var string                   $max_upload_size
10 * @var array<int|string,string> $media_types
11 * @var Tree                     $tree
12 * @var array<string,string>     $unused_files
13 */
14
15?>
16
17<?= view('modals/media-file-fields', ['max_upload_size' => $max_upload_size, 'media_file' => null, 'media_types' => $media_types, 'tree' => $tree, 'unused_files' => $unused_files]) ?>
18
19<div class="row mb-3">
20    <label class="col-form-label col-sm-2" for="media-note">
21        <?= I18N::translate('Note') ?>
22    </label>
23    <div class="col-sm-10">
24        <textarea class="form-control" id="media-note" name="media-note" rows="5" dir="auto"></textarea>
25    </div>
26</div>
27
28<?= view('modals/restriction-fields') ?>
29