summaryrefslogtreecommitdiff
path: root/resources/views/modals/create-media-from-file.php
blob: 6feffebc6a24e699deb755615c8295eda1dca58f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php use Fisharebest\Webtrees\Bootstrap4; ?>
<?php use Fisharebest\Webtrees\FontAwesome; ?>
<?php use Fisharebest\Webtrees\GedcomTag; ?>
<?php use Fisharebest\Webtrees\I18N; ?>

<div class="modal" id="modal-create-media-from-file">
    <form action="<?= e(route('create-media-from-file')) ?>" method="POST">
        <?= csrf_field() ?>
        <input type="hidden" name="action" value="create-media-object-from-file">
        <input type="hidden" name="ged" id="ged" value="">
        <div class="modal-dialog modal-lg" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h3 class="modal-title"><?= I18N::translate('Create a media object') ?></h3>
                    <button type="button" class="close" data-dismiss="modal" aria-label="<?= I18N::translate('close') ?>">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body">
                    <div class="form-group row">
                        <label class="col-form-label col-sm-2" for="file">
                            <?= I18N::translate('Media file') ?>
                        </label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="file" name="file" value="" readonly>
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-form-label col-sm-2" for="title">
                            <?= I18N::translate('Title') ?>
                        </label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="title" id="title">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-form-label col-sm-2" for="type">
                            <?= I18N::translate('Media type') ?>
                        </label>
                        <div class="col-sm-10">
                            <?= Bootstrap4::select(['' => ''] + GedcomTag::getFileFormTypes(), '') ?>
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-form-label col-sm-2" for="note">
                            <?= I18N::translate('Note') ?>
                        </label>
                        <div class="col-sm-10">
                            <textarea class="form-control" id="note" name="note"></textarea>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="submit" class="btn btn-primary">
                        <?= FontAwesome::decorativeIcon('save') ?>
                        <?= I18N::translate('save') ?>
                    </button>
                    <button type="button" class="btn btn-text" data-dismiss="modal">
                        <?= FontAwesome::decorativeIcon('cancel') ?>
                        <?= I18N::translate('cancel') ?>
                    </button>
                </div>
            </div>
        </div>
    </form>
</div>