1d70512abSGreg Roach<?php 2d70512abSGreg Roach 37c7d1e03SGreg Roachuse Fisharebest\Webtrees\I18N; 47c2c99faSGreg Roachuse Fisharebest\Webtrees\Tree; 57c2c99faSGreg Roach 67c2c99faSGreg Roach/** 77c2c99faSGreg Roach * @var string $title 8*efd4768bSGreg Roach * @var string $label 9*efd4768bSGreg Roach * @var string $cancel_url 10*efd4768bSGreg Roach * @var string $post_url 117c2c99faSGreg Roach * @var Tree $tree 127c2c99faSGreg Roach */ 13d70512abSGreg Roach 14d70512abSGreg Roach?> 15dd6b2bfcSGreg Roach 16dd6b2bfcSGreg Roach<h2 class="wt-page-title"><?= $title ?></h2> 17dd6b2bfcSGreg Roach 18*efd4768bSGreg Roach<form method="post" action="<?= e($post_url) ?>" class="wt-page-content"> 19dd6b2bfcSGreg Roach <?= csrf_field() ?> 20dd6b2bfcSGreg Roach 21*efd4768bSGreg Roach <div class="card mb-2"> 22*efd4768bSGreg Roach <div class="card-header"> 23dd6b2bfcSGreg Roach <?= $label ?> 24*efd4768bSGreg Roach </div> 25*efd4768bSGreg Roach <div class="card-body pb-1"> 26b6c326d8SGreg Roach <?= view('components/select-individual', ['name' => 'spid', 'id' => 'spouse', 'tree' => $tree]) ?> 27dd6b2bfcSGreg Roach </div> 28dd6b2bfcSGreg Roach </div> 29dd6b2bfcSGreg Roach 30*efd4768bSGreg Roach <?php foreach ($facts ?? [] as $prefix => $prefix_facts) : ?> 31*efd4768bSGreg Roach <?php foreach ($prefix_facts as $fact) : ?> 32*efd4768bSGreg Roach <div class="card mb-2"> 33*efd4768bSGreg Roach <div class="card-header"> 34*efd4768bSGreg Roach <?= $fact->label() ?> 35*efd4768bSGreg Roach </div> 36*efd4768bSGreg Roach <div class="card-body pb-1"> 37*efd4768bSGreg Roach <?= view('edit/edit-gedcom-fields', ['gedcom' => $fact->insertMissingSubtags(), 'hierarchy' => explode(':', $fact->tag()), 'tree' => $fact->record()->tree(), 'prefix' => $prefix]) ?> 38*efd4768bSGreg Roach </div> 39*efd4768bSGreg Roach </div> 40*efd4768bSGreg Roach <?php endforeach ?> 41*efd4768bSGreg Roach <?php endforeach ?> 42dd6b2bfcSGreg Roach 43dd6b2bfcSGreg Roach <div class="row form-group"> 44dd6b2bfcSGreg Roach <div class="col-sm-9 offset-sm-3"> 45dd6b2bfcSGreg Roach <button class="btn btn-primary" type="submit"> 46d993d560SGreg Roach <?= view('icons/save') ?> 47dd6b2bfcSGreg Roach <?= /* I18N: A button label. */ 48dd6b2bfcSGreg Roach I18N::translate('save') ?> 49dd6b2bfcSGreg Roach </button> 50*efd4768bSGreg Roach <a class="btn btn-secondary" href="<?= e($cancel_url) ?>"> 51d993d560SGreg Roach <?= view('icons/cancel') ?> 52dd6b2bfcSGreg Roach <?= /* I18N: A button label. */ 53dd6b2bfcSGreg Roach I18N::translate('cancel') ?> 54dd6b2bfcSGreg Roach </a> 55dd6b2bfcSGreg Roach </div> 56dd6b2bfcSGreg Roach </div> 57dd6b2bfcSGreg Roach</form> 58