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