adrema/resources/js/views/member/ShowView.vue

163 lines
4.9 KiB
Vue
Raw Normal View History

<template>
2022-12-02 00:42:06 +01:00
<div class="p-3 grid gap-3 this-grid grow">
<box heading="Stammdaten" class="area-stamm hidden xl:block">
2022-11-22 01:55:57 +01:00
<stamm :inner="inner"></stamm>
2022-11-22 00:37:34 +01:00
</box>
2022-12-02 00:42:06 +01:00
<box heading="Kontakt" class="area-kontakt hidden xl:block">
2022-11-22 01:55:57 +01:00
<kontakt :inner="inner"></kontakt>
2022-11-22 00:37:34 +01:00
</box>
2022-12-02 00:42:06 +01:00
<box class="area-stammkontakt block xl:hidden">
2022-11-22 01:55:57 +01:00
<tabs v-model="tabs.stammkontakt">
<stamm v-show="tabs.stammkontakt.active === 'stamm'" :inner="inner"></stamm>
<kontakt v-show="tabs.stammkontakt.active === 'kontakt'" :inner="inner"></kontakt>
</tabs>
2022-11-22 00:37:34 +01:00
</box>
2022-12-02 00:42:06 +01:00
<box container-class="" heading="Prävention" class="area-praev hidden xl:block">
2022-11-22 01:55:57 +01:00
<prae :inner="inner"></prae>
</box>
2022-12-02 00:42:06 +01:00
<box heading="System" class="area-system hidden xl:block">
2022-11-22 01:55:57 +01:00
<system :inner="inner"></system>
</box>
2022-12-02 00:42:06 +01:00
<box class="area-praesystem block xl:hidden">
2022-11-22 01:55:57 +01:00
<tabs v-model="tabs.praesystem">
<prae v-show="tabs.praesystem.active === 'prae'" :inner="inner"></prae>
<system v-show="tabs.praesystem.active === 'system'" :inner="inner"></system>
</tabs>
2022-11-22 00:37:34 +01:00
</box>
2022-12-02 00:42:06 +01:00
<box class="area-membershipcourse hidden xl:block">
<tabs v-model="tabs.membershipcourse">
<courses v-show="tabs.membershipcourse.active === 'course'" :value="inner.courses"></courses>
<memberships
v-show="tabs.membershipcourse.active === 'membership'"
:value="inner.memberships"
></memberships>
</tabs>
</box>
<box heading="Ausbildungen" class="area-courses xl:hidden">
<courses :value="inner.courses"></courses>
2022-11-22 00:37:34 +01:00
</box>
2022-12-02 00:42:06 +01:00
<box heading="Mitgliedschaften" class="area-memberships xl:hidden">
<memberships :value="inner.memberships"></memberships>
2022-11-22 00:37:34 +01:00
</box>
<box heading="Zahlungen" class="area-payments">
<payments :value="inner.payments"></payments>
2022-11-22 00:37:34 +01:00
</box>
2022-12-02 00:42:06 +01:00
<box heading="Karte" container-class="grow" class="area-map hidden xl:block">
2022-11-22 01:55:57 +01:00
<vmap :inner="inner"></vmap>
2022-11-22 00:37:34 +01:00
</box>
</div>
</template>
<script>
export default {
data: function () {
return {
inner: {},
2022-11-22 01:55:57 +01:00
tabs: {
stammkontakt: {
children: {
stamm: 'Stammdaten',
kontakt: 'Kontakt',
},
active: 'stamm',
},
praesystem: {
children: {
system: 'System',
2022-11-29 21:03:28 +01:00
prae: 'Prävention',
2022-11-22 01:55:57 +01:00
},
active: 'system',
},
2022-12-02 00:42:06 +01:00
membershipcourse: {
children: {
membership: 'Mitgliedshaften',
course: 'Ausbildungen',
},
active: 'membership',
},
2022-11-22 01:55:57 +01:00
},
};
},
methods: {},
props: {
data: {},
},
components: {
2022-11-24 00:22:01 +01:00
stamm: () => import(/* webpackChunkName: "member" */ './boxes/Stamm'),
kontakt: () => import(/* webpackChunkName: "member" */ './boxes/Kontakt'),
prae: () => import(/* webpackChunkName: "member" */ './boxes/Prae'),
courses: () => import(/* webpackChunkName: "member" */ './boxes/Courses'),
system: () => import(/* webpackChunkName: "member" */ './boxes/System'),
payments: () => import(/* webpackChunkName: "member" */ './boxes/Payments'),
memberships: () => import(/* webpackChunkName: "member" */ './boxes/Memberships'),
vmap: () => import(/* webpackChunkName: "member" */ './boxes/Vmap'),
tabs: () => import(/* webpackChunkName: "member" */ './Tabs'),
},
created() {
this.inner = this.data;
},
};
</script>
<style scoped>
.this-grid {
2022-11-22 00:37:34 +01:00
grid-template-areas:
2022-11-22 01:55:57 +01:00
'stammkontakt'
'praesystem'
'courses'
'memberships'
'payments';
2022-11-22 01:55:57 +01:00
grid-template-columns: 1fr;
}
2022-12-02 00:42:06 +01:00
@media screen and (min-width: 1280px) {
2022-11-22 01:55:57 +01:00
.this-grid {
grid-template-areas:
'stamm kontakt praev system'
2022-12-02 00:42:06 +01:00
'membershipcourse membershipcourse membershipcourse membershipcourse'
2022-11-22 01:55:57 +01:00
'payments payments map map';
grid-template-columns: max-content max-content max-content 1fr;
}
2022-11-22 00:37:34 +01:00
}
.area-stamm {
grid-area: stamm;
}
.area-kontakt {
grid-area: kontakt;
}
2022-11-22 01:55:57 +01:00
.area-praev {
grid-area: praev;
2022-11-22 00:37:34 +01:00
}
.area-courses {
grid-area: courses;
}
.area-system {
grid-area: system;
}
.area-memberships {
grid-area: memberships;
}
.area-payments {
grid-area: payments;
}
.area-map {
grid-area: map;
}
2022-11-22 01:55:57 +01:00
.area-stammkontakt {
grid-area: stammkontakt;
}
2022-12-02 00:42:06 +01:00
.area-membershipcourse {
grid-area: membershipcourse;
}
.area-praesystem {
grid-area: praesystem;
}
</style>