xref: /webtrees/resources/views/modals/create-media-from-file.phtml (revision 0010d42b5dcc725e166945c3345a365d5aa115e3)
1<?php use Fisharebest\Webtrees\Bootstrap4; ?>
2<?php use Fisharebest\Webtrees\FontAwesome; ?>
3<?php use Fisharebest\Webtrees\GedcomTag; ?>
4<?php use Fisharebest\Webtrees\I18N; ?>
5
6<div class="modal" id="modal-create-media-from-file">
7    <form action="<?= e(route('create-media-from-file')) ?>" method="POST">
8        <?= csrf_field() ?>
9        <input type="hidden" name="action" value="create-media-object-from-file">
10        <input type="hidden" name="ged" id="ged" value="">
11        <div class="modal-dialog modal-lg" role="document">
12            <div class="modal-content">
13                <div class="modal-header">
14                    <h3 class="modal-title"><?= I18N::translate('Create a media object') ?></h3>
15                    <button type="button" class="close" data-dismiss="modal" aria-label="<?= I18N::translate('close') ?>">
16                        <span aria-hidden="true">&times;</span>
17                    </button>
18                </div>
19                <div class="modal-body">
20                    <div class="form-group row">
21                        <label class="col-form-label col-sm-2" for="file">
22                            <?= I18N::translate('Media file') ?>
23                        </label>
24                        <div class="col-sm-10">
25                            <input type="text" class="form-control" id="file" name="file" value="" readonly>
26                        </div>
27                    </div>
28                    <div class="form-group row">
29                        <label class="col-form-label col-sm-2" for="title">
30                            <?= I18N::translate('Title') ?>
31                        </label>
32                        <div class="col-sm-10">
33                            <input type="text" class="form-control" name="title" id="title">
34                        </div>
35                    </div>
36                    <div class="form-group row">
37                        <label class="col-form-label col-sm-2" for="type">
38                            <?= I18N::translate('Media type') ?>
39                        </label>
40                        <div class="col-sm-10">
41                            <?= Bootstrap4::select(['' => ''] + GedcomTag::getFileFormTypes(), '') ?>
42                        </div>
43                    </div>
44                    <div class="form-group row">
45                        <label class="col-form-label col-sm-2" for="note">
46                            <?= I18N::translate('Note') ?>
47                        </label>
48                        <div class="col-sm-10">
49                            <textarea class="form-control" id="note" name="note"></textarea>
50                        </div>
51                    </div>
52                </div>
53                <div class="modal-footer">
54                    <button type="submit" class="btn btn-primary">
55                        <?= view('icons/save') ?>
56                        <?= I18N::translate('save') ?>
57                    </button>
58                    <button type="button" class="btn btn-text" data-dismiss="modal">
59                        <?= view('icons/cancel') ?>
60                        <?= I18N::translate('cancel') ?>
61                    </button>
62                </div>
63            </div>
64        </div>
65    </form>
66</div>
67