From 9e63a1bc90e8e71f6b288945307ec69f61fd69a7 Mon Sep 17 00:00:00 2001 From: Luca Date: Thu, 3 Aug 2023 18:15:54 +0200 Subject: [PATCH] Migliorie grafiche minori pulsanti mappa --- modules/anagrafiche/edit.php | 34 +++++++++++++----------- modules/anagrafiche/modals/posizione.php | 18 +++++++------ plugins/sedi/edit.php | 29 ++++++++++---------- 3 files changed, 44 insertions(+), 37 deletions(-) diff --git a/modules/anagrafiche/edit.php b/modules/anagrafiche/edit.php index ff3dda83e..ec0af9448 100755 --- a/modules/anagrafiche/edit.php +++ b/modules/anagrafiche/edit.php @@ -168,7 +168,7 @@ if (sizeof($problemi_anagrafica) > 0) {
-

+

@@ -252,38 +252,42 @@ echo '

'.tr('Geolocalizzazione').'

'; - -if (!empty($sede_cliente->gaddress) || (!empty($sede_cliente->lat) && !empty($sede_cliente->lng))) { - echo ' + +// Area caricamento mappa +echo '

'; - // Navigazione diretta verso l'indirizzo - echo ' - - '.tr('Carica mappa').' - '; - +if (!empty($sede_cliente->gaddress) || (!empty($sede_cliente->lat) && !empty($sede_cliente->lng))) { + // Modifica manuale delle informazioni echo ' - '.tr('Aggiorna posizione').' + ' . tr('Aggiorna posizione') . ' '; -}else{ +} else { // Definizione manuale delle informazioni echo ' - '.tr('Definisci posizione').' + ' . tr('Definisci posizione') . ' + '; +} + +// Navigazione diretta verso l'indirizzo +echo ' + + ' . tr('Carica mappa') . ' '; -} + + // Navigazione diretta verso l'indirizzo echo ' - + '.tr('Calcola percorso').' '.((!empty($sede_cliente->lat) && !empty($sede_azienda->lat)) ? tr('(GPS)'): '' ).' '; diff --git a/modules/anagrafiche/modals/posizione.php b/modules/anagrafiche/modals/posizione.php index dfc4dcabe..314ef20c7 100644 --- a/modules/anagrafiche/modals/posizione.php +++ b/modules/anagrafiche/modals/posizione.php @@ -26,21 +26,23 @@ echo '
-
+
{[ "type": "text", "label": "'.tr('Indirizzo').'", "name": "gaddress", "value": "'.$record['gaddress'].'", "extra": "data-geo=\'formatted_address\'" ]}
-
- {[ "type": "text", "label": "'.tr('Latitudine').'", "name": "lat", "value": "'.$record['lat'].'", "extra": "data-geo=\'lat\'", "class": "text-right" ]} -
- -
- {[ "type": "text", "label": "'.tr('Longitudine').'", "name": "lng", "value": "'.$record['lng'].'", "extra": "data-geo=\'lng\'", "class": "text-right" ]} +
+ +
-
+ {[ "type": "text", "label": "' . tr('Latitudine') . '", "name": "lat", "value": "' . $record['lat'] . '", "extra": "data-geo=\'lat\'", "class": "text-right", "readonly": true ]}
+ +
+ {[ "type": "text", "label": "' . tr('Longitudine') . '", "name": "lng", "value": "' . $record['lng'] . '", "extra": "data-geo=\'lng\'", "class": "text-right", "readonly": true ]} +
+
diff --git a/plugins/sedi/edit.php b/plugins/sedi/edit.php index efda73d25..125cfe8d9 100755 --- a/plugins/sedi/edit.php +++ b/plugins/sedi/edit.php @@ -102,32 +102,33 @@ echo '
-
+
{[ "type": "text", "label": "'.tr('Indirizzo Mappa').'", "name": "gaddress", "value": "$gaddress$", "extra": "data-geo=\'formatted_address\'" ]}
- -
- {[ "type": "text", "label": "'.tr('Latitudine').'", "name": "lat", "id": "lat_", "value": "$lat$", "extra": "data-geo=\'lat\'", "class": "text-right" ]} -
- -
- {[ "type": "text", "label": "'.tr('Longitudine').'", "name": "lng", "id": "lng_", "value": "$lng$", "extra": "data-geo=\'lng\'", "class": "text-right" ]} -
-
-
'; + +
+
+ +
+ {[ "type": "text", "label": "'.tr('Latitudine'). '", "name": "lat", "id": "lat_", "value": "$lat$", "extra": "data-geo=\'lat\'", "class": "text-right", "readonly": true ]} +
+ +
+ {[ "type": "text", "label": "'.tr('Longitudine'). '", "name": "lng", "id": "lng_", "value": "$lng$", "extra": "data-geo=\'lng\'", "class": "text-right", "readonly": true ]} +
'; if (!empty($record['indirizzo']) || (empty($record['citta']))) { echo ' -
+

   '; echo ' - -
'; + +

'; } echo '