1dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\I18N; ?> 2dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\View; ?> 3dd6b2bfcSGreg Roach 4dd6b2bfcSGreg Roach<h2 class="wt-page-title"><?= $title ?></h2> 5dd6b2bfcSGreg Roach 6dd6b2bfcSGreg Roach<form class="wt-page-content" method="post"> 7dd6b2bfcSGreg Roach <?= csrf_field() ?> 8dd6b2bfcSGreg Roach <div class="wt-sortable-list"> 98d0ebef0SGreg Roach <?php foreach ($individual->facts(['OBJE']) as $fact) : ?> 10dd6b2bfcSGreg Roach <div class="card mb-2 wt-sortable-item"> 11905ab80aSGreg Roach <input type="hidden" name="order[]" value="<?= $fact->id() ?>"> 12dd6b2bfcSGreg Roach <h3 class="card-header"> 136a83cfe8SGreg Roach <?= view('icons/drag-handle') ?> 1439ca88baSGreg Roach <?= $fact->target()->fullName() ?> 15dd6b2bfcSGreg Roach </h3> 16dd6b2bfcSGreg Roach <div class="card-body"> 17*b2c011d7SGreg Roach <?= $fact->target()->displayImage(100, 100, 'contain') ?> 18dd6b2bfcSGreg Roach </div> 19dd6b2bfcSGreg Roach </div> 20dd6b2bfcSGreg Roach <?php endforeach ?> 21dd6b2bfcSGreg Roach </div> 22dd6b2bfcSGreg Roach 23dd6b2bfcSGreg Roach <p> 24dd6b2bfcSGreg Roach <button class="btn btn-primary" type="submit"> 25d993d560SGreg Roach <?= view('icons/save') ?> 26dd6b2bfcSGreg Roach <?= /* I18N: A button label. */ I18N::translate('save') ?> 27dd6b2bfcSGreg Roach </button> 28dd6b2bfcSGreg Roach 29dd6b2bfcSGreg Roach <a class="btn btn-secondary" href="<?= e($individual->url()) ?>"> 30d993d560SGreg Roach <?= view('icons/cancel') ?> 31dd6b2bfcSGreg Roach <?= /* I18N: A button label. */ I18N::translate('cancel') ?> 32dd6b2bfcSGreg Roach </a> 33dd6b2bfcSGreg Roach </p> 34dd6b2bfcSGreg Roach</form> 35dd6b2bfcSGreg Roach 36dd6b2bfcSGreg Roach<?php View::push('javascript') ?> 37dd6b2bfcSGreg Roach<script> 38dd6b2bfcSGreg Roach new Sortable(document.querySelector(".wt-sortable-list"), {}); 39dd6b2bfcSGreg Roach</script> 40dd6b2bfcSGreg Roach<?php View::endpush() ?> 41