mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Added links to apple/google maps
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
d89c8682be
commit
34cd4b6244
|
@ -8,6 +8,7 @@ return array(
|
||||||
'assoc_child_loc' => 'This location is currently the parent of at least one child location and cannot be deleted. Please update your locations to no longer reference this location and try again. ',
|
'assoc_child_loc' => 'This location is currently the parent of at least one child location and cannot be deleted. Please update your locations to no longer reference this location and try again. ',
|
||||||
'assigned_assets' => 'Assigned Assets',
|
'assigned_assets' => 'Assigned Assets',
|
||||||
'current_location' => 'Current Location',
|
'current_location' => 'Current Location',
|
||||||
|
'open_map' => 'Open in :map_provider_icon Maps',
|
||||||
|
|
||||||
|
|
||||||
'create' => array(
|
'create' => array(
|
||||||
|
|
|
@ -418,6 +418,21 @@
|
||||||
@if ($location->ldap_ou)
|
@if ($location->ldap_ou)
|
||||||
<li>{{ trans('admin/locations/table.ldap_ou') }}: {{ $location->ldap_ou }}</li>
|
<li>{{ trans('admin/locations/table.ldap_ou') }}: {{ $location->ldap_ou }}</li>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
@if ((($location->address!='') && ($location->city!='')) || ($location->state!='') || ($location->country!=''))
|
||||||
|
<li>
|
||||||
|
<a href="https://maps.google.com/?q={{ urlencode($location->address.','. $location->city.','.$location->state.','.$location->country.','.$location->zip) }}" target="_blank">
|
||||||
|
{!! trans('admin/locations/message.open_map', ['map_provider_icon' => '<i class="fa-brands fa-google" aria-hidden="true"></i>']) !!}
|
||||||
|
<x-icon type="external-link"/>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="https://maps.apple.com/?q={{ urlencode($location->address.','. $location->city.','.$location->state.','.$location->country.','.$location->zip) }}" target="_blank">
|
||||||
|
{!! trans('admin/locations/message.open_map', ['map_provider_icon' => '<i class="fa-brands fa-apple" aria-hidden="true" style="font-size: 18px"></i>']) !!}
|
||||||
|
<x-icon type="external-link"/></a>
|
||||||
|
</li>
|
||||||
|
@endif
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue