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