xref: /webtrees/resources/views/edit/link-spouse-to-individual.phtml (revision 8d0ebef0d075981bd943e8256e2c81a3b1e92b4b)
1<?php use Fisharebest\Webtrees\FontAwesome; ?>
2<?php use Fisharebest\Webtrees\Functions\FunctionsEdit; ?>
3<?php use Fisharebest\Webtrees\I18N; ?>
4
5<h2 class="wt-page-title"><?= $title ?></h2>
6
7<form class="wt-page-content" method="post">
8    <?= csrf_field() ?>
9
10    <div class="form-group row">
11        <label class="col-sm-3 col-form-label" for="spouse">
12            <?= $label ?>
13        </label>
14        <div class="col-sm-9">
15            <?= FunctionsEdit::formControlIndividual($tree, null, ['id' => 'spouse', 'name' => 'spid']) ?>
16        </div>
17    </div>
18
19    <?= FunctionsEdit::addSimpleTag($tree, '0 MARR Y') ?>
20    <?= FunctionsEdit::addSimpleTag($tree, '0 DATE', 'MARR') ?>
21    <?= FunctionsEdit::addSimpleTag($tree, '0 PLAC', 'MARR') ?>
22
23    <div class="row form-group">
24        <div class="col-sm-9 offset-sm-3">
25            <button class="btn btn-primary" type="submit">
26                <?= FontAwesome::decorativeIcon('save') ?>
27                <?= /* I18N: A button label. */
28                I18N::translate('save') ?>
29            </button>
30            <a class="btn btn-secondary" href="<?= e($individual->url()) ?>">
31                <?= FontAwesome::decorativeIcon('cancel') ?>
32                <?= /* I18N: A button label. */
33                I18N::translate('cancel') ?>
34            </a>
35        </div>
36    </div>
37</form>
38