1<?php 2 3use Fisharebest\Webtrees\Functions\FunctionsEdit; 4use Fisharebest\Webtrees\Http\RequestHandlers\LinkSpouseToIndividualAction; 5use Fisharebest\Webtrees\I18N; 6use Fisharebest\Webtrees\Individual; 7use Fisharebest\Webtrees\Tree; 8 9/** 10 * @var Individual $individual 11 * @var string $label 12 * @var string $title 13 * @var Tree $tree 14 * @var string $xref 15 */ 16 17?> 18 19<h2 class="wt-page-title"><?= $title ?></h2> 20 21<form method="post" action="<?= e(route(LinkSpouseToIndividualAction::class, ['tree' => $tree->name(), 'xref' => $xref])) ?>" class="wt-page-content"> 22 <?= csrf_field() ?> 23 24 <div class="form-group row"> 25 <label class="col-sm-3 col-form-label" for="spouse"> 26 <?= $label ?> 27 </label> 28 <div class="col-sm-9"> 29 <?= view('components/select-individual', ['name' => 'spid', 'id' => 'spouse', 'tree' => $tree]) ?> 30 </div> 31 </div> 32 33 <?= FunctionsEdit::addSimpleTags($tree, 'MARR') ?> 34 35 <div class="row form-group"> 36 <div class="col-sm-9 offset-sm-3"> 37 <button class="btn btn-primary" type="submit"> 38 <?= view('icons/save') ?> 39 <?= /* I18N: A button label. */ 40 I18N::translate('save') ?> 41 </button> 42 <a class="btn btn-secondary" href="<?= e($individual->url()) ?>"> 43 <?= view('icons/cancel') ?> 44 <?= /* I18N: A button label. */ 45 I18N::translate('cancel') ?> 46 </a> 47 </div> 48 </div> 49</form> 50 51<?= view('modals/ajax') ?> 52