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"> 11*d72b284aSGreg Roach <a class="dropdown-item" href="<?= e(route('change-family-members', ['tree' => $record->tree()->name(), 'xref' => $record->xref()])) ?>"> 1204fe0783SGreg Roach <?= view('icons/family') ?> 13dd6b2bfcSGreg Roach <?= I18N::translate('Change family members') ?> 14dd6b2bfcSGreg Roach </a> 15dd6b2bfcSGreg Roach 1617dd427eSGreg Roach <?php if ($record->husband() === null): ?> 17*d72b284aSGreg Roach <a class="dropdown-item" href="<?= e(route('add-spouse-to-family', ['tree' => $record->tree()->name(), 'xref' => $record->xref(), 'famtag' => 'HUSB'])) ?>"> 1804fe0783SGreg Roach <?= view('icons/add') ?> 1917dd427eSGreg Roach <?= I18N::translate('Add a husband') ?> 2017dd427eSGreg Roach </a> 2117dd427eSGreg Roach <?php endif ?> 2217dd427eSGreg Roach 2317dd427eSGreg Roach <?php if ($record->wife() === null): ?> 24*d72b284aSGreg Roach <a class="dropdown-item" href="<?= e(route('add-spouse-to-family', ['tree' => $record->tree()->name(), 'xref' => $record->xref(), 'famtag' => 'WIFE'])) ?>"> 2504fe0783SGreg Roach <?= view('icons/add') ?> 2617dd427eSGreg Roach <?= I18N::translate('Add a wife') ?> 2717dd427eSGreg Roach </a> 2817dd427eSGreg Roach <?php endif ?> 2917dd427eSGreg Roach 30*d72b284aSGreg Roach <a class="dropdown-item" href="<?= e(route('add-child-to-family', ['gender' => 'U', 'tree' => $record->tree()->name(), 'xref' => $record->xref()])) ?>"> 3104fe0783SGreg Roach <?= view('icons/add') ?> 3217dd427eSGreg Roach <?= I18N::translate('Add a child') ?> 33dd6b2bfcSGreg Roach </a> 34dd6b2bfcSGreg Roach 3539ca88baSGreg Roach <?php if ($record->numberOfChildren() > 1) : ?> 36*d72b284aSGreg Roach <a class="dropdown-item" href="<?= e(route('reorder-children', ['tree' => $record->tree()->name(), 'xref' => $record->xref()])) ?>"> 3704fe0783SGreg Roach <?= view('icons/reorder') ?> 38dd6b2bfcSGreg Roach <?= I18N::translate('Re-order children') ?> 39dd6b2bfcSGreg Roach </a> 40dd6b2bfcSGreg Roach <?php endif ?> 41dd6b2bfcSGreg Roach 42dd6b2bfcSGreg Roach <div class="dropdown-divider"></div> 43dd6b2bfcSGreg Roach 447adfb8e5SGreg Roach <a class="dropdown-item" 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?') ?>" data-post-url="<?= e(route('delete-record', ['tree' => $record->tree()->name(), 'xref' => $record->xref()])) ?>"> 4504fe0783SGreg Roach <?= view('icons/delete') ?> 46dd6b2bfcSGreg Roach <?= I18N::translate('Delete') ?> 47dd6b2bfcSGreg Roach </a> 48dd6b2bfcSGreg Roach 49f4afa648SGreg Roach <?php if (Auth::isAdmin() || $record->tree()->getPreference('SHOW_GEDCOM_RECORD')) : ?> 50*d72b284aSGreg Roach <a class="dropdown-item" href="<?= e(route('edit-raw-record', ['tree' => $record->tree()->name(), 'xref' => $record->xref()])) ?>"> 5104fe0783SGreg Roach <?= view('icons/edit') ?> 52dd6b2bfcSGreg Roach <?= I18N::translate('Edit the raw GEDCOM') ?> 53dd6b2bfcSGreg Roach </a> 54dd6b2bfcSGreg Roach <?php endif ?> 55dd6b2bfcSGreg Roach </div> 56dd6b2bfcSGreg Roach</div> 57