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