|
|
@@ -11,41 +11,41 @@
|
|
|
<v-container v-if="location === 'home'">
|
|
|
<v-row>
|
|
|
<!-- Une personne -->
|
|
|
- <v-col cols="12" md="6" v-if="ability.can('manage', 'users')">
|
|
|
+ <v-col v-if="ability.can('manage', 'users')" cols="12" md="6">
|
|
|
<LayoutHeaderUniversalCreationCard
|
|
|
- @click="onCardClick('access')"
|
|
|
title="a_person"
|
|
|
text-content="add_new_person_student"
|
|
|
icon="fa fa-user"
|
|
|
+ @click="onCardClick('access')"
|
|
|
/>
|
|
|
</v-col>
|
|
|
<v-col
|
|
|
- cols="12"
|
|
|
- md="6"
|
|
|
v-if="
|
|
|
ability.can('display', 'agenda_page') &&
|
|
|
(ability.can('display', 'course_page') ||
|
|
|
ability.can('display', 'exam_page') ||
|
|
|
ability.can('display', 'pedagogics_project_page'))
|
|
|
"
|
|
|
+ cols="12"
|
|
|
+ md="6"
|
|
|
>
|
|
|
<!-- Un évènement -->
|
|
|
<LayoutHeaderUniversalCreationCard
|
|
|
- @click="onCardClick('event')"
|
|
|
title="an_event"
|
|
|
text-content="add_an_event_course"
|
|
|
icon="fa fa-calendar"
|
|
|
+ @click="onCardClick('event')"
|
|
|
/>
|
|
|
</v-col>
|
|
|
|
|
|
<!-- Autre évènement -->
|
|
|
<v-col
|
|
|
- cols="12"
|
|
|
- md="6"
|
|
|
v-else-if="
|
|
|
ability.can('display', 'agenda_page') &&
|
|
|
ability.can('manage', 'events')
|
|
|
"
|
|
|
+ cols="12"
|
|
|
+ md="6"
|
|
|
>
|
|
|
<LayoutHeaderUniversalCreationCard
|
|
|
to="event-params"
|
|
|
@@ -59,29 +59,25 @@
|
|
|
|
|
|
<!-- Une correspondance -->
|
|
|
<v-col
|
|
|
- cols="12"
|
|
|
- md="6"
|
|
|
v-if="
|
|
|
ability.can('display', 'message_send_page') &&
|
|
|
(ability.can('manage', 'emails') ||
|
|
|
ability.can('manage', 'mails') ||
|
|
|
ability.can('manage', 'texto'))
|
|
|
"
|
|
|
+ cols="12"
|
|
|
+ md="6"
|
|
|
>
|
|
|
<LayoutHeaderUniversalCreationCard
|
|
|
- @click="onCardClick('message')"
|
|
|
title="a_correspondence"
|
|
|
text-content="send_email_letter"
|
|
|
icon="fa fa-envelope"
|
|
|
+ @click="onCardClick('message')"
|
|
|
/>
|
|
|
</v-col>
|
|
|
|
|
|
<!-- Un matériel (direct link) -->
|
|
|
- <v-col
|
|
|
- cols="12"
|
|
|
- md="6"
|
|
|
- v-if="ability.can('manage', 'equipments')"
|
|
|
- >
|
|
|
+ <v-col v-if="ability.can('manage', 'equipments')" cols="12" md="6">
|
|
|
<LayoutHeaderUniversalCreationCard
|
|
|
title="a_materiel"
|
|
|
text-content="add_any_type_material"
|
|
|
@@ -99,11 +95,7 @@
|
|
|
<v-container v-if="location === 'access'">
|
|
|
<v-row>
|
|
|
<!-- Un adhérent -->
|
|
|
- <v-col
|
|
|
- cols="12"
|
|
|
- md="6"
|
|
|
- v-if="isLaw1901"
|
|
|
- >
|
|
|
+ <v-col v-if="isLaw1901" cols="12" md="6">
|
|
|
<LayoutHeaderUniversalCreationCard
|
|
|
title="an_adherent"
|
|
|
text-content="adherent_text_creation_card"
|
|
|
@@ -114,11 +106,7 @@
|
|
|
</v-col>
|
|
|
|
|
|
<!-- Un membre du CA -->
|
|
|
- <v-col
|
|
|
- cols="12"
|
|
|
- md="6"
|
|
|
- v-if="isLaw1901"
|
|
|
- >
|
|
|
+ <v-col v-if="isLaw1901" cols="12" md="6">
|
|
|
<LayoutHeaderUniversalCreationCard
|
|
|
title="a_ca_member"
|
|
|
text-content="ca_member_text_creation_card"
|
|
|
@@ -184,7 +172,7 @@
|
|
|
</v-col>
|
|
|
|
|
|
<!-- Une inscription en ligne -->
|
|
|
- <v-col cols="12" md="6" v-if="hasOnlineRegistrationModule">
|
|
|
+ <v-col v-if="hasOnlineRegistrationModule" cols="12" md="6">
|
|
|
<LayoutHeaderUniversalCreationCard
|
|
|
title="online_registration"
|
|
|
text-content="online_registration_text_creation_card"
|
|
|
@@ -211,7 +199,11 @@
|
|
|
<v-container v-if="location === 'event'">
|
|
|
<v-row>
|
|
|
<!-- Un cours -->
|
|
|
- <v-col cols="12" md="6" v-if="ability.can('display', 'course_page')">
|
|
|
+ <v-col
|
|
|
+ v-if="ability.can('display', 'course_page')"
|
|
|
+ cols="12"
|
|
|
+ md="6"
|
|
|
+ >
|
|
|
<LayoutHeaderUniversalCreationCard
|
|
|
title="course"
|
|
|
text-content="course_text_creation_card"
|
|
|
@@ -222,7 +214,7 @@
|
|
|
</v-col>
|
|
|
|
|
|
<!-- Un examen -->
|
|
|
- <v-col cols="12" md="6" v-if="ability.can('display', 'exam_page')">
|
|
|
+ <v-col v-if="ability.can('display', 'exam_page')" cols="12" md="6">
|
|
|
<LayoutHeaderUniversalCreationCard
|
|
|
title="exam"
|
|
|
text-content="exam_text_creation_card"
|
|
|
@@ -234,8 +226,9 @@
|
|
|
|
|
|
<!-- Un projet pédagogique -->
|
|
|
<v-col
|
|
|
- cols="12" md="6"
|
|
|
v-if="ability.can('display', 'pedagogics_project_page')"
|
|
|
+ cols="12"
|
|
|
+ md="6"
|
|
|
>
|
|
|
<LayoutHeaderUniversalCreationCard
|
|
|
title="educational_services"
|
|
|
@@ -247,7 +240,7 @@
|
|
|
</v-col>
|
|
|
|
|
|
<!-- Un autre évènement -->
|
|
|
- <v-col cols="12" md="6" v-if="ability.can('manage', 'events')">
|
|
|
+ <v-col v-if="ability.can('manage', 'events')" cols="12" md="6">
|
|
|
<LayoutHeaderUniversalCreationCard
|
|
|
to="event-params"
|
|
|
href="/calendar/create/events"
|
|
|
@@ -264,7 +257,7 @@
|
|
|
<v-container v-if="location === 'message'">
|
|
|
<v-row>
|
|
|
<!-- Un email -->
|
|
|
- <v-col cols="12" md="6" v-if="ability.can('manage', 'emails')">
|
|
|
+ <v-col v-if="ability.can('manage', 'emails')" cols="12" md="6">
|
|
|
<LayoutHeaderUniversalCreationCard
|
|
|
title="an_email"
|
|
|
text-content="email_text_creation_card"
|
|
|
@@ -275,7 +268,7 @@
|
|
|
</v-col>
|
|
|
|
|
|
<!-- Un courrier -->
|
|
|
- <v-col cols="12" md="6" v-if="ability.can('manage', 'mails')">
|
|
|
+ <v-col v-if="ability.can('manage', 'mails')" cols="12" md="6">
|
|
|
<LayoutHeaderUniversalCreationCard
|
|
|
title="a_letter"
|
|
|
text-content="letter_text_creation_card"
|
|
|
@@ -286,7 +279,7 @@
|
|
|
</v-col>
|
|
|
|
|
|
<!-- Un SMS -->
|
|
|
- <v-col cols="12" md="6" v-if="ability.can('manage', 'texto')">
|
|
|
+ <v-col v-if="ability.can('manage', 'texto')" cols="12" md="6">
|
|
|
<LayoutHeaderUniversalCreationCard
|
|
|
title="a_sms"
|
|
|
text-content="sms_text_creation_card"
|
|
|
@@ -311,8 +304,8 @@
|
|
|
</template>
|
|
|
<script setup lang="ts">
|
|
|
import { ref, computed } from 'vue'
|
|
|
-import { useOrganizationProfileStore } from '~/stores/organizationProfile'
|
|
|
import { useAbility } from '@casl/vue'
|
|
|
+import { useOrganizationProfileStore } from '~/stores/organizationProfile'
|
|
|
|
|
|
const props = defineProps({
|
|
|
/**
|