mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 19:34:39 -04:00
Check for map API key to show lookup placeholder
This commit is contained in:
parent
c36fa280ae
commit
1dee791077
@ -5,7 +5,7 @@
|
|||||||
@stop
|
@stop
|
||||||
|
|
||||||
@section('head')
|
@section('head')
|
||||||
@if (config('ninja.google_maps_enabled'))
|
@if (config('ninja.google_maps_api_key'))
|
||||||
@include('partials.google_geocode')
|
@include('partials.google_geocode')
|
||||||
@endif
|
@endif
|
||||||
@stop
|
@stop
|
||||||
@ -94,7 +94,7 @@
|
|||||||
{!! Former::text('city') !!}
|
{!! Former::text('city') !!}
|
||||||
{!! Former::text('state') !!}
|
{!! Former::text('state') !!}
|
||||||
{!! Former::text('postal_code')
|
{!! Former::text('postal_code')
|
||||||
->onchange(config('ninja.google_maps_enabled') ? 'lookupPostalCode()' : '') !!}
|
->onchange(config('ninja.google_maps_api_key') ? 'lookupPostalCode()' : '') !!}
|
||||||
{!! Former::select('country_id')->addOption('','')
|
{!! Former::select('country_id')->addOption('','')
|
||||||
->fromQuery($countries, 'name', 'id') !!}
|
->fromQuery($countries, 'name', 'id') !!}
|
||||||
|
|
||||||
@ -112,7 +112,7 @@
|
|||||||
{!! Former::text('shipping_city')->label('city') !!}
|
{!! Former::text('shipping_city')->label('city') !!}
|
||||||
{!! Former::text('shipping_state')->label('state') !!}
|
{!! Former::text('shipping_state')->label('state') !!}
|
||||||
{!! Former::text('shipping_postal_code')
|
{!! Former::text('shipping_postal_code')
|
||||||
->onchange(config('ninja.google_maps_enabled') ? 'lookupPostalCode(true)' : '')
|
->onchange(config('ninja.google_maps_api_key') ? 'lookupPostalCode(true)' : '')
|
||||||
->label('postal_code') !!}
|
->label('postal_code') !!}
|
||||||
{!! Former::select('shipping_country_id')->addOption('','')
|
{!! Former::select('shipping_country_id')->addOption('','')
|
||||||
->fromQuery($countries, 'name', 'id')->label('country_id') !!}
|
->fromQuery($countries, 'name', 'id')->label('country_id') !!}
|
||||||
|
4
resources/views/vendors/edit.blade.php
vendored
4
resources/views/vendors/edit.blade.php
vendored
@ -5,7 +5,7 @@
|
|||||||
@stop
|
@stop
|
||||||
|
|
||||||
@section('head')
|
@section('head')
|
||||||
@if (config('ninja.google_maps_enabled'))
|
@if (config('ninja.google_maps_api_key'))
|
||||||
@include('partials.google_geocode')
|
@include('partials.google_geocode')
|
||||||
@endif
|
@endif
|
||||||
@stop
|
@stop
|
||||||
@ -65,7 +65,7 @@
|
|||||||
{!! Former::text('state') !!}
|
{!! Former::text('state') !!}
|
||||||
|
|
||||||
{!! Former::text('postal_code')
|
{!! Former::text('postal_code')
|
||||||
->onchange(config('ninja.google_maps_enabled') ? 'lookupPostalCode()' : '') !!}
|
->onchange(config('ninja.google_maps_api_key') ? 'lookupPostalCode()' : '') !!}
|
||||||
{!! Former::select('country_id')->addOption('','')
|
{!! Former::select('country_id')->addOption('','')
|
||||||
->fromQuery($countries, 'name', 'id') !!}
|
->fromQuery($countries, 'name', 'id') !!}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user