1dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\Auth; ?> 2dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\I18N; ?> 3dd6b2bfcSGreg Roach 4dd6b2bfcSGreg Roach<div class="dropdown wt-page-menu"> 5dd6b2bfcSGreg Roach <button class="btn btn-primary dropdown-toggle wt-page-menu-button" type="button" id="page-menu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> 6d993d560SGreg Roach <?= view('icons/edit') ?> 7dd6b2bfcSGreg Roach <?= I18N::translate('edit') ?> 8dd6b2bfcSGreg Roach </button> 904fe0783SGreg Roach 10dd6b2bfcSGreg Roach <div class="dropdown-menu dropdown-menu-right wt-page-menu-items" aria-labelledby="page-menu"> 1104fe0783SGreg Roach <a class="dropdown-item" href="<?= e(route('add-name', ['ged' => $individual->tree()->name(), 'xref' => $individual->xref()])) ?>"> 1204fe0783SGreg Roach <?= view('icons/add') ?> 13dd6b2bfcSGreg Roach <?= I18N::translate('Add a name') ?> 14dd6b2bfcSGreg Roach </a> 15dd6b2bfcSGreg Roach 16dd6b2bfcSGreg Roach <?php if ($count_names > 1) : ?> 1704fe0783SGreg Roach <a class="dropdown-item" href="<?= e(route('reorder-names', ['ged' => $individual->tree()->name(), 'xref' => $individual->xref()])) ?>"> 1804fe0783SGreg Roach <?= view('icons/reorder') ?> 19dd6b2bfcSGreg Roach <?= I18N::translate('Re-order names') ?> 20dd6b2bfcSGreg Roach </a> 218e64ca84SGreg Roach <?php else : ?> 228e64ca84SGreg Roach <div class="dropdown-item disabled"> 238e64ca84SGreg Roach <?= view('icons/spacer') ?> 248e64ca84SGreg Roach <?= I18N::translate('Re-order names') ?> 258e64ca84SGreg Roach </div> 26dd6b2bfcSGreg Roach <?php endif ?> 27dd6b2bfcSGreg Roach 2804fe0783SGreg Roach <div class="dropdown-divider"></div> 2904fe0783SGreg Roach 3004fe0783SGreg Roach <?php if ($count_sex === 0) : ?> 3104fe0783SGreg Roach <a class="dropdown-item" href="<?= e(route('add-fact', ['fact' => 'SEX', 'ged' => $individual->tree()->name(), 'xref' => $individual->xref()])) ?>"> 3204fe0783SGreg Roach <?= view('icons/edit') ?> 33dd6b2bfcSGreg Roach <?= I18N::translate('Edit the gender') ?> 34dd6b2bfcSGreg Roach </a> 358e64ca84SGreg Roach <?php endif ?> 368e64ca84SGreg Roach 378e64ca84SGreg Roach <?php foreach ($individual->facts(['SEX']) as $fact) : ?> 388e64ca84SGreg Roach <?php if ($fact->canEdit()) : ?> 398e64ca84SGreg Roach <a class="dropdown-item" href="<?= e(route('edit-fact', ['xref' => $individual->xref(), 'fact_id' => $fact->id(), 'ged' => $individual->tree()->name()])) ?>"> 408e64ca84SGreg Roach <?= view('icons/edit') ?> 418e64ca84SGreg Roach <?= I18N::translate('Edit the gender') ?> 428e64ca84SGreg Roach </a> 438e64ca84SGreg Roach <?php endif ?> 448e64ca84SGreg Roach <?php endforeach ?> 4504fe0783SGreg Roach 4604fe0783SGreg Roach <div class="dropdown-divider"></div> 478e64ca84SGreg Roach 4883615acfSGreg Roach <?php if ($individual->spouseFamilies()->count() > 1) : ?> 4983615acfSGreg Roach <a class="dropdown-item" href="<?= e(route('reorder-spouses', ['ged' => $individual->tree()->name(), 'xref' => $individual->xref()])) ?>"> 5083615acfSGreg Roach <?= view('icons/reorder') ?> 5183615acfSGreg Roach <?= I18N::translate('Re-order families') ?> 5283615acfSGreg Roach </a> 5383615acfSGreg Roach <?php else : ?> 5483615acfSGreg Roach <div class="dropdown-item disabled"> 5583615acfSGreg Roach <?= view('icons/spacer') ?> 5683615acfSGreg Roach <?= I18N::translate('Re-order families') ?> 5783615acfSGreg Roach </div> 5883615acfSGreg Roach <?php endif ?> 5983615acfSGreg Roach 6083615acfSGreg Roach <div class="dropdown-divider"></div> 6183615acfSGreg Roach 628e64ca84SGreg Roach <a class="dropdown-item" href="<?= e(route('add-fact', ['ged' => $individual->tree()->name(), 'xref' => $individual->xref(), 'fact' => 'OBJE'])) ?>"> 638e64ca84SGreg Roach <?= view('icons/add') ?> 648e64ca84SGreg Roach <?= I18N::translate('Add a media object') ?> 658e64ca84SGreg Roach </a> 668e64ca84SGreg Roach 678e64ca84SGreg Roach <?php if ($individual->facts(['OBJE'])->count() > 1) : ?> 688e64ca84SGreg Roach <a class="dropdown-item" href="<?= e(route('reorder-media', ['ged' => $individual->tree()->name(), 'xref' => $individual->xref()])) ?>"> 69*a6c1d617SGreg Roach <?= view('icons/reorder') ?> 708e64ca84SGreg Roach <?= I18N::translate('Re-order media') ?> 718e64ca84SGreg Roach </a> 728e64ca84SGreg Roach <?php else : ?> 738e64ca84SGreg Roach <div class="dropdown-item disabled"> 748e64ca84SGreg Roach <?= view('icons/spacer') ?> 758e64ca84SGreg Roach <?= I18N::translate('Re-order media') ?> 768e64ca84SGreg Roach </div> 77dd6b2bfcSGreg Roach <?php endif ?> 78dd6b2bfcSGreg Roach 798e64ca84SGreg Roach <div class="dropdown-divider"></div> 808e64ca84SGreg Roach 8104fe0783SGreg Roach <a class="dropdown-item" href="#" data-confirm="<?= I18N::translate('Are you sure you want to delete “%s”?', strip_tags($individual->fullName())) ?>" onclick="return confirm(this.dataset.confirm) && delete_record('<?= e($individual->xref()) ?>', '<?= e($individual->tree()->name()) ?>');"> 8204fe0783SGreg Roach <?= view('icons/delete') ?> 83dd6b2bfcSGreg Roach <?= I18N::translate('Delete') ?> 84dd6b2bfcSGreg Roach </a> 85dd6b2bfcSGreg Roach 86f4afa648SGreg Roach <?php if (Auth::isAdmin() || $individual->tree()->getPreference('SHOW_GEDCOM_RECORD')) : ?> 8704fe0783SGreg Roach <a class="dropdown-item" href="<?= e(route('edit-raw-record', ['ged' => $individual->tree()->name(), 'xref' => $individual->xref()])) ?>"> 8804fe0783SGreg Roach <?= view('icons/edit') ?> 89dd6b2bfcSGreg Roach <?= I18N::translate('Edit the raw GEDCOM') ?> 90dd6b2bfcSGreg Roach </a> 91dd6b2bfcSGreg Roach <?php endif ?> 92dd6b2bfcSGreg Roach </div> 93dd6b2bfcSGreg Roach</div> 94