Add address number to public reports
This commit is contained in:
parent
1e80c62701
commit
cfe399e44f
10 changed files with 125 additions and 26 deletions
|
|
@ -60,6 +60,7 @@ function setLocationInputs(location) {
|
|||
let longitude = document.getElementById('longitude');
|
||||
let latlngAccuracyType = document.getElementById('latlng-accuracy-type');
|
||||
let latlngAccuracyValue = document.getElementById('latlng-accuracy-value');
|
||||
let number = document.getElementById('address-number');
|
||||
let postcode = document.getElementById('address-postcode');
|
||||
let place = document.getElementById('address-place');
|
||||
let region = document.getElementById('address-region');
|
||||
|
|
@ -75,10 +76,11 @@ function setLocationInputs(location) {
|
|||
longitude.value = props.coordinates.longitude;
|
||||
latlngAccuracyType.value = props.coordinates.accuracy;
|
||||
latlngAccuracyValue.value = "0";
|
||||
number.value = context.address.address_number;
|
||||
postcode.value = context.postcode.name;
|
||||
place.value = context.place.name;
|
||||
region.value = context.region.name;
|
||||
street.value = context.country.name;
|
||||
street.value = context.street.name;
|
||||
}
|
||||
function toggleCollapse(something) {
|
||||
el = document.getElementById(something)
|
||||
|
|
@ -261,6 +263,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||
id="address-postcode"
|
||||
name="address-postcode"
|
||||
/>
|
||||
<input type="hidden" id="address-number" name="address-number" />
|
||||
<input type="hidden" id="address-place" name="address-place" />
|
||||
<input type="hidden" id="address-region" name="address-region" />
|
||||
<input type="hidden" id="address-street" name="address-street" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue