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