- Statistiche
- Menu e Sottomenu - Lista ultimi Movimenti
This commit is contained in:
@@ -37,7 +37,9 @@
|
||||
<!--:style="tools.displayStyles(myevent) + ` min-width: `+ tools.myheight_dialog() + `px;`">-->
|
||||
<q-toolbar-title>
|
||||
{{ circuit.name }}
|
||||
<div v-if="groupnameSel">Gruppo: {{ groupnameSel.groupname }}</div>
|
||||
<div v-if="groupnameSel">
|
||||
Gruppo: {{ groupnameSel.groupname }}
|
||||
</div>
|
||||
</q-toolbar-title>
|
||||
<q-btn flat round color="white" icon="close" v-close-popup></q-btn>
|
||||
</q-toolbar>
|
||||
@@ -45,9 +47,17 @@
|
||||
<div v-html="t('circuit.disclaimer')"></div>
|
||||
</q-card-section>
|
||||
<q-card-section class="inset-shadow">
|
||||
<div style="font-weight: bold; font-size: 1.25rem">Regolamento:</div>
|
||||
<q-btn label="vedi Regolamento" @click="showrules = !showrules"></q-btn>
|
||||
<div v-if="showrules && circuit" v-html="getRegulation(circuit.regulation)"></div>
|
||||
<div style="font-weight: bold; font-size: 1.25rem">
|
||||
Regolamento:
|
||||
</div>
|
||||
<q-btn
|
||||
label="vedi Regolamento"
|
||||
@click="showrules = !showrules"
|
||||
></q-btn>
|
||||
<div
|
||||
v-if="showrules && circuit"
|
||||
v-html="getRegulation(circuit.regulation)"
|
||||
></div>
|
||||
</q-card-section>
|
||||
<q-card-actions align="center">
|
||||
<q-btn
|
||||
@@ -56,17 +66,22 @@
|
||||
color="positive"
|
||||
:label="$t('circuit.acceptregulation')"
|
||||
@click="
|
||||
requestToEnterCircuit = false;
|
||||
tools.setRequestCircuit(
|
||||
$q,
|
||||
userStore.my.username,
|
||||
circuit.name,
|
||||
true,
|
||||
groupnameSel ? groupnameSel.groupname : ''
|
||||
);
|
||||
requestToEnterCircuit = false;
|
||||
tools.setRequestCircuit(
|
||||
$q,
|
||||
userStore.my.username,
|
||||
circuit.name,
|
||||
true,
|
||||
groupnameSel ? groupnameSel.groupname : ''
|
||||
);
|
||||
"
|
||||
/>
|
||||
<q-btn outline :label="$t('dialog.cancel')" icon="close" v-close-popup></q-btn>
|
||||
<q-btn
|
||||
outline
|
||||
:label="$t('dialog.cancel')"
|
||||
icon="close"
|
||||
v-close-popup
|
||||
></q-btn>
|
||||
</q-card-actions>
|
||||
</q-card>
|
||||
</q-dialog>
|
||||
@@ -79,7 +94,10 @@ tools.setRequestCircuit(
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="circuit">
|
||||
<div class="absolute-top-right q-mr-sm q-my-md" style="margin-top: 50px !important">
|
||||
<div
|
||||
class="absolute-top-right q-mr-sm q-my-md"
|
||||
style="margin-top: 50px !important"
|
||||
>
|
||||
<div class="column">
|
||||
<q-btn
|
||||
v-if="userStore.IsMyCircuitByName(circuit.name)"
|
||||
@@ -88,33 +106,37 @@ tools.setRequestCircuit(
|
||||
icon="fas fa-ellipsis-h"
|
||||
style="z-index: 1"
|
||||
>
|
||||
|
||||
<q-menu>
|
||||
<q-list v-if="true" style="min-width: 150px">
|
||||
<q-item
|
||||
clickable
|
||||
v-close-popup
|
||||
v-if="true"
|
||||
@click="(saldo !== 0) ?
|
||||
tools.showNegativeNotif($q, t('circuit.per_uscire_dal_circuito_occorre_essere_a_zero'), 30000) :
|
||||
tools.removeFromMyCircuits(
|
||||
$q,
|
||||
userStore.my.username,
|
||||
circuit.name,
|
||||
'',
|
||||
$t('circuit.domanda_exit_fromcircuit', {
|
||||
circuitname: circuit.name,
|
||||
})
|
||||
)
|
||||
@click="
|
||||
saldo !== 0
|
||||
? tools.showNegativeNotif(
|
||||
$q,
|
||||
t(
|
||||
'circuit.per_uscire_dal_circuito_occorre_essere_a_zero'
|
||||
),
|
||||
30000
|
||||
)
|
||||
: tools.removeFromMyCircuits(
|
||||
$q,
|
||||
userStore.my.username,
|
||||
circuit.name,
|
||||
'',
|
||||
$t('circuit.domanda_exit_fromcircuit', {
|
||||
circuitname: circuit.name,
|
||||
})
|
||||
)
|
||||
"
|
||||
>
|
||||
<q-item-section avatar>
|
||||
<q-icon color="negative" name="fas fa-user-minus" />
|
||||
</q-item-section>
|
||||
<q-item-section>
|
||||
{{
|
||||
$t('circuit.exit_circuit')
|
||||
}}
|
||||
{{ $t('circuit.exit_circuit') }}
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
|
||||
@@ -153,9 +175,17 @@ tools.setRequestCircuit(
|
||||
</div>
|
||||
|
||||
<div style="align-self: center; vertical-align: middle">
|
||||
<q-btn label="Lista Circuiti" to="/circuits" rounded icon="fas fa-arrow-circle-left" />
|
||||
<q-btn
|
||||
label="Lista Circuiti"
|
||||
to="/circuits"
|
||||
rounded
|
||||
icon="fas fa-arrow-circle-left"
|
||||
/>
|
||||
</div>
|
||||
<div v-if="circuit.name" class="fit column no-wrap justify-evenly items-center content-start">
|
||||
<div
|
||||
v-if="circuit.name"
|
||||
class="fit column no-wrap justify-evenly items-center content-start"
|
||||
>
|
||||
<div class="row justify-center">
|
||||
<q-avatar v-if="getImgCircuit()" size="70px">
|
||||
<q-img
|
||||
@@ -186,11 +216,24 @@ tools.setRequestCircuit(
|
||||
<q-bar dense class="bg-primary text-white">
|
||||
{{ t('circuit.movements') }}:
|
||||
<q-space />
|
||||
<q-btn flat round color="white" icon="close" v-close-popup></q-btn>
|
||||
<q-btn
|
||||
flat
|
||||
round
|
||||
color="white"
|
||||
icon="close"
|
||||
v-close-popup
|
||||
></q-btn>
|
||||
</q-bar>
|
||||
<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-option-group
|
||||
v-model="showwhommov"
|
||||
:options="optionsmov"
|
||||
color="primary"
|
||||
/>
|
||||
<q-toggle
|
||||
v-model="tabellare"
|
||||
label="Formato Tabella"
|
||||
></q-toggle>
|
||||
|
||||
<CGridTableRec
|
||||
v-if="tabellare && !loading"
|
||||
@@ -269,7 +312,12 @@ tools.setRequestCircuit(
|
||||
</q-dialog>
|
||||
</div>
|
||||
<div class="text-center">
|
||||
<q-spinner v-if="loadSaldo" color="primary" size="3em" :thickness="2" />
|
||||
<q-spinner
|
||||
v-if="loadSaldo"
|
||||
color="primary"
|
||||
size="3em"
|
||||
:thickness="2"
|
||||
/>
|
||||
</div>
|
||||
<q-btn
|
||||
v-if="account && !loadSaldo"
|
||||
@@ -317,7 +365,9 @@ tools.setRequestCircuit(
|
||||
<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>
|
||||
<span
|
||||
v-html="$t('circuit.entra_italia_solo_dopo_aver_fido')"
|
||||
></span>
|
||||
</q-banner>
|
||||
<q-banner
|
||||
v-if="circuitStore.IsNationalAndNotEnterInLocal(circuit.name)"
|
||||
@@ -326,20 +376,24 @@ tools.setRequestCircuit(
|
||||
style="text-align: center"
|
||||
>
|
||||
<template v-slot:avatar>
|
||||
<q-icon class="vertical-align center" name="fas fa-info" color="white" size="sm" />
|
||||
<q-icon
|
||||
class="vertical-align center"
|
||||
name="fas fa-info"
|
||||
color="white"
|
||||
size="sm"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<em style="font-weight: bold">
|
||||
{{
|
||||
$t('circuit.beforeentertolocalcircuit')
|
||||
}}
|
||||
{{ $t('circuit.beforeentertolocalcircuit') }}
|
||||
</em>
|
||||
<br />
|
||||
</q-banner>
|
||||
<q-banner
|
||||
v-if="
|
||||
userStore.my.profile &&
|
||||
userStore.my.profile.calc && userStore.my.profile.calc.numGoodsAndServices <= 0 &&
|
||||
userStore.my.profile.calc &&
|
||||
userStore.my.profile.calc.numGoodsAndServices <= 0 &&
|
||||
globalStore.site.confpages.showRIS &&
|
||||
userStore.IsMyCircuitByName(circuit.name)
|
||||
"
|
||||
@@ -352,29 +406,31 @@ tools.setRequestCircuit(
|
||||
</template>
|
||||
|
||||
<em style="font-weight: bold">
|
||||
{{
|
||||
$t('db.insertgoodorservices_to_enter_circuit')
|
||||
}}
|
||||
{{ $t('db.insertgoodorservices_to_enter_circuit') }}
|
||||
</em>
|
||||
<br />
|
||||
</q-banner>
|
||||
<q-banner
|
||||
v-else-if="
|
||||
globalStore.site.confpages.showRIS &&
|
||||
userStore.my.profile.calc && userStore.my.profile.calc.numGoodsAndServices <= 0
|
||||
userStore.my.profile.calc &&
|
||||
userStore.my.profile.calc.numGoodsAndServices <= 0
|
||||
"
|
||||
rounded
|
||||
class="bg-deep-purple text-white"
|
||||
style="text-align: center"
|
||||
>
|
||||
<template v-slot:avatar>
|
||||
<q-icon class="vertical-align center" name="fas fa-info" color="red" size="sm" />
|
||||
<q-icon
|
||||
class="vertical-align center"
|
||||
name="fas fa-info"
|
||||
color="red"
|
||||
size="sm"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<em style="font-weight: bold">
|
||||
{{
|
||||
$t('db.insertgoodorservices_to_enter_circuit')
|
||||
}}
|
||||
{{ $t('db.insertgoodorservices_to_enter_circuit') }}
|
||||
</em>
|
||||
<br />
|
||||
</q-banner>
|
||||
@@ -394,8 +450,8 @@ tools.setRequestCircuit(
|
||||
color="primary"
|
||||
:label="$t('circuit.ask')"
|
||||
@click="
|
||||
requestToEnterCircuit = true;
|
||||
groupnameSel = null;
|
||||
requestToEnterCircuit = true;
|
||||
groupnameSel = null;
|
||||
"
|
||||
/>
|
||||
|
||||
@@ -415,9 +471,17 @@ groupnameSel = null;
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="circuit.name" class="no-wrap justify-evenly items-center content-start">
|
||||
<div
|
||||
v-if="circuit.name"
|
||||
class="no-wrap justify-evenly items-center content-start"
|
||||
>
|
||||
<q-tabs v-model="tabcircuit" class="text-blue" no-caps>
|
||||
<q-tab :label="t('shared.info1')" name="info" icon="fas fa-info" @click="loadCircuit()"></q-tab>
|
||||
<q-tab
|
||||
:label="t('shared.info1')"
|
||||
name="info"
|
||||
icon="fas fa-info"
|
||||
@click="loadCircuit()"
|
||||
></q-tab>
|
||||
<q-tab
|
||||
v-if="
|
||||
tools.iCanShowCircuitsMember(circuit) ||
|
||||
@@ -484,7 +548,11 @@ groupnameSel = null;
|
||||
<q-btn rounded icon="fas fa-user-plus" class="text-center">
|
||||
<q-menu>
|
||||
<q-item>Chiedi di Entrare nei Circuiti:</q-item>
|
||||
<q-list v-for="(group, ind) of groupsListAdmin" :key="ind" class="q-pa-sm">
|
||||
<q-list
|
||||
v-for="(group, ind) of groupsListAdmin"
|
||||
:key="ind"
|
||||
class="q-pa-sm"
|
||||
>
|
||||
<q-item
|
||||
v-if="
|
||||
!userStore.IsMyCircuitByNameAndGroup(
|
||||
@@ -511,8 +579,8 @@ groupnameSel = null;
|
||||
color="primary"
|
||||
:label="group.groupname"
|
||||
@click="
|
||||
requestToEnterCircuit = true;
|
||||
groupnameSel = group;
|
||||
requestToEnterCircuit = true;
|
||||
groupnameSel = group;
|
||||
"
|
||||
/>
|
||||
<q-btn
|
||||
@@ -682,7 +750,10 @@ groupnameSel = group;
|
||||
|
||||
<q-card-section>
|
||||
<div class="col-12 text-h8">
|
||||
<span v-if="checkifShow('descr')" v-html="circuit.longdescr"></span>
|
||||
<span
|
||||
v-if="checkifShow('descr')"
|
||||
v-html="circuit.longdescr"
|
||||
></span>
|
||||
</div>
|
||||
</q-card-section>
|
||||
|
||||
@@ -704,7 +775,11 @@ groupnameSel = group;
|
||||
})
|
||||
}}:
|
||||
<div class="row justify-center">
|
||||
<q-icon name="fas fa-hand-point-right" class="iconcirc" size="lg"></q-icon>
|
||||
<q-icon
|
||||
name="fas fa-hand-point-right"
|
||||
class="iconcirc"
|
||||
size="lg"
|
||||
></q-icon>
|
||||
|
||||
<q-btn
|
||||
v-if="circuit.link_group"
|
||||
@@ -714,7 +789,17 @@ groupnameSel = group;
|
||||
size="md"
|
||||
rounded
|
||||
:label="
|
||||
$t('circuit.link_chat', { name: circuit.name })
|
||||
$t('circuit.link_chat', {
|
||||
name: tools.replaceStringCaseInsensitive(
|
||||
tools.replaceStringCaseInsensitive(
|
||||
circuit.name,
|
||||
'circuito',
|
||||
''
|
||||
),
|
||||
'RIS',
|
||||
'RISO'
|
||||
),
|
||||
})
|
||||
"
|
||||
:href="circuit.link_group"
|
||||
target="__blank"
|
||||
@@ -730,7 +815,11 @@ groupnameSel = group;
|
||||
}}
|
||||
</div>
|
||||
<div v-for="(user, index) of circuit.admins" :key="index">
|
||||
<CMyUser :mycontact="user" :visu="costanti.FIND_PEOPLE" @setCmd="tools.setCmd"></CMyUser>
|
||||
<CMyUser
|
||||
:mycontact="user"
|
||||
:visu="costanti.FIND_PEOPLE"
|
||||
@setCmd="tools.setCmd"
|
||||
></CMyUser>
|
||||
</div>
|
||||
<div class="sezioni">
|
||||
<q-icon name="fas fa-coins" class="iconcirc"></q-icon>
|
||||
@@ -742,7 +831,8 @@ groupnameSel = group;
|
||||
`background-color: ` +
|
||||
tools.getColorByCircuit(circuit)
|
||||
"
|
||||
>{{ tools.getSymbolByCircuit(circuit) }}</em>
|
||||
>{{ tools.getSymbolByCircuit(circuit) }}</em
|
||||
>
|
||||
</span>
|
||||
</div>
|
||||
<div :class="$q.screen.lt.sm ? '' : 'row'">
|
||||
@@ -832,8 +922,7 @@ groupnameSel = group;
|
||||
? t('dialog.yes')
|
||||
: t('dialog.no')
|
||||
}}
|
||||
{{
|
||||
}}
|
||||
{{}}
|
||||
</span>
|
||||
</div>
|
||||
<!--<div
|
||||
@@ -866,7 +955,10 @@ groupnameSel = group;
|
||||
|
||||
<q-card-section>
|
||||
<div class="centermydiv">
|
||||
<q-btn label="vedi Regolamento" @click="showrules = !showrules"></q-btn>
|
||||
<q-btn
|
||||
label="vedi Regolamento"
|
||||
@click="showrules = !showrules"
|
||||
></q-btn>
|
||||
</div>
|
||||
<div class="col-12 text-h8">
|
||||
<span
|
||||
@@ -887,7 +979,7 @@ groupnameSel = group;
|
||||
v-if="
|
||||
!!circuit.date_updated &&
|
||||
tools.getstrDate(circuit.date_updated) !==
|
||||
tools.getstrDate(circuit.date_created)
|
||||
tools.getstrDate(circuit.date_created)
|
||||
"
|
||||
class="container text-h8"
|
||||
>
|
||||
@@ -914,7 +1006,10 @@ groupnameSel = group;
|
||||
</div>
|
||||
</q-tab-panel>
|
||||
|
||||
<q-tab-panel name="members" v-if="tools.iCanShowCircuitsMember(circuit)">
|
||||
<q-tab-panel
|
||||
name="members"
|
||||
v-if="tools.iCanShowCircuitsMember(circuit)"
|
||||
>
|
||||
<q-tabs
|
||||
v-show="tools.iAmAdminCircuit(circuit.name)"
|
||||
v-model="tabmembers"
|
||||
@@ -1004,7 +1099,9 @@ groupnameSel = group;
|
||||
<q-card v-if="circuit.name">
|
||||
<q-card-section>
|
||||
<div class="text-h7">{{ t('circuit.contocomunitario') }}:</div>
|
||||
<div class="text-h8 q-mb-sm">{{ $t('circuit.info_contocom') }}</div>
|
||||
<div class="text-h8 q-mb-sm">
|
||||
{{ $t('circuit.info_contocom') }}
|
||||
</div>
|
||||
</q-card-section>
|
||||
<q-separator />
|
||||
|
||||
@@ -1025,8 +1122,8 @@ groupnameSel = group;
|
||||
:qtarem="
|
||||
circuit.account
|
||||
? circuitStore.getRemainingCoinsToSend(
|
||||
circuit.account
|
||||
)
|
||||
circuit.account
|
||||
)
|
||||
: 0
|
||||
"
|
||||
></CSaldo>
|
||||
@@ -1084,8 +1181,16 @@ groupnameSel = group;
|
||||
></CGridTableRec>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else class="fit column no-wrap justify-evenly items-center content-start">
|
||||
<q-skeleton type="QAvatar" size="140px" height="140px" animation="fade" />
|
||||
<div
|
||||
v-else
|
||||
class="fit column no-wrap justify-evenly items-center content-start"
|
||||
>
|
||||
<q-skeleton
|
||||
type="QAvatar"
|
||||
size="140px"
|
||||
height="140px"
|
||||
animation="fade"
|
||||
/>
|
||||
<q-card flat bordered style="width: 250px">
|
||||
<div class="text-h7">
|
||||
<q-skeleton :animation="animation" />
|
||||
@@ -1114,6 +1219,6 @@ groupnameSel = group;
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import "./mycircuit.scss";
|
||||
@import './mycircuit.scss';
|
||||
</style>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user