1dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\GedcomCode\GedcomCodeName; ?> 2dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\GedcomTag; ?> 3dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\I18N; ?> 4dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\View; ?> 5dd6b2bfcSGreg Roach 6dd6b2bfcSGreg Roach<h2 class="wt-page-title"><?= $title ?></h2> 7dd6b2bfcSGreg Roach 8dd6b2bfcSGreg Roach<form class="wt-page-content" method="post"> 9dd6b2bfcSGreg Roach <?= csrf_field() ?> 10dd6b2bfcSGreg Roach <div class="wt-sortable-list"> 118d0ebef0SGreg Roach <?php foreach ($individual->facts(['NAME']) as $fact) : ?> 12dd6b2bfcSGreg Roach <div class="card mb-2 wt-sortable-item"> 13905ab80aSGreg Roach <input type="hidden" name="order[]" value="<?= $fact->id() ?>"> 14dd6b2bfcSGreg Roach <h3 class="card-header"> 15*6a83cfe8SGreg Roach <?= view('icons/drag-handle') ?> 1684586c02SGreg Roach <?= $fact->value() ?> 17dd6b2bfcSGreg Roach </h3> 18dd6b2bfcSGreg Roach <div class="card-body"> 193425616eSGreg Roach <?= GedcomTag::getLabelValue('TYPE', GedcomCodeName::getValue($fact->attribute('TYPE'), $fact->record())) ?> 20dd6b2bfcSGreg Roach </div> 21dd6b2bfcSGreg Roach </div> 22dd6b2bfcSGreg Roach <?php endforeach ?> 23dd6b2bfcSGreg Roach </div> 24dd6b2bfcSGreg Roach 25dd6b2bfcSGreg Roach <p> 26dd6b2bfcSGreg Roach <button class="btn btn-primary" type="submit"> 27d993d560SGreg Roach <?= view('icons/save') ?> 28dd6b2bfcSGreg Roach <?= /* I18N: A button label. */ I18N::translate('save') ?> 29dd6b2bfcSGreg Roach </button> 30dd6b2bfcSGreg Roach 31dd6b2bfcSGreg Roach <a class="btn btn-secondary" href="<?= e($individual->url()) ?>"> 32d993d560SGreg Roach <?= view('icons/cancel') ?> 33dd6b2bfcSGreg Roach <?= /* I18N: A button label. */ I18N::translate('cancel') ?> 34dd6b2bfcSGreg Roach </a> 35dd6b2bfcSGreg Roach </p> 36dd6b2bfcSGreg Roach</form> 37dd6b2bfcSGreg Roach 38dd6b2bfcSGreg Roach<?php View::push('javascript') ?> 39dd6b2bfcSGreg Roach<script> 40dd6b2bfcSGreg Roach new Sortable(document.querySelector(".wt-sortable-list"), {}); 41dd6b2bfcSGreg Roach</script> 42dd6b2bfcSGreg Roach<?php View::endpush() ?> 43