Compare commits

...

4 Commits

Author SHA1 Message Date
loviuz e8ac15ccac Aggiunta possibilità di spostare marcatore mappa manualmente 2024-06-29 20:52:35 +02:00
loviuz a86ecea196 Fix sovrapposizione autocomplete 2024-06-29 20:43:52 +02:00
loviuz eb09b67ed5 Fix grafico minore 2024-06-29 20:34:36 +02:00
loviuz 09c0ca53eb Fix grafica panel 2024-06-29 20:33:14 +02:00
3 changed files with 18 additions and 11 deletions

View File

@ -115,6 +115,7 @@ input[type=file] {
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
z-index: 9990;
}
.autocomplete .group,

View File

@ -237,7 +237,7 @@ if (in_array($id_azienda, $tipi_anagrafica)) {
</div>
<div class="row">
<div class="col-md-12">
<div class="col-md-4">
{[ "type": "checkbox", "label": "<?php echo tr('Opt-out per newsletter'); ?>", "name": "disable_newsletter", "value": "<?php echo empty($record['enable_newsletter']); ?>", "help": "<?php echo tr('Blocco per l\'invio delle email.'); ?>" ]}
</div>
</div>
@ -432,7 +432,7 @@ echo '
if ($is_cliente or $is_fornitore or $is_tecnico) {
echo '
<div class="panel card-primary">
<div class="card card-primary">
<div class="card-header">
<h3 class="card-title">'.tr('Informazioni per tipo di anagrafica').'</h3>
</div>

View File

@ -105,6 +105,15 @@ function initGeocomplete() {
}
var map = null;
const icon = new L.Icon({
iconUrl: globals.rootdir + "/assets/dist/img/marker-icon.png",
shadowUrl:globals.rootdir + "/assets/dist/img/leaflet/marker-shadow.png",
iconSize: [25, 41],
iconAnchor: [12, 41],
popupAnchor: [1, -34],
shadowSize: [41, 41]
});
function caricaMappa() {
const lat = parseFloat(input("lat").get());
const lng = parseFloat(input("lng").get());
@ -146,20 +155,17 @@ function caricaMappa() {
}).addTo(map);
}
var icon = new L.Icon({
iconUrl: globals.rootdir + "/assets/dist/img/marker-icon.png",
shadowUrl:globals.rootdir + "/assets/dist/img/leaflet/marker-shadow.png",
iconSize: [25, 41],
iconAnchor: [12, 41],
popupAnchor: [1, -34],
shadowSize: [41, 41]
});
var marker = L.marker([lat, lng], {
icon: icon
}).addTo(map);
map.setView([lat, lng], 10);
map.on("click", function(e) {
marker.setLatLng(e.latlng);
input("lat").set(e.latlng.lat);
input("lng").set(e.latlng.lng);
});
}
// Ricaricamento della pagina alla chiusura