Migliorie grafiche minori

This commit is contained in:
Luca 2021-03-23 16:41:23 +01:00
parent 3f72467555
commit babda6c88c
4 changed files with 13 additions and 8 deletions

View File

@ -246,7 +246,7 @@ echo '
</div> </div>
<div class="panel-body">'; <div class="panel-body">';
$map_load_message = '<p>'.tr('Clicca per visualizzare').'</p>'; $map_load_message = tr('Clicca per visualizzare');
if (empty($google)) { if (empty($google)) {
echo ' echo '
<div class="alert alert-info"> <div class="alert alert-info">
@ -255,7 +255,7 @@ if (empty($google)) {
} elseif (!empty($sede_cliente->gaddress) || (!empty($sede_cliente->lat) && !empty($sede_cliente->lng))) { } elseif (!empty($sede_cliente->gaddress) || (!empty($sede_cliente->lat) && !empty($sede_cliente->lng))) {
echo ' echo '
<div id="map-edit" style="height: 200px;width: 100%;display: flex;align-items: center;justify-content: center;" onclick="caricaMappa()"> <div id="map-edit" style="height: 200px;width: 100%;display: flex;align-items: center;justify-content: center;" onclick="caricaMappa()">
'.$map_load_message.' <p class="clickable badge">'.$map_load_message.'</p>
</div> </div>
<div class="clearfix"></div> <div class="clearfix"></div>
@ -342,7 +342,7 @@ echo '
function caricaMappa() { function caricaMappa() {
const map_div = $("#map-edit"); const map_div = $("#map-edit");
if (map_div.html().trim() !== "'.$map_load_message.'"){ if (map_div.text().trim() !== "'.$map_load_message.'"){
return; return;
} }

View File

@ -41,8 +41,12 @@ echo '
</div> </div>
</div> </div>
<div id="map" style="height:400px; width:100%"></div> <div class="row">
<div class="col-md-12">
<div id="map" style="height:400px;"></div>
</div>
</div>
<div>&nbsp;</div>
<!-- PULSANTI --> <!-- PULSANTI -->
<div class="row"> <div class="row">
<div class="col-md-12 text-right"> <div class="col-md-12 text-right">

View File

@ -142,7 +142,7 @@ echo '
</div> </div>
<div class="panel-body">'; <div class="panel-body">';
$map_load_message = '<p>'.tr('Clicca per visualizzare').'</p>'; $map_load_message = tr('Clicca per visualizzare');
if (empty($google)) { if (empty($google)) {
echo ' echo '
<div class="alert alert-info"> <div class="alert alert-info">
@ -151,7 +151,7 @@ if (empty($google)) {
} elseif (!empty($sede_cliente->gaddress) || (!empty($sede_cliente->lat) && !empty($sede_cliente->lng))) { } elseif (!empty($sede_cliente->gaddress) || (!empty($sede_cliente->lat) && !empty($sede_cliente->lng))) {
echo ' echo '
<div id="map-edit" style="height: 200px;width: 100%;display: flex;align-items: center;justify-content: center;" onclick="caricaMappa()"> <div id="map-edit" style="height: 200px;width: 100%;display: flex;align-items: center;justify-content: center;" onclick="caricaMappa()">
'.$map_load_message.' <p class="clickable badge">'.$map_load_message.'</p>
</div> </div>
<div class="clearfix"></div> <div class="clearfix"></div>
@ -226,7 +226,7 @@ echo '
function caricaMappa() { function caricaMappa() {
const map_div = $("#map-edit"); const map_div = $("#map-edit");
if (map_div.html().trim() !== "'.$map_load_message.'"){ if (map_div.text().trim() !== "'.$map_load_message.'"){
return; return;
} }

View File

@ -192,6 +192,7 @@ UPDATE `or_ordini` SET `numero_cliente`= `id_documento_fe` WHERE `id_documento_f
-- Fix nome file con il tipo documento di vendita -- Fix nome file con il tipo documento di vendita
UPDATE `zz_prints` SET `filename` = '{tipo_documento} num. {numero} del {data}' WHERE `zz_prints`.`name` = 'Fattura di vendita'; UPDATE `zz_prints` SET `filename` = '{tipo_documento} num. {numero} del {data}' WHERE `zz_prints`.`name` = 'Fattura di vendita';
-- Risorsa API per sincronizzazione rapida di un singolo intervento -- Risorsa API per sincronizzazione rapida di un singolo intervento
INSERT INTO `zz_api_resources` (`id`, `version`, `type`, `resource`, `class`, `enabled`) VALUES INSERT INTO `zz_api_resources` (`id`, `version`, `type`, `resource`, `class`, `enabled`) VALUES
(NULL, 'app-v1', 'update', 'intervento-flash', 'API\\App\\v1\\Flash\\Intervento', '1'); (NULL, 'app-v1', 'update', 'intervento-flash', 'API\\App\\v1\\Flash\\Intervento', '1');