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