Aggiunte opzioni per il Gestore: richiede che l'invitante confermi la Reg, Notifica sul BOT , Notifica all'Admin la Reg.
This commit is contained in:
0
src/rootgen/admin/confsite/confsite.scss
Executable file
0
src/rootgen/admin/confsite/confsite.scss
Executable file
33
src/rootgen/admin/confsite/confsite.ts
Executable file
33
src/rootgen/admin/confsite/confsite.ts
Executable file
@@ -0,0 +1,33 @@
|
||||
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 { CMyFieldRec } from '@/components/CMyFieldRec'
|
||||
|
||||
import MixinMetaTags from '@/mixins/mixin-metatags'
|
||||
import { IMyBot } from 'model'
|
||||
import { shared_consts } from '@/common/shared_vuejs'
|
||||
import { useGlobalStore } from '@store/globalStore'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'Confsite',
|
||||
components: { CImgText, CCard, CMyPage, CTitleBanner, CMyFieldRec },
|
||||
setup() {
|
||||
|
||||
const mysite = ref(null)
|
||||
|
||||
const globalStore = useGlobalStore()
|
||||
|
||||
async function mounted() {
|
||||
mysite.value = await globalStore.caricaTabella('sites', process.env.APP_ID!)
|
||||
}
|
||||
|
||||
onMounted(mounted)
|
||||
|
||||
return {
|
||||
mysite,
|
||||
}
|
||||
}
|
||||
})
|
||||
37
src/rootgen/admin/confsite/confsite.vue
Executable file
37
src/rootgen/admin/confsite/confsite.vue
Executable file
@@ -0,0 +1,37 @@
|
||||
<template>
|
||||
<CMyPage title="Configura Sito" imgbackground="images/calendario_eventi.jpg" sizes="max-height: 120px">
|
||||
|
||||
<div class="q-ma-sm q-gutter-sm q-pa-xs">
|
||||
|
||||
<div v-if="mysite">
|
||||
<q-banner
|
||||
rounded
|
||||
class="bg-primary text-white"
|
||||
color="primary q-title"
|
||||
style="text-align: center;">
|
||||
<p class="mybanner">{{mysite.name}}</p>
|
||||
</q-banner>
|
||||
|
||||
|
||||
<CMyFieldRec
|
||||
title="Opzioni Sito"
|
||||
table="sites"
|
||||
:id="mysite._id"
|
||||
:rec="mysite"
|
||||
field="confsite.options"
|
||||
:canEdit="true"
|
||||
:canModify="true">
|
||||
</CMyFieldRec>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</CMyPage>
|
||||
</template>
|
||||
<script lang="ts" src="./confsite.ts">
|
||||
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
@import 'confsite.scss';
|
||||
</style>
|
||||
Reference in New Issue
Block a user