fix(): fix selezione luogo
This commit is contained in:
parent
820f6bf534
commit
672374d238
@ -162,6 +162,76 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="self-stretch flex flex-col md:flex-row justify-end items-center gap-4">
|
||||||
|
<div class="flex-1 flex flex-col justify-start items-start gap-2 w-full">
|
||||||
|
<div class="flex align-items-center">
|
||||||
|
@if (cercaStruttureForm.controls.luogo.value?.tipo === 'comune') {
|
||||||
|
<fa-icon class="self-center fs-16 mr-3 text-color-secondary"
|
||||||
|
[icon]="faCity"></fa-icon>
|
||||||
|
<div class="flex flex-col">
|
||||||
|
<span>{{ cercaStruttureForm.controls.luogo.value?.comune
|
||||||
|
}}{{
|
||||||
|
cercaStruttureForm.controls.luogo.value?.codiceStato === 'ITA'
|
||||||
|
? ' (' + cercaStruttureForm.controls.luogo.value?.siglaProvincia + ')'
|
||||||
|
: ''
|
||||||
|
}}</span>
|
||||||
|
<small class="font-light text-xs text-color-secondary">
|
||||||
|
<i>{{
|
||||||
|
cercaStruttureForm.controls.luogo.value?.codiceStato === 'ITA'
|
||||||
|
? 'Comune: '
|
||||||
|
: ('Stato estero: ' | titlecase)
|
||||||
|
}}</i>{{
|
||||||
|
cercaStruttureForm.controls.luogo.value?.codiceStato === 'ITA'
|
||||||
|
? 'Italia → ' +
|
||||||
|
cercaStruttureForm.controls.luogo.value?.regione +
|
||||||
|
' → ' +
|
||||||
|
cercaStruttureForm.controls.luogo.value?.provincia +
|
||||||
|
' → ' +
|
||||||
|
cercaStruttureForm.controls.luogo.value?.comune
|
||||||
|
: ''
|
||||||
|
}}</small>
|
||||||
|
</div>
|
||||||
|
} @else if (cercaStruttureForm.controls.luogo.value?.tipo === 'stato') {
|
||||||
|
<fa-icon class="self-center fs-16 mr-3 text-color-secondary"
|
||||||
|
[icon]="faGlobeEurope"></fa-icon>
|
||||||
|
<div class="flex flex-col">
|
||||||
|
<span>{{ cercaStruttureForm.controls.luogo.value?.stato }}</span>
|
||||||
|
<small class="font-light text-xs text-color-secondary">
|
||||||
|
{{
|
||||||
|
cercaStruttureForm.controls.luogo.value?.codiceStato === 'ITA'
|
||||||
|
? ('Stato' | titlecase)
|
||||||
|
: ('Stato estero' | titlecase)
|
||||||
|
}}</small>
|
||||||
|
</div>
|
||||||
|
} @else if (cercaStruttureForm.controls.luogo.value?.tipo === 'regione') {
|
||||||
|
<fa-icon class="fs-16 mr-3 text-color-secondary"
|
||||||
|
[icon]="faMapLocationDot"></fa-icon>
|
||||||
|
<div class="flex flex-col">
|
||||||
|
<span>{{ cercaStruttureForm.controls.luogo.value?.regione }}</span>
|
||||||
|
<small class="font-light text-xs text-color-secondary">
|
||||||
|
<i>Regione:</i>
|
||||||
|
{{'Italia → ' + cercaStruttureForm.controls.luogo.value?.regione }}</small>
|
||||||
|
</div>
|
||||||
|
} @else if (cercaStruttureForm.controls.luogo.value?.tipo === 'provincia') {
|
||||||
|
<fa-icon class="self-center fs-16 mr-3 text-color-secondary"
|
||||||
|
[icon]="faMapLocationDot"></fa-icon>
|
||||||
|
<div class="flex flex-col">
|
||||||
|
<span>{{ cercaStruttureForm.controls.luogo.value?.provincia }}</span>
|
||||||
|
<small class="font-light text-xs text-color-secondary">
|
||||||
|
<i>Provincia:</i>
|
||||||
|
{{
|
||||||
|
'Italia → ' + cercaStruttureForm.controls.luogo.value?.regione + ' → ' + cercaStruttureForm.controls.luogo.value?.provincia
|
||||||
|
}}</small>
|
||||||
|
</div>
|
||||||
|
} @else {
|
||||||
|
<div class="flex flex-col">
|
||||||
|
<span> </span>
|
||||||
|
<small class="font-light text-xs text-color-secondary"> </small>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="self-stretch flex flex-col md:flex-row justify-end items-center gap-4">
|
<div class="self-stretch flex flex-col md:flex-row justify-end items-center gap-4">
|
||||||
<button pButton
|
<button pButton
|
||||||
@ -183,7 +253,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="flex-auto lg:flex-1 bg-surface-50 dark:bg-surface-900 rounded-2xl border-2 border-dashed border-surface-200 dark:border-surface-700 h-[350px] w-full lg:1/2">
|
class="flex-auto lg:flex-1 bg-surface-50 dark:bg-surface-900 rounded-2xl border-2 border-dashed border-surface-200 dark:border-surface-700 h-[343px] w-full lg:1/2">
|
||||||
<google-map #gmap
|
<google-map #gmap
|
||||||
height="100%"
|
height="100%"
|
||||||
width="100%"
|
width="100%"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user