xref: /webtrees/resources/views/edit/link-spouse-to-individual.phtml (revision b62a8ecaef02a45d7e018fdb0f702d4575d8d0de)
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::addSimpleTags($tree, 'MARR') ?>
24
25    <div class="row form-group">
26        <div class="col-sm-9 offset-sm-3">
27            <button class="btn btn-primary" type="submit">
28                <?= view('icons/save') ?>
29                <?= /* I18N: A button label. */
30                I18N::translate('save') ?>
31            </button>
32            <a class="btn btn-secondary" href="<?= e($individual->url()) ?>">
33                <?= view('icons/cancel') ?>
34                <?= /* I18N: A button label. */
35                I18N::translate('cancel') ?>
36            </a>
37        </div>
38    </div>
39</form>
40
41<?= view('modals/ajax') ?>
42