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