1*5229eadeSGreg Roach<?php 2*5229eadeSGreg Roach 3*5229eadeSGreg Roachuse Fisharebest\Webtrees\Auth; 4*5229eadeSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderMediaPage; 5*5229eadeSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderNamesPage; 6*5229eadeSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderSpousesPage; 7*5229eadeSGreg Roachuse Fisharebest\Webtrees\I18N; 8*5229eadeSGreg Roach 9*5229eadeSGreg Roach?> 10dd6b2bfcSGreg Roach 11dd6b2bfcSGreg Roach<div class="dropdown wt-page-menu"> 12dd6b2bfcSGreg 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"> 13d993d560SGreg Roach <?= view('icons/edit') ?> 14dd6b2bfcSGreg Roach <?= I18N::translate('edit') ?> 15dd6b2bfcSGreg Roach </button> 1604fe0783SGreg Roach 17dd6b2bfcSGreg Roach <div class="dropdown-menu dropdown-menu-right wt-page-menu-items" aria-labelledby="page-menu"> 189022ab66SGreg Roach <a class="dropdown-item" href="<?= e(route('add-name', ['tree' => $individual->tree()->name(), 'xref' => $individual->xref()])) ?>"> 1904fe0783SGreg Roach <?= view('icons/add') ?> 20dd6b2bfcSGreg Roach <?= I18N::translate('Add a name') ?> 21dd6b2bfcSGreg Roach </a> 22dd6b2bfcSGreg Roach 23dd6b2bfcSGreg Roach <?php if ($count_names > 1) : ?> 24*5229eadeSGreg Roach <a class="dropdown-item" href="<?= e(route(ReorderNamesPage::class, ['tree' => $tree->name(), 'xref' => $individual->xref()])) ?>"> 2504fe0783SGreg Roach <?= view('icons/reorder') ?> 26dd6b2bfcSGreg Roach <?= I18N::translate('Re-order names') ?> 27dd6b2bfcSGreg Roach </a> 288e64ca84SGreg Roach <?php else : ?> 298e64ca84SGreg Roach <div class="dropdown-item disabled"> 308e64ca84SGreg Roach <?= view('icons/spacer') ?> 318e64ca84SGreg Roach <?= I18N::translate('Re-order names') ?> 328e64ca84SGreg Roach </div> 33dd6b2bfcSGreg Roach <?php endif ?> 34dd6b2bfcSGreg Roach 3504fe0783SGreg Roach <div class="dropdown-divider"></div> 3604fe0783SGreg Roach 3704fe0783SGreg Roach <?php if ($count_sex === 0) : ?> 389022ab66SGreg Roach <a class="dropdown-item" href="<?= e(route('add-fact', ['fact' => 'SEX', 'tree' => $individual->tree()->name(), 'xref' => $individual->xref()])) ?>"> 3904fe0783SGreg Roach <?= view('icons/edit') ?> 40dd6b2bfcSGreg Roach <?= I18N::translate('Edit the gender') ?> 41dd6b2bfcSGreg Roach </a> 428e64ca84SGreg Roach <?php endif ?> 438e64ca84SGreg Roach 448e64ca84SGreg Roach <?php foreach ($individual->facts(['SEX']) as $fact) : ?> 458e64ca84SGreg Roach <?php if ($fact->canEdit()) : ?> 469022ab66SGreg Roach <a class="dropdown-item" href="<?= e(route('edit-fact', ['xref' => $individual->xref(), 'fact_id' => $fact->id(), 'tree' => $individual->tree()->name()])) ?>"> 478e64ca84SGreg Roach <?= view('icons/edit') ?> 488e64ca84SGreg Roach <?= I18N::translate('Edit the gender') ?> 498e64ca84SGreg Roach </a> 508e64ca84SGreg Roach <?php endif ?> 518e64ca84SGreg Roach <?php endforeach ?> 5204fe0783SGreg Roach 5304fe0783SGreg Roach <div class="dropdown-divider"></div> 548e64ca84SGreg Roach 5583615acfSGreg Roach <?php if ($individual->spouseFamilies()->count() > 1) : ?> 56*5229eadeSGreg Roach <a class="dropdown-item" href="<?= e(route(ReorderSpousesPage::class, ['tree' => $individual->tree()->name(), 'xref' => $individual->xref()])) ?>"> 5783615acfSGreg Roach <?= view('icons/reorder') ?> 5883615acfSGreg Roach <?= I18N::translate('Re-order families') ?> 5983615acfSGreg Roach </a> 6083615acfSGreg Roach <?php else : ?> 6183615acfSGreg Roach <div class="dropdown-item disabled"> 6283615acfSGreg Roach <?= view('icons/spacer') ?> 6383615acfSGreg Roach <?= I18N::translate('Re-order families') ?> 6483615acfSGreg Roach </div> 6583615acfSGreg Roach <?php endif ?> 6683615acfSGreg Roach 6783615acfSGreg Roach <div class="dropdown-divider"></div> 6883615acfSGreg Roach 699022ab66SGreg Roach <a class="dropdown-item" href="<?= e(route('add-fact', ['tree' => $individual->tree()->name(), 'xref' => $individual->xref(), 'fact' => 'OBJE'])) ?>"> 708e64ca84SGreg Roach <?= view('icons/add') ?> 718e64ca84SGreg Roach <?= I18N::translate('Add a media object') ?> 728e64ca84SGreg Roach </a> 738e64ca84SGreg Roach 748e64ca84SGreg Roach <?php if ($individual->facts(['OBJE'])->count() > 1) : ?> 75*5229eadeSGreg Roach <a class="dropdown-item" href="<?= e(route(ReorderMediaPage::class, ['tree' => $tree->name(), 'xref' => $individual->xref()])) ?>"> 76a6c1d617SGreg Roach <?= view('icons/reorder') ?> 778e64ca84SGreg Roach <?= I18N::translate('Re-order media') ?> 788e64ca84SGreg Roach </a> 798e64ca84SGreg Roach <?php else : ?> 808e64ca84SGreg Roach <div class="dropdown-item disabled"> 818e64ca84SGreg Roach <?= view('icons/spacer') ?> 828e64ca84SGreg Roach <?= I18N::translate('Re-order media') ?> 838e64ca84SGreg Roach </div> 84dd6b2bfcSGreg Roach <?php endif ?> 85dd6b2bfcSGreg Roach 868e64ca84SGreg Roach <div class="dropdown-divider"></div> 878e64ca84SGreg Roach 887adfb8e5SGreg Roach <a class="dropdown-item" href="#" data-confirm="<?= I18N::translate('Are you sure you want to delete “%s”?', strip_tags($individual->fullName())) ?>" data-post-url="<?= e(route('delete-record', ['tree' => $individual->tree()->name(), 'xref' => $individual->xref()])) ?>"> 8904fe0783SGreg Roach <?= view('icons/delete') ?> 90dd6b2bfcSGreg Roach <?= I18N::translate('Delete') ?> 91dd6b2bfcSGreg Roach </a> 92dd6b2bfcSGreg Roach 93f4afa648SGreg Roach <?php if (Auth::isAdmin() || $individual->tree()->getPreference('SHOW_GEDCOM_RECORD')) : ?> 949022ab66SGreg Roach <a class="dropdown-item" href="<?= e(route('edit-raw-record', ['tree' => $individual->tree()->name(), 'xref' => $individual->xref()])) ?>"> 9504fe0783SGreg Roach <?= view('icons/edit') ?> 96dd6b2bfcSGreg Roach <?= I18N::translate('Edit the raw GEDCOM') ?> 97dd6b2bfcSGreg Roach </a> 98dd6b2bfcSGreg Roach <?php endif ?> 99dd6b2bfcSGreg Roach </div> 100dd6b2bfcSGreg Roach</div> 101