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