xref: /webtrees/resources/views/modals/source-fields.phtml (revision 10e0649788c8d7d4974d81c048ca2b225df8f22e)
1d70512abSGreg Roach<?php
2d70512abSGreg Roach
3*10e06497SGreg Roachdeclare(strict_types=1);
4*10e06497SGreg Roach
5d70512abSGreg Roachuse Fisharebest\Webtrees\I18N;
67c2c99faSGreg Roachuse Fisharebest\Webtrees\Tree;
77c2c99faSGreg Roach
87c2c99faSGreg Roach/**
97c2c99faSGreg Roach * @var Tree $tree
107c2c99faSGreg Roach */
11d70512abSGreg Roach
12d70512abSGreg Roach?>
13dd6b2bfcSGreg Roach
149e3c2cf9SGreg Roach<div class="row mb-3">
15dd6b2bfcSGreg Roach    <label class="col-form-label col-sm-2" for="source-title">
16dd6b2bfcSGreg Roach        <?= I18N::translate('Title') ?>
17dd6b2bfcSGreg Roach    </label>
18dd6b2bfcSGreg Roach    <div class="col-sm-10">
197dca5265SGreg Roach        <input class="form-control" type="text" id="source-title" name="source-title" required="required">
20dd6b2bfcSGreg Roach    </div>
21dd6b2bfcSGreg Roach</div>
229e3c2cf9SGreg Roach<div class="row mb-3">
23dd6b2bfcSGreg Roach    <label class="col-form-label col-sm-2" for="source-abbreviation">
24dd6b2bfcSGreg Roach        <?= I18N::translate('Abbreviation') ?>
25dd6b2bfcSGreg Roach    </label>
26dd6b2bfcSGreg Roach    <div class="col-sm-10">
27dd6b2bfcSGreg Roach        <input class="form-control" type="text" id="source-abbreviation" name="source-abbreviation">
28dd6b2bfcSGreg Roach    </div>
29dd6b2bfcSGreg Roach</div>
309e3c2cf9SGreg Roach<div class="row mb-3">
31dd6b2bfcSGreg Roach    <label class="col-form-label col-sm-2" for="source-author">
32dd6b2bfcSGreg Roach        <?= I18N::translate('Author') ?>
33dd6b2bfcSGreg Roach    </label>
34dd6b2bfcSGreg Roach    <div class="col-sm-4">
35dd6b2bfcSGreg Roach        <input class="form-control" type="text" id="source-author" name="source-author">
36dd6b2bfcSGreg Roach    </div>
37dd6b2bfcSGreg Roach    <label class="col-form-label col-sm-2" for="source-publication">
38dd6b2bfcSGreg Roach        <?= I18N::translate('Publication') ?>
39dd6b2bfcSGreg Roach    </label>
40dd6b2bfcSGreg Roach    <div class="col-sm-4">
41dd6b2bfcSGreg Roach        <input class="form-control" type="text" id="source-publication" name="source-publication">
42dd6b2bfcSGreg Roach    </div>
43dd6b2bfcSGreg Roach</div>
449e3c2cf9SGreg Roach<div class="row mb-3">
45dd6b2bfcSGreg Roach    <label class="col-form-label col-sm-2" for="source-repository">
46dd6b2bfcSGreg Roach        <?= I18N::translate('Repository') ?>
47dd6b2bfcSGreg Roach    </label>
48dd6b2bfcSGreg Roach    <div class="col-sm-4">
49b6c326d8SGreg Roach        <?= view('components/select-repository', ['name' => 'source-repository', 'tree' => $tree]) ?>
50dd6b2bfcSGreg Roach    </div>
51dd6b2bfcSGreg Roach    <label class="col-form-label col-sm-2" for="source-call-number">
52dd6b2bfcSGreg Roach        <?= I18N::translate('Call number') ?>
53dd6b2bfcSGreg Roach    </label>
54dd6b2bfcSGreg Roach    <div class="col-sm-4">
55dd6b2bfcSGreg Roach        <input class="form-control" type="text" id="source-call-number" name="source-call-number">
56dd6b2bfcSGreg Roach    </div>
57dd6b2bfcSGreg Roach</div>
589e3c2cf9SGreg Roach<div class="row mb-3">
59dd6b2bfcSGreg Roach    <label class="col-form-label col-sm-2" for="source-text">
60dd6b2bfcSGreg Roach        <?= I18N::translate('Text') ?>
61dd6b2bfcSGreg Roach    </label>
62dd6b2bfcSGreg Roach    <div class="col-sm-10">
63bed27cedSGreg Roach        <textarea class="form-control" id="source-text" name="source-text" rows="5"></textarea>
64dd6b2bfcSGreg Roach    </div>
65dd6b2bfcSGreg Roach</div>
66dd6b2bfcSGreg Roach
67dd6b2bfcSGreg Roach<?= view('modals/restriction-fields') ?>
68