- Entri in Circuito Italia solo se hai il fido nel circuito provinciale

- Aggiunta Zona, oltre alla provincia, per visualizzare i vari circuiti della prov
This commit is contained in:
Surya Paolo
2023-12-06 00:42:02 +01:00
parent 7f716b82b6
commit a0fbddde39
19 changed files with 273 additions and 106 deletions

View File

@@ -144,13 +144,16 @@
v-close-popup
></q-btn>
</q-bar>
<q-card-section class="q-px-xs inset-shadow">
<q-card-section class="q-px-xs inset-shadow">
<q-option-group
v-model="showwhommov"
:options="optionsmov"
color="primary"
/>
<q-toggle v-model="tabellare" label="Formato Tabella"></q-toggle>
<q-toggle
v-model="tabellare"
label="Formato Tabella"
></q-toggle>
<CGridTableRec
v-if="tabellare && !loading"
@@ -274,6 +277,41 @@
<br />
<div class="row text-center">
<q-banner
v-if="
circuitStore.isCircuitNational(circuit.name) &&
!circuitStore.SonoDentroAdAlmeno1CircuitoConFido()
"
inline-actions
class="bg-blue text-white"
>
<template v-slot:avatar>
<q-icon name="fas fa-info" color="red" size="sm" />
</template>
<span
v-html="$t('circuit.entra_italia_solo_dopo_aver_fido')"
></span>
</q-banner>
<q-banner
v-if="circuitStore.IsNationalAndNotEnterInLocal(circuit.name)"
rounded
class="bg-red text-white"
style="text-align: center"
>
<template v-slot:avatar>
<q-icon
class="vertical-align center"
name="fas fa-info"
color="white"
size="sm"
/>
</template>
<em style="font-weight: bold">{{
$t('circuit.beforeentertolocalcircuit')
}}</em
><br />
</q-banner>
<q-banner
v-if="
userStore.my.profile &&
@@ -285,7 +323,7 @@
style="text-align: center"
>
<template v-slot:avatar>
<q-icon name="fas fa-info" color="red" size="sm" />
<q-icon name="fas fa-info" color="white" size="sm" />
</template>
<em style="font-weight: bold">{{
@@ -314,33 +352,15 @@
><br />
</q-banner>
<q-banner
v-if="circuitStore.IsNationalAndNotEnterInLocal(circuit.name)"
rounded
class="bg-red text-white"
style="text-align: center"
>
<template v-slot:avatar>
<q-icon
class="vertical-align center"
name="fas fa-info"
color="red"
size="sm"
/>
</template>
<em style="font-weight: bold">{{
$t('circuit.beforeentertolocalcircuit')
}}</em
><br />
</q-banner>
<div class="centermydiv q-mt-md">
<q-btn
v-if="
!userStore.IsMyCircuitByName(circuit.name) &&
!userStore.IsAskedCircuitByName(circuit.name) &&
!userStore.IsRefusedCircuitByName(circuit.name)
!userStore.IsRefusedCircuitByName(circuit.name) &&
(!circuitStore.isCircuitNational(circuit.name) ||
(circuitStore.isCircuitNational(circuit.name) &&
circuitStore.SonoDentroAdAlmeno1CircuitoConFido()))
"
:disable="circuitStore.IsNationalAndNotEnterInLocal(circuit.name)"
icon="fas fa-user-plus"