diff options
Diffstat (limited to 'resources/views')
25 files changed, 44 insertions, 45 deletions
diff --git a/resources/views/admin/merge-records-step-1.php b/resources/views/admin/merge-records-step-1.php index edbd29688c..b4f202941c 100644 --- a/resources/views/admin/merge-records-step-1.php +++ b/resources/views/admin/merge-records-step-1.php @@ -31,22 +31,22 @@ <?= I18N::translate('First record') ?> </span> <span class="col-sm-9 select-record select-individual"> - <?= FunctionsEdit::formControlIndividual($individual1, ['name' => 'xref1', 'class' => 'form-control', 'style' => 'width:100%;']) ?> + <?= FunctionsEdit::formControlIndividual($tree, $individual1, ['name' => 'xref1', 'class' => 'form-control', 'style' => 'width:100%;']) ?> </span> <span class="col-sm-9 select-record select-family d-none"> - <?= FunctionsEdit::formControlFamily($family1, ['name' => 'xref1', 'class' => 'form-control', 'style' => 'width:100%;', 'disabled' => true]) ?> + <?= FunctionsEdit::formControlFamily($tree, $family1, ['name' => 'xref1', 'class' => 'form-control', 'style' => 'width:100%;', 'disabled' => true]) ?> </span> <span class="col-sm-9 select-record select-source d-none"> - <?= FunctionsEdit::formControlSource($source1, ['name' => 'xref1', 'class' => 'form-control', 'style' => 'width:100%;', 'disabled' => true]) ?> + <?= FunctionsEdit::formControlSource($tree, $source1, ['name' => 'xref1', 'class' => 'form-control', 'style' => 'width:100%;', 'disabled' => true]) ?> </span> <span class="col-sm-9 select-record select-repository d-none"> - <?= FunctionsEdit::formControlRepository($repository1, ['name' => 'xref1', 'class' => 'form-control', 'style' => 'width:100%;', 'disabled' => true]) ?> + <?= FunctionsEdit::formControlRepository($tree, $repository1, ['name' => 'xref1', 'class' => 'form-control', 'style' => 'width:100%;', 'disabled' => true]) ?> </span> <span class="col-sm-9 select-record select-note d-none"> - <?= FunctionsEdit::formControlNote($note1, ['name' => 'xref1', 'class' => 'form-control', 'style' => 'width:100%;', 'disabled' => true]) ?> + <?= FunctionsEdit::formControlNote($tree, $note1, ['name' => 'xref1', 'class' => 'form-control', 'style' => 'width:100%;', 'disabled' => true]) ?> </span> <span class="col-sm-9 select-record select-media d-none"> - <?= FunctionsEdit::formControlMediaObject($media2, ['name' => 'xref1', 'class' => 'form-control', 'style' => 'width:100%;', 'disabled' => true]) ?> + <?= FunctionsEdit::formControlMediaObject($tree, $media2, ['name' => 'xref1', 'class' => 'form-control', 'style' => 'width:100%;', 'disabled' => true]) ?> </span> </label> @@ -55,22 +55,22 @@ <?= I18N::translate('Second record') ?> </span> <span class="col-sm-9 select-record select-individual"> - <?= FunctionsEdit::formControlIndividual($individual2, ['name' => 'xref2', 'class' => 'form-control', 'style' => 'width:100%;']) ?> + <?= FunctionsEdit::formControlIndividual($tree, $individual2, ['name' => 'xref2', 'class' => 'form-control', 'style' => 'width:100%;']) ?> </span> <span class="col-sm-9 select-record select-family d-none"> - <?= FunctionsEdit::formControlFamily($family2, ['name' => 'xref2', 'class' => 'form-control', 'style' => 'width:100%;', 'disabled' => true]) ?> + <?= FunctionsEdit::formControlFamily($tree, $family2, ['name' => 'xref2', 'class' => 'form-control', 'style' => 'width:100%;', 'disabled' => true]) ?> </span> <span class="col-sm-9 select-record select-source d-none"> - <?= FunctionsEdit::formControlSource($source2, ['name' => 'xref2', 'class' => 'form-control', 'style' => 'width:100%;', 'disabled' => true]) ?> + <?= FunctionsEdit::formControlSource($tree, $source2, ['name' => 'xref2', 'class' => 'form-control', 'style' => 'width:100%;', 'disabled' => true]) ?> </span> <span class="col-sm-9 select-record select-repository d-none"> - <?= FunctionsEdit::formControlRepository($repository2, ['name' => 'xref2', 'class' => 'form-control', 'style' => 'width:100%;', 'disabled' => true]) ?> + <?= FunctionsEdit::formControlRepository($tree, $repository2, ['name' => 'xref2', 'class' => 'form-control', 'style' => 'width:100%;', 'disabled' => true]) ?> </span> <span class="col-sm-9 select-record select-note d-none"> - <?= FunctionsEdit::formControlNote($note2, ['name' => 'xref2', 'class' => 'form-control', 'style' => 'width:100%;', 'disabled' => true]) ?> + <?= FunctionsEdit::formControlNote($tree, $note2, ['name' => 'xref2', 'class' => 'form-control', 'style' => 'width:100%;', 'disabled' => true]) ?> </span> <span class="col-sm-9 select-record select-media d-none"> - <?= FunctionsEdit::formControlMediaObject($media2, ['name' => 'xref2', 'class' => 'form-control', 'style' => 'width:100%;', 'disabled' => true]) ?> + <?= FunctionsEdit::formControlMediaObject($tree, $media2, ['name' => 'xref2', 'class' => 'form-control', 'style' => 'width:100%;', 'disabled' => true]) ?> </span> </label> diff --git a/resources/views/admin/tree-privacy.php b/resources/views/admin/tree-privacy.php index f5cb12cd1f..beb8f9eb6d 100644 --- a/resources/views/admin/tree-privacy.php +++ b/resources/views/admin/tree-privacy.php @@ -175,22 +175,22 @@ <option value="media"><?= I18N::translate('Media object') ?></option> </select> <span class="select-record select-individual"> - <?= FunctionsEdit::formControlIndividual(null, ['name' => 'xref', 'class' => 'form-control', 'style' => 'width:100%;']) ?> + <?= FunctionsEdit::formControlIndividual($tree, null, ['name' => 'xref', 'class' => 'form-control', 'style' => 'width:100%;']) ?> </span> <span class="select-record select-family d-none"> - <?= FunctionsEdit::formControlFamily(null, ['name' => 'xref', 'class' => 'form-control', 'style' => 'width:100%;', 'disabled' => true]) ?> + <?= FunctionsEdit::formControlFamily($tree, null, ['name' => 'xref', 'class' => 'form-control', 'style' => 'width:100%;', 'disabled' => true]) ?> </span> <span class="select-record select-source d-none"> - <?= FunctionsEdit::formControlSource(null, ['name' => 'xref', 'class' => 'form-control', 'style' => 'width:100%;', 'disabled' => true]) ?> + <?= FunctionsEdit::formControlSource($tree, null, ['name' => 'xref', 'class' => 'form-control', 'style' => 'width:100%;', 'disabled' => true]) ?> </span> <span class="select-record select-repository d-none"> - <?= FunctionsEdit::formControlRepository(null, ['name' => 'xref', 'class' => 'form-control', 'style' => 'width:100%;', 'disabled' => true]) ?> + <?= FunctionsEdit::formControlRepository($tree, null, ['name' => 'xref', 'class' => 'form-control', 'style' => 'width:100%;', 'disabled' => true]) ?> </span> <span class="select-record select-note d-none"> - <?= FunctionsEdit::formControlNote(null, ['name' => 'xref', 'class' => 'form-control', 'style' => 'width:100%;', 'disabled' => true]) ?> + <?= FunctionsEdit::formControlNote($tree, null, ['name' => 'xref', 'class' => 'form-control', 'style' => 'width:100%;', 'disabled' => true]) ?> </span> <span class="select-record select-media d-none"> - <?= FunctionsEdit::formControlMediaObject(null, ['name' => 'xref', 'class' => 'form-control', 'style' => 'width:100%;', 'disabled' => true]) ?> + <?= FunctionsEdit::formControlMediaObject($tree, null, ['name' => 'xref', 'class' => 'form-control', 'style' => 'width:100%;', 'disabled' => true]) ?> </span> <input data-autocomplete-type="IFSRO" id="xref" maxlength="20" name="xref[]" type="text"> </td> diff --git a/resources/views/ancestors-page.php b/resources/views/ancestors-page.php index 0dc87d5fdf..fc08f296db 100644 --- a/resources/views/ancestors-page.php +++ b/resources/views/ancestors-page.php @@ -15,7 +15,7 @@ <?= I18N::translate('Individual') ?> </label> <div class="col-sm-9 wt-page-options-value"> - <?= FunctionsEdit::formControlIndividual($individual, ['id' => 'xref', 'name' => 'xref']) ?> + <?= FunctionsEdit::formControlIndividual($tree, $individual, ['id' => 'xref', 'name' => 'xref']) ?> </div> </div> diff --git a/resources/views/blocks/charts-config.php b/resources/views/blocks/charts-config.php index 234bd43273..7664114b20 100644 --- a/resources/views/blocks/charts-config.php +++ b/resources/views/blocks/charts-config.php @@ -18,6 +18,6 @@ </label> </label> <div class="col-sm-9"> - <?= FunctionsEdit::formControlIndividual($individual, ['id' => 'pid', 'name' => 'pid']) ?> + <?= FunctionsEdit::formControlIndividual($tree, $individual, ['id' => 'pid', 'name' => 'pid']) ?> </div> </div> diff --git a/resources/views/compact-tree-page.php b/resources/views/compact-tree-page.php index 8ff557fb7a..02c30c711d 100644 --- a/resources/views/compact-tree-page.php +++ b/resources/views/compact-tree-page.php @@ -14,7 +14,7 @@ <?= I18N::translate('Individual') ?> </label> <div class="col-sm-9 wt-page-options-value"> - <?= FunctionsEdit::formControlIndividual($individual, ['id' => 'xref', 'name' => 'xref']) ?> + <?= FunctionsEdit::formControlIndividual($tree, $individual, ['id' => 'xref', 'name' => 'xref']) ?> </div> </div> diff --git a/resources/views/descendants-page.php b/resources/views/descendants-page.php index 5fa0bd8f63..3c09ad9931 100644 --- a/resources/views/descendants-page.php +++ b/resources/views/descendants-page.php @@ -15,7 +15,7 @@ <?= I18N::translate('Individual') ?> </label> <div class="col-sm-9 wt-page-options-value"> - <?= FunctionsEdit::formControlIndividual($individual, ['id' => 'xref', 'name' => 'xref']) ?> + <?= FunctionsEdit::formControlIndividual($tree, $individual, ['id' => 'xref', 'name' => 'xref']) ?> </div> </div> diff --git a/resources/views/edit-account-page.php b/resources/views/edit-account-page.php index f06c12ec1d..26b1309561 100644 --- a/resources/views/edit-account-page.php +++ b/resources/views/edit-account-page.php @@ -73,7 +73,7 @@ <?= I18N::translate('Default individual') ?> </label> <div class="col-sm-9 wt-page-options-value"> - <?= FunctionsEdit::formControlIndividual($default_individual, ['id' => 'root-id', + <?= FunctionsEdit::formControlIndividual($tree, $default_individual, ['id' => 'root-id', 'name' => 'root_id', 'aria-describedby' => 'root-id-description']) ?> <p class="small text-muted" id="root-id-description"> <?= I18N::translate('This individual will be selected by default when viewing charts and reports.') ?> diff --git a/resources/views/family-book-page.php b/resources/views/family-book-page.php index dc5a5666a8..cbaef9d138 100644 --- a/resources/views/family-book-page.php +++ b/resources/views/family-book-page.php @@ -15,7 +15,7 @@ <?= I18N::translate('Individual') ?> </label> <div class="col-sm-9 wt-page-options-value"> - <?= FunctionsEdit::formControlIndividual($individual, ['id' => 'xref', 'name' => 'xref']) ?> + <?= FunctionsEdit::formControlIndividual($tree, $individual, ['id' => 'xref', 'name' => 'xref']) ?> </div> </div> diff --git a/resources/views/family-page-menu.php b/resources/views/family-page-menu.php index be5b920158..ac340a702e 100644 --- a/resources/views/family-page-menu.php +++ b/resources/views/family-page-menu.php @@ -25,7 +25,7 @@ <div class="dropdown-divider"></div> - <a class="dropdown-item menu-fam-del" href="#" onclick="return delete_record('<?= 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?') ?>', '<?= e($record->getXref()) ?>');"> + <a class="dropdown-item menu-fam-del" href="#" onclick="return delete_record('<?= 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?') ?>', '<?= e($record->getXref()) ?>', '<?= $record->getXref() ?>');"> <?= I18N::translate('Delete') ?> </a> diff --git a/resources/views/fan-page.php b/resources/views/fan-page.php index ce8492d735..5e8ebc2445 100644 --- a/resources/views/fan-page.php +++ b/resources/views/fan-page.php @@ -15,7 +15,7 @@ <?= I18N::translate('Individual') ?> </label> <div class="col-sm-9 wt-page-options-value"> - <?= FunctionsEdit::formControlIndividual($individual, ['id' => 'xref', 'name' => 'xref']) ?> + <?= FunctionsEdit::formControlIndividual($tree, $individual, ['id' => 'xref', 'name' => 'xref']) ?> </div> </div> diff --git a/resources/views/gedcom-record-page-menu.php b/resources/views/gedcom-record-page-menu.php index f960988c6f..b198920554 100644 --- a/resources/views/gedcom-record-page-menu.php +++ b/resources/views/gedcom-record-page-menu.php @@ -9,7 +9,7 @@ <?= I18N::translate('edit') ?> </button> <div class="dropdown-menu dropdown-menu-right wt-page-menu-items" aria-labelledby="page-menu"> - <a class="dropdown-item menu-indi-del" href="#" onclick="return delete_record('<?= I18N::translate('Are you sure you want to delete “%s”?', strip_tags($record->getFullName())) ?>');"> + <a class="dropdown-item menu-indi-del" href="#" onclick="return delete_record('<?= I18N::translate('Are you sure you want to delete “%s”?', strip_tags($record->getFullName())) ?>', '<?= $record->getXref() ?>');"> <?= I18N::translate('Delete') ?> </a> diff --git a/resources/views/hourglass-page.php b/resources/views/hourglass-page.php index f542713ff8..8fdbaf26e2 100644 --- a/resources/views/hourglass-page.php +++ b/resources/views/hourglass-page.php @@ -15,7 +15,7 @@ <?= I18N::translate('Individual') ?> </label> <div class="col-sm-9 wt-page-options-value"> - <?= FunctionsEdit::formControlIndividual($individual, ['id' => 'xref', 'name' => 'xref']) ?> + <?= FunctionsEdit::formControlIndividual($tree, $individual, ['id' => 'xref', 'name' => 'xref']) ?> </div> </div> diff --git a/resources/views/individual-page-menu.php b/resources/views/individual-page-menu.php index 0ba0ff29ea..7428875a4f 100644 --- a/resources/views/individual-page-menu.php +++ b/resources/views/individual-page-menu.php @@ -33,7 +33,7 @@ <?php endif ?> - <a class="dropdown-item menu-indi-del" href="#" onclick="return delete_record('<?= I18N::translate('Are you sure you want to delete “%s”?', strip_tags($individual->getFullName())) ?>');"> + <a class="dropdown-item menu-indi-del" href="#" onclick="return delete_record('<?= I18N::translate('Are you sure you want to delete “%s”?', strip_tags($individual->getFullName())) ?>', '<?= $individual->getXref() ?>');"> <?= I18N::translate('Delete') ?> </a> diff --git a/resources/views/interactive-tree-page.php b/resources/views/interactive-tree-page.php index e21d52d885..1d6b48e42f 100644 --- a/resources/views/interactive-tree-page.php +++ b/resources/views/interactive-tree-page.php @@ -15,7 +15,7 @@ <?= I18N::translate('Individual') ?> </label> <div class="col-sm-9 wt-page-options-value"> - <?= FunctionsEdit::formControlIndividual($individual, ['id' => 'rootid', 'name' => 'rootid']) ?> + <?= FunctionsEdit::formControlIndividual($tree, $individual, ['id' => 'rootid', 'name' => 'rootid']) ?> </div> </div> diff --git a/resources/views/lifespans-page.php b/resources/views/lifespans-page.php index 464bad82f7..1004a13d96 100644 --- a/resources/views/lifespans-page.php +++ b/resources/views/lifespans-page.php @@ -19,7 +19,7 @@ <?= I18N::translate('Add individuals') ?> </label> <div class="col-sm-9 wt-page-options-value"> - <?= FunctionsEdit::formControlIndividual(null, [ + <?= FunctionsEdit::formControlIndividual($tree, null, [ 'id' => 'addxref', 'name' => 'addxref', ]) ?> diff --git a/resources/views/media-page-menu.php b/resources/views/media-page-menu.php index 8ca76a6ce2..fb83567c1c 100644 --- a/resources/views/media-page-menu.php +++ b/resources/views/media-page-menu.php @@ -27,7 +27,7 @@ </a> <?php endif ?> - <a class="dropdown-item menu-obje-del" href="#" onclick="return delete_record('<?= I18N::translate('Are you sure you want to delete “%s”?', strip_tags($record->getFullName())) ?>');"> + <a class="dropdown-item menu-obje-del" href="#" onclick="return delete_record('<?= I18N::translate('Are you sure you want to delete “%s”?', strip_tags($record->getFullName())) ?>', '<?= $record->getXref() ?>');"> <?= I18N::translate('Delete') ?> </a> diff --git a/resources/views/modals/create-family.php b/resources/views/modals/create-family.php index b1a772af18..d6412e2ce6 100644 --- a/resources/views/modals/create-family.php +++ b/resources/views/modals/create-family.php @@ -3,9 +3,8 @@ <?php use Fisharebest\Webtrees\Functions\FunctionsEdit; ?> <div class="modal wt-modal-create-record" id="modal-create-family"> - <form id="form-create-family"><!-- This form is posted using jQuery --> + <form action="<?= e(route('create-family')) ?>" id="form-create-family"> <?= csrf_field() ?> - <input type="hidden" name="action" value="create-family"> <input type="hidden" name="ged" value="<?= e($tree->getName()) ?>"> <div class="modal-dialog modal-lg" role="document"> <div class="modal-content"> @@ -20,13 +19,13 @@ <label class="col-form-label" for="husband"> <?= I18N::translate('Husband') ?> </label> - <?= FunctionsEdit::formControlIndividual(null, ['id' => 'husband', 'name' => 'husband']) ?> + <?= FunctionsEdit::formControlIndividual($tree, null, ['id' => 'husband', 'name' => 'husband']) ?> </div> <div class="form-group"> <label class="col-form-label" for="wife"> <?= I18N::translate('Wife') ?> </label> - <?= FunctionsEdit::formControlIndividual(null, ['id' => 'wife', 'name' => 'wife']) ?> + <?= FunctionsEdit::formControlIndividual($tree, null, ['id' => 'wife', 'name' => 'wife']) ?> </div> </div> <div class="modal-footer"> diff --git a/resources/views/modals/source-fields.php b/resources/views/modals/source-fields.php index fe04fbea98..9dac7659b8 100644 --- a/resources/views/modals/source-fields.php +++ b/resources/views/modals/source-fields.php @@ -36,7 +36,7 @@ <?= I18N::translate('Repository') ?> </label> <div class="col-sm-4"> - <?= FunctionsEdit::formControlRepository(null, ['id' => 'source-repository', 'name' => 'source-repository']) ?> + <?= FunctionsEdit::formControlRepository($tree, null, ['id' => 'source-repository', 'name' => 'source-repository']) ?> </div> <label class="col-form-label col-sm-2" for="source-call-number"> <?= I18N::translate('Call number') ?> diff --git a/resources/views/modules/census-assistant.php b/resources/views/modules/census-assistant.php index 4e27075362..41bb5cd0f5 100644 --- a/resources/views/modules/census-assistant.php +++ b/resources/views/modules/census-assistant.php @@ -52,7 +52,7 @@ <?= I18N::translate('Individuals') ?> </span> </div> - <?= FunctionsEdit::formControlIndividual($individual, ['id' => 'census-assistant-individual', 'style' => 'width:100%']) ?> + <?= FunctionsEdit::formControlIndividual($tree, $individual, ['id' => 'census-assistant-individual', 'style' => 'width:100%']) ?> <span class="input-group-btn"> <button type="button" class="btn btn-primary" id="census-assistant-add"> <?= FontAwesome::semanticIcon('add', I18N::translate('Add')) ?> diff --git a/resources/views/note-page-menu.php b/resources/views/note-page-menu.php index 176115e2e0..0dbd57858b 100644 --- a/resources/views/note-page-menu.php +++ b/resources/views/note-page-menu.php @@ -9,7 +9,7 @@ <?= I18N::translate('edit') ?> </button> <div class="dropdown-menu dropdown-menu-right wt-page-menu-items" aria-labelledby="page-menu"> - <a class="dropdown-item menu-note-del" href="#" onclick="return delete_record('<?= I18N::translate('Are you sure you want to delete “%s”?', strip_tags($record->getFullName())) ?>');"> + <a class="dropdown-item menu-note-del" href="#" onclick="return delete_record('<?= I18N::translate('Are you sure you want to delete “%s”?', strip_tags($record->getFullName())) ?>', '<?= $record->getXref() ?>');"> <?= I18N::translate('Delete') ?> </a> diff --git a/resources/views/pedigree-page.php b/resources/views/pedigree-page.php index 1ebb30f6e5..e58c9443dd 100644 --- a/resources/views/pedigree-page.php +++ b/resources/views/pedigree-page.php @@ -15,7 +15,7 @@ <?= I18N::translate('Individual') ?> </label> <div class="col-sm-9 wt-page-options-value"> - <?= FunctionsEdit::formControlIndividual($individual, ['id' => 'xref', 'name' => 'xref']) ?> + <?= FunctionsEdit::formControlIndividual($tree, $individual, ['id' => 'xref', 'name' => 'xref']) ?> </div> </div> diff --git a/resources/views/relationships-page.php b/resources/views/relationships-page.php index ec60cbea95..8efbb3e38b 100644 --- a/resources/views/relationships-page.php +++ b/resources/views/relationships-page.php @@ -21,7 +21,7 @@ use Fisharebest\Webtrees\View; <?= I18N::translate('Individual 1') ?> </label> <div class="col-sm-9 wt-page-options-value"> - <?= FunctionsEdit::formControlIndividual($individual1, [ + <?= FunctionsEdit::formControlIndividual($tree, $individual1, [ 'id' => 'xref1', 'name' => 'xref1', ]) ?> @@ -37,7 +37,7 @@ use Fisharebest\Webtrees\View; <?= I18N::translate('Individual 2') ?> </label> <div class="col-sm-9 wt-page-options-value"> - <?= FunctionsEdit::formControlIndividual($individual2, [ + <?= FunctionsEdit::formControlIndividual($tree, $individual2, [ 'id' => 'xref2', 'name' => 'xref2', ]) ?> diff --git a/resources/views/repository-page-menu.php b/resources/views/repository-page-menu.php index 3625f73379..731553fda7 100644 --- a/resources/views/repository-page-menu.php +++ b/resources/views/repository-page-menu.php @@ -9,7 +9,7 @@ <?= I18N::translate('edit') ?> </button> <div class="dropdown-menu dropdown-menu-right wt-page-menu-items" aria-labelledby="page-menu"> - <a class="dropdown-item menu-repo-del" href="#" onclick="return delete_record('<?= I18N::translate('Are you sure you want to delete “%s”?', strip_tags($record->getFullName())) ?>');"> + <a class="dropdown-item menu-repo-del" href="#" onclick="return delete_record('<?= I18N::translate('Are you sure you want to delete “%s”?', strip_tags($record->getFullName())) ?>', '<?= $record->getXref() ?>');"> <?= I18N::translate('Delete') ?> </a> diff --git a/resources/views/source-page-menu.php b/resources/views/source-page-menu.php index 3a5dbcbfcb..cdb5838d63 100644 --- a/resources/views/source-page-menu.php +++ b/resources/views/source-page-menu.php @@ -9,7 +9,7 @@ <?= I18N::translate('edit') ?> </button> <div class="dropdown-menu dropdown-menu-right wt-page-menu-items" aria-labelledby="page-menu"> - <a class="dropdown-item menu-sour-del" href="#" onclick="return delete_record('<?= I18N::translate('Are you sure you want to delete “%s”?', strip_tags($record->getFullName())) ?>');"> + <a class="dropdown-item menu-sour-del" href="#" onclick="return delete_record('<?= I18N::translate('Are you sure you want to delete “%s”?', strip_tags($record->getFullName())) ?>', '<?= $record->getXref() ?>');"> <?= I18N::translate('Delete') ?> </a> diff --git a/resources/views/timeline-page.php b/resources/views/timeline-page.php index 9c03907f7d..ce404e340e 100644 --- a/resources/views/timeline-page.php +++ b/resources/views/timeline-page.php @@ -26,7 +26,7 @@ use Fisharebest\Webtrees\View; <?= I18N::translate('Individual') ?> </label> <div class="col-sm-9 wt-page-options-value"> - <?= FunctionsEdit::formControlIndividual(null, [ + <?= FunctionsEdit::formControlIndividual($tree, null, [ 'id' => 'xref-add', 'name' => 'xrefs[]', ]) ?> |
