xref: /webtrees/resources/views/modals/source-fields.phtml (revision 1ff45046fabc22237b5d0d8e489c96f031fc598d)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\I18N;
6use Fisharebest\Webtrees\Tree;
7
8/**
9 * @var Tree $tree
10 */
11
12?>
13
14<div class="row mb-3">
15    <label class="col-form-label col-sm-2" for="source-title">
16        <?= I18N::translate('Title') ?>
17    </label>
18    <div class="col-sm-10">
19        <input class="form-control" type="text" id="source-title" name="source-title" required="required">
20    </div>
21</div>
22<div class="row mb-3">
23    <label class="col-form-label col-sm-2" for="source-abbreviation">
24        <?= I18N::translate('Abbreviation') ?>
25    </label>
26    <div class="col-sm-10">
27        <input class="form-control" type="text" id="source-abbreviation" name="source-abbreviation">
28    </div>
29</div>
30<div class="row mb-3">
31    <label class="col-form-label col-sm-2" for="source-author">
32        <?= I18N::translate('Author') ?>
33    </label>
34    <div class="col-sm-4">
35        <input class="form-control" type="text" id="source-author" name="source-author">
36    </div>
37    <label class="col-form-label col-sm-2" for="source-publication">
38        <?= I18N::translate('Publication') ?>
39    </label>
40    <div class="col-sm-4">
41        <input class="form-control" type="text" id="source-publication" name="source-publication">
42    </div>
43</div>
44<div class="row mb-3">
45    <label class="col-form-label col-sm-2" for="source-repository">
46        <?= I18N::translate('Repository') ?>
47    </label>
48    <div class="col-sm-4">
49        <?= view('components/select-repository', ['name' => 'source-repository', 'tree' => $tree]) ?>
50    </div>
51    <label class="col-form-label col-sm-2" for="source-call-number">
52        <?= I18N::translate('Call number') ?>
53    </label>
54    <div class="col-sm-4">
55        <input class="form-control" type="text" id="source-call-number" name="source-call-number">
56    </div>
57</div>
58<div class="row mb-3">
59    <label class="col-form-label col-sm-2" for="source-text">
60        <?= I18N::translate('Text') ?>
61    </label>
62    <div class="col-sm-10">
63        <textarea class="form-control" id="source-text" name="source-text" rows="5"></textarea>
64    </div>
65</div>
66
67<?= view('modals/restriction-fields') ?>
68