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 <div class="dropdown-menu dropdown-menu-right wt-page-menu-items" aria-labelledby="page-menu"> 10 <a class="dropdown-item menu-fam-change" href="<?= e(route('change-family-members', ['ged' => $record->tree()->name(), 'xref' => $record->xref()])) ?>"> 11 <?= I18N::translate('Change family members') ?> 12 </a> 13 14 <a class="dropdown-item menu-fam-addchil" href="<?= e(route('add-child-to-family', ['gender' => 'U', 'ged' => $record->tree()->name(), 'xref' => $record->xref()])) ?>"> 15 <?= I18N::translate('Add a child to this family') ?> 16 </a> 17 18 <?php if ($record->numberOfChildren() > 1) : ?> 19 <a class="dropdown-item menu-fam-orderchil" href="<?= e(route('reorder-children', ['ged' => $record->tree()->name(), 'xref' => $record->xref()])) ?>"> 20 <?= I18N::translate('Re-order children') ?> 21 </a> 22 <?php endif ?> 23 24 <div class="dropdown-divider"></div> 25 26 <a class="dropdown-item menu-fam-del" href="#" data-confirm="<?= I18N::translate('Deleting the family will unlink all of the individuals from each other but will leave the individuals in place. Are you sure you want to delete this family?') ?>" onclick="return confirm(this.dataset.confirm) && delete_record('<?= e($record->xref()) ?>', '<?= e($record->tree()->name()) ?>');"> 27 <?= I18N::translate('Delete') ?> 28 </a> 29 30 <?php if (Auth::isAdmin() || $record->tree()->getPreference('SHOW_GEDCOM_RECORD')) : ?> 31 <div class="dropdown-divider"></div> 32 33 <a class="dropdown-item menu-fam-editraw" href="<?= e(route('edit-raw-record', ['ged' => $record->tree()->name(), 'xref' => $record->xref()])) ?>"> 34 <?= I18N::translate('Edit the raw GEDCOM') ?> 35 </a> 36 <?php endif ?> 37 </div> 38</div> 39