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> 9*04fe0783SGreg Roach 10dd6b2bfcSGreg Roach <div class="dropdown-menu dropdown-menu-right wt-page-menu-items" aria-labelledby="page-menu"> 11*04fe0783SGreg Roach <a class="dropdown-item" href="<?= e(route('add-name', ['ged' => $individual->tree()->name(), 'xref' => $individual->xref()])) ?>"> 12*04fe0783SGreg Roach <?= view('icons/add') ?> 13dd6b2bfcSGreg Roach <?= I18N::translate('Add a name') ?> 14dd6b2bfcSGreg Roach </a> 15dd6b2bfcSGreg Roach 16dd6b2bfcSGreg Roach <?php if ($count_names > 1) : ?> 17*04fe0783SGreg Roach <a class="dropdown-item" href="<?= e(route('reorder-names', ['ged' => $individual->tree()->name(), 'xref' => $individual->xref()])) ?>"> 18*04fe0783SGreg Roach <?= view('icons/reorder') ?> 19dd6b2bfcSGreg Roach <?= I18N::translate('Re-order names') ?> 20dd6b2bfcSGreg Roach </a> 21dd6b2bfcSGreg Roach <?php endif ?> 22dd6b2bfcSGreg Roach 23*04fe0783SGreg Roach <div class="dropdown-divider"></div> 24*04fe0783SGreg Roach 25*04fe0783SGreg Roach <?php if ($count_sex === 0) : ?> 26*04fe0783SGreg Roach <a class="dropdown-item" href="<?= e(route('add-fact', ['fact' => 'SEX', 'ged' => $individual->tree()->name(), 'xref' => $individual->xref()])) ?>"> 27*04fe0783SGreg Roach <?= view('icons/edit') ?> 28dd6b2bfcSGreg Roach <?= I18N::translate('Edit the gender') ?> 29dd6b2bfcSGreg Roach </a> 30*04fe0783SGreg Roach 31*04fe0783SGreg Roach <div class="dropdown-divider"></div> 32dd6b2bfcSGreg Roach <?php endif ?> 33dd6b2bfcSGreg Roach 34*04fe0783SGreg 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()) ?>');"> 35*04fe0783SGreg Roach <?= view('icons/delete') ?> 36dd6b2bfcSGreg Roach <?= I18N::translate('Delete') ?> 37dd6b2bfcSGreg Roach </a> 38dd6b2bfcSGreg Roach 39f4afa648SGreg Roach <?php if (Auth::isAdmin() || $individual->tree()->getPreference('SHOW_GEDCOM_RECORD')) : ?> 40dd6b2bfcSGreg Roach <div class="dropdown-divider"></div> 41dd6b2bfcSGreg Roach 42*04fe0783SGreg Roach <a class="dropdown-item" href="<?= e(route('edit-raw-record', ['ged' => $individual->tree()->name(), 'xref' => $individual->xref()])) ?>"> 43*04fe0783SGreg Roach <?= view('icons/edit') ?> 44dd6b2bfcSGreg Roach <?= I18N::translate('Edit the raw GEDCOM') ?> 45dd6b2bfcSGreg Roach </a> 46dd6b2bfcSGreg Roach <?php endif ?> 47dd6b2bfcSGreg Roach </div> 48dd6b2bfcSGreg Roach</div> 49