sito Terra Della Visione...3
Pagina Operatori
This commit is contained in:
0
src/rootgen/admin/disciplines/disciplines.scss
Executable file
0
src/rootgen/admin/disciplines/disciplines.scss
Executable file
26
src/rootgen/admin/disciplines/disciplines.ts
Executable file
26
src/rootgen/admin/disciplines/disciplines.ts
Executable file
@@ -0,0 +1,26 @@
|
||||
import { defineComponent, ref, onMounted } from 'vue'
|
||||
|
||||
import { CImgText } from '../../../components/CImgText/index'
|
||||
import { CCard } from '@/components/CCard'
|
||||
import { CMyPage } from '@/components/CMyPage'
|
||||
import { CTitleBanner } from '@/components/CTitleBanner'
|
||||
import { CGridTableRec } from '@/components/CGridTableRec'
|
||||
|
||||
import { colmypage } from '@src/store/Modules/fieldsTable'
|
||||
import { fieldsTable } from '@store/Modules/fieldsTable'
|
||||
import MixinMetaTags from '@/mixins/mixin-metatags'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'Disciplines',
|
||||
components: { CImgText, CCard, CMyPage, CTitleBanner, CGridTableRec },
|
||||
setup() {
|
||||
|
||||
const { setmeta } = MixinMetaTags()
|
||||
|
||||
return {
|
||||
colmypage,
|
||||
setmeta,
|
||||
fieldsTable,
|
||||
}
|
||||
}
|
||||
})
|
||||
31
src/rootgen/admin/disciplines/disciplines.vue
Executable file
31
src/rootgen/admin/disciplines/disciplines.vue
Executable file
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<CMyPage title="Discipline" imgbackground="images/calendario_eventi.jpg" sizes="max-height: 120px">
|
||||
<span>{{
|
||||
setmeta({
|
||||
title: 'disciplines',
|
||||
description: '',
|
||||
keywords: '',
|
||||
})
|
||||
}}
|
||||
</span>
|
||||
|
||||
<div class="q-ma-sm q-gutter-sm q-pa-xs">
|
||||
<CTitleBanner title="Discipline"></CTitleBanner>
|
||||
<CGridTableRec
|
||||
prop_mytable="disciplines"
|
||||
prop_mytitle="Lista Discipline"
|
||||
:prop_mycolumns="fieldsTable.colDisciplines()"
|
||||
prop_colkey="_id"
|
||||
nodataLabel="Nessuna Disciplina"
|
||||
noresultLabel="Il filtro selezionato non ha trovato nessun risultato">
|
||||
|
||||
</CGridTableRec>
|
||||
</div>
|
||||
</CMyPage>
|
||||
</template>
|
||||
<script lang="ts" src="./disciplines.ts">
|
||||
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
@import 'disciplines.scss';
|
||||
</style>
|
||||
@@ -63,7 +63,7 @@ export default defineComponent({
|
||||
|
||||
let add = true
|
||||
|
||||
if (!showall) {
|
||||
if (!showall()) {
|
||||
add = calendarStore.getNumParticipants(myevent, showall(), tools.peopleWhere.participants) > 0
|
||||
}
|
||||
|
||||
@@ -108,7 +108,7 @@ export default defineComponent({
|
||||
|
||||
let add = true
|
||||
|
||||
if (!showall) {
|
||||
if (!showall()) {
|
||||
add = calendarStore.getNumParticipants(myevent, showall(), tools.peopleWhere.participants) > 0
|
||||
}
|
||||
|
||||
@@ -167,7 +167,7 @@ export default defineComponent({
|
||||
isValidUsername,
|
||||
gettitle,
|
||||
change_rec,
|
||||
$q,
|
||||
showPrev,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<template>
|
||||
<CMyPage
|
||||
title="Events" keywords="" description="" imgbackground="images/calendario_eventi.jpg"
|
||||
:title="gettitle()" keywords="" description="" imgbackground="images/calendario_eventi.jpg"
|
||||
sizes="max-height: 120px">
|
||||
|
||||
<div class="q-ma-sm q-pa-xs">
|
||||
<div v-if="!showall" class="text-h6 bg-red text-white text-center q-pa-xs shadow-max">Lista delle tue
|
||||
<div v-if="!showall()" class="text-h6 bg-red text-white text-center q-pa-xs shadow-max">Lista delle tue
|
||||
prenotazioni agli Eventi:
|
||||
</div>
|
||||
|
||||
@@ -20,17 +20,17 @@
|
||||
<th>{{ $t('cal.data') }}</th>
|
||||
<th>{{ $t('cal.event') }}</th>
|
||||
<th v-if="!tools.isMobile()">{{ $t('cal.teachertitle') }}</th>
|
||||
<th v-if="showall">
|
||||
<th v-if="showall()">
|
||||
<span v-if="!tools.isMobile()">{{ $t('cal.selnumpeople') }}</span>
|
||||
<span v-else>{{ $t('cal.selnumpeople_short') }}</span>
|
||||
</th>
|
||||
<th v-if="showall">
|
||||
<th v-if="showall()">
|
||||
{{ $t('cal.selnumpeopleLunch') }}
|
||||
</th>
|
||||
<th v-if="showall">
|
||||
<th v-if="showall()">
|
||||
{{ $t('cal.selnumpeopleDinner') }}
|
||||
</th>
|
||||
<th v-if="showall">
|
||||
<th v-if="showall()">
|
||||
{{ $t('cal.selnumpeopleDinnerShared') }}
|
||||
</th>
|
||||
<th>{{ $t('cal.peoplebooked') }}</th>
|
||||
@@ -51,25 +51,25 @@
|
||||
<span v-if="isValidUsername(event.teacher4)"> - {{ getTeacherByUsername(event.teacher4) }}</span>
|
||||
</div>
|
||||
</td>
|
||||
<td v-if="showall">
|
||||
<td v-if="showall()">
|
||||
<div class="text-center">{{
|
||||
calendarStore.getNumParticipants(event, showall, tools.peopleWhere.participants)
|
||||
}}
|
||||
</div>
|
||||
</td>
|
||||
<td v-if="showall">
|
||||
<td v-if="showall()">
|
||||
<div class="text-center">{{
|
||||
calendarStore.getNumParticipants(event, showall, tools.peopleWhere.lunch)
|
||||
}}
|
||||
</div>
|
||||
</td>
|
||||
<td v-if="showall">
|
||||
<td v-if="showall()">
|
||||
<div class="text-center">{{
|
||||
calendarStore.getNumParticipants(event, showall, tools.peopleWhere.dinner)
|
||||
}}
|
||||
</div>
|
||||
</td>
|
||||
<td v-if="showall">
|
||||
<td v-if="showall()">
|
||||
<div class="text-center">{{
|
||||
calendarStore.getNumParticipants(event, showall, tools.peopleWhere.dinnerShared)
|
||||
}}
|
||||
|
||||
0
src/rootgen/admin/operators/operators.scss
Executable file
0
src/rootgen/admin/operators/operators.scss
Executable file
26
src/rootgen/admin/operators/operators.ts
Executable file
26
src/rootgen/admin/operators/operators.ts
Executable file
@@ -0,0 +1,26 @@
|
||||
import { defineComponent, ref, onMounted } from 'vue'
|
||||
|
||||
import { CImgText } from '@/components/CImgText'
|
||||
import { CCard } from '@/components/CCard'
|
||||
import { CMyPage } from '@/components/CMyPage'
|
||||
import { CTitleBanner } from '@/components/CTitleBanner'
|
||||
import { CGridTableRec } from '@/components/CGridTableRec'
|
||||
|
||||
import { colmypage } from '@src/store/Modules/fieldsTable'
|
||||
import { fieldsTable } from '@store/Modules/fieldsTable'
|
||||
import MixinMetaTags from '@/mixins/mixin-metatags'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'Operators',
|
||||
components: { CImgText, CCard, CMyPage, CTitleBanner, CGridTableRec },
|
||||
setup() {
|
||||
|
||||
const { setmeta } = MixinMetaTags()
|
||||
|
||||
return {
|
||||
colmypage,
|
||||
setmeta,
|
||||
fieldsTable,
|
||||
}
|
||||
}
|
||||
})
|
||||
31
src/rootgen/admin/operators/operators.vue
Executable file
31
src/rootgen/admin/operators/operators.vue
Executable file
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<CMyPage title="Operatori" imgbackground="images/calendario_eventi.jpg" sizes="max-height: 120px">
|
||||
<span>{{
|
||||
setmeta({
|
||||
title: 'operators',
|
||||
description: '',
|
||||
keywords: '',
|
||||
})
|
||||
}}
|
||||
</span>
|
||||
|
||||
<div class="q-ma-sm q-gutter-sm q-pa-xs">
|
||||
<CTitleBanner title="Operatori"></CTitleBanner>
|
||||
<CGridTableRec
|
||||
prop_mytable="operators"
|
||||
prop_mytitle="Lista Operatori"
|
||||
:prop_mycolumns="fieldsTable.colOperators()"
|
||||
prop_colkey="_id"
|
||||
nodataLabel="Nessun Operatore"
|
||||
noresultLabel="Il filtro selezionato non ha trovato nessun risultato">
|
||||
|
||||
</CGridTableRec>
|
||||
</div>
|
||||
</CMyPage>
|
||||
</template>
|
||||
<script lang="ts" src="./operators.ts">
|
||||
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
@import 'operators.scss';
|
||||
</style>
|
||||
0
src/rootgen/operators/operators.scss
Executable file
0
src/rootgen/operators/operators.scss
Executable file
22
src/rootgen/operators/operators.ts
Executable file
22
src/rootgen/operators/operators.ts
Executable file
@@ -0,0 +1,22 @@
|
||||
import { defineComponent, ref, onMounted } from 'vue'
|
||||
|
||||
import { CMyPage } from '@/components/CMyPage'
|
||||
import { CTitleBanner } from '@/components/CTitleBanner'
|
||||
import { COperators } from '@/components/COperators'
|
||||
import { fieldsTable } from '@store/Modules/fieldsTable'
|
||||
|
||||
import MixinOperator from '../../mixins/mixin-operator'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'PageOperators',
|
||||
components: { CMyPage, CTitleBanner, COperators },
|
||||
setup() {
|
||||
|
||||
const { getOperatorsInHome } = MixinOperator()
|
||||
|
||||
return {
|
||||
fieldsTable,
|
||||
getOperatorsInHome,
|
||||
}
|
||||
}
|
||||
})
|
||||
20
src/rootgen/operators/operators.vue
Executable file
20
src/rootgen/operators/operators.vue
Executable file
@@ -0,0 +1,20 @@
|
||||
<template>
|
||||
<CMyPage title="Operatori" imgbackground="images/calendario_eventi.jpg" sizes="max-height: 120px">
|
||||
<div class="q-ma-xs q-gutter-xs q-pa-xs">
|
||||
<q-card-section class="row justify-center">
|
||||
<div
|
||||
v-for="(myop, index) in getOperatorsInHome()" :key="index">
|
||||
|
||||
<COperators :myop="myop" />
|
||||
</div>
|
||||
</q-card-section>
|
||||
|
||||
</div>
|
||||
</CMyPage>
|
||||
</template>
|
||||
<script lang="ts" src="./operators.ts">
|
||||
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
@import 'operators.scss';
|
||||
</style>
|
||||
Reference in New Issue
Block a user