From a45ad69d9fe14e475a431f9eb0e7184dab266144 Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Wed, 3 Feb 2021 16:25:48 +0000 Subject: Fix: #3707 - populate place name from geocoder when adding new place --- resources/views/admin/location-edit.phtml | 3 +- resources/views/edit/input-addon-edit-name.phtml | 66 ++++++++++++++++++++++++ 2 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 resources/views/edit/input-addon-edit-name.phtml (limited to 'resources') diff --git a/resources/views/admin/location-edit.phtml b/resources/views/admin/location-edit.phtml index 1a2f7093cd..e99abc4f6d 100644 --- a/resources/views/admin/location-edit.phtml +++ b/resources/views/admin/location-edit.phtml @@ -97,7 +97,8 @@ use Fisharebest\Webtrees\View; let provider = ; let map = null; - let add_place = id() === 0) ?>; + let add_place = id() === null) ?>; + console.log(add_place); // map components diff --git a/resources/views/edit/input-addon-edit-name.phtml b/resources/views/edit/input-addon-edit-name.phtml new file mode 100644 index 0000000000..4d020a686e --- /dev/null +++ b/resources/views/edit/input-addon-edit-name.phtml @@ -0,0 +1,66 @@ + + +
+ + + + + + + + +
+ \ No newline at end of file -- cgit v1.3