|
|
|
@ -861,8 +861,10 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
|
|
|
|
{
|
|
|
|
|
echo '<span class="fa fa-lock"></span> ';
|
|
|
|
|
}
|
|
|
|
|
if ($modsForHesk_settings['request_location'])
|
|
|
|
|
{
|
|
|
|
|
$locationText = '';
|
|
|
|
|
if (strpos($ticket['Location'], 'N/A') === false)
|
|
|
|
|
if (strpos($ticket['latitude'], 'E') === false)
|
|
|
|
|
{
|
|
|
|
|
$locationText = $hesklang['click_for_map'];
|
|
|
|
|
}
|
|
|
|
@ -870,10 +872,27 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
|
|
|
|
{
|
|
|
|
|
$locationText = $hesklang['location_unavailable'];
|
|
|
|
|
}
|
|
|
|
|
if ($modsForHesk_settings['request_location'])
|
|
|
|
|
{
|
|
|
|
|
echo '<i class="fa fa-crosshairs" data-toggle="tooltip" title="'.$locationText.'"></i> ';
|
|
|
|
|
// TODO ADD LOCATION CROSSHAIR
|
|
|
|
|
?>
|
|
|
|
|
<button class="btn btn-default" data-toggle="modal" data-target=".map-modal"><?php echo $locationText; ?></button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="modal fade map-modal" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
|
|
|
|
|
<div class="modal-dialog modal-lg">
|
|
|
|
|
<div class="modal-content">
|
|
|
|
|
<p>map modal!</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="map" style="height: 150px"></div>
|
|
|
|
|
<script>
|
|
|
|
|
var map = L.map('map').setView([<?php echo $ticket['latitude']; ?>, <?php echo $ticket['longitude']; ?>], 13);
|
|
|
|
|
L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
|
|
|
|
|
attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
|
|
|
|
|
}).addTo(map);
|
|
|
|
|
L.marker([<?php echo $ticket['latitude']; ?>, <?php echo $ticket['longitude']; ?>]).addTo(map)
|
|
|
|
|
.bindPopup('A pretty CSS3 popup. <br> Easily customizable.');
|
|
|
|
|
</script>
|
|
|
|
|
<?php
|
|
|
|
|
}
|
|
|
|
|
echo $ticket['subject'];
|
|
|
|
|
?></h3>
|
|
|
|
|