|
@@ -24,23 +24,23 @@ Page 'Mon abonnement'
|
|
|
</UiExpansionPanel>
|
|
</UiExpansionPanel>
|
|
|
|
|
|
|
|
<UiExpansionPanel
|
|
<UiExpansionPanel
|
|
|
|
|
+ v-if="dolibarrAccount && dolibarrAccount.contract"
|
|
|
title="service_detail"
|
|
title="service_detail"
|
|
|
icon="fas fa-info"
|
|
icon="fas fa-info"
|
|
|
- v-if="dolibarrAccount && dolibarrAccount.contract"
|
|
|
|
|
>
|
|
>
|
|
|
<v-container fluid class="container">
|
|
<v-container fluid class="container">
|
|
|
<v-row>
|
|
<v-row>
|
|
|
<v-col
|
|
<v-col
|
|
|
- cols="12"
|
|
|
|
|
- lg="12"
|
|
|
|
|
v-for="line in dolibarrAccount.contract.lines"
|
|
v-for="line in dolibarrAccount.contract.lines"
|
|
|
:key="line.id"
|
|
:key="line.id"
|
|
|
|
|
+ cols="12"
|
|
|
|
|
+ lg="12"
|
|
|
>
|
|
>
|
|
|
<strong>{{ line.serviceLabel }}</strong> - {{ $t('until') }} :
|
|
<strong>{{ line.serviceLabel }}</strong> - {{ $t('until') }} :
|
|
|
{{ $d(line.dateEnd) }}
|
|
{{ $d(line.dateEnd) }}
|
|
|
</v-col>
|
|
</v-col>
|
|
|
|
|
|
|
|
- <v-col cols="12" lg="12" v-if="ability.can('manage', 'texto')">
|
|
|
|
|
|
|
+ <v-col v-if="ability.can('manage', 'texto')" cols="12" lg="12">
|
|
|
<strong>{{ $t('remaining_sms_credit') }}</strong> -
|
|
<strong>{{ $t('remaining_sms_credit') }}</strong> -
|
|
|
<span
|
|
<span
|
|
|
v-if="
|
|
v-if="
|
|
@@ -98,8 +98,8 @@ Page 'Mon abonnement'
|
|
|
</td>
|
|
</td>
|
|
|
<td>
|
|
<td>
|
|
|
<a
|
|
<a
|
|
|
- @click="downloadDolibarrBill(bill.ref)"
|
|
|
|
|
class="clickable"
|
|
class="clickable"
|
|
|
|
|
+ @click="downloadDolibarrBill(bill.ref)"
|
|
|
>
|
|
>
|
|
|
{{ $t('download') }}
|
|
{{ $t('download') }}
|
|
|
</a>
|
|
</a>
|
|
@@ -112,14 +112,14 @@ Page 'Mon abonnement'
|
|
|
</UiExpansionPanel>
|
|
</UiExpansionPanel>
|
|
|
|
|
|
|
|
<UiExpansionPanel
|
|
<UiExpansionPanel
|
|
|
|
|
+ v-if="!organizationProfile.isManagerProduct"
|
|
|
title="opentalent_offers"
|
|
title="opentalent_offers"
|
|
|
icon="fas fa-plus"
|
|
icon="fas fa-plus"
|
|
|
- v-if="!organizationProfile.isManagerProduct"
|
|
|
|
|
>
|
|
>
|
|
|
<v-container fluid class="container">
|
|
<v-container fluid class="container">
|
|
|
<v-row
|
|
<v-row
|
|
|
- class="offer_title"
|
|
|
|
|
v-if="!md && mdAndUp && !organizationProfile.isSchool"
|
|
v-if="!md && mdAndUp && !organizationProfile.isSchool"
|
|
|
|
|
+ class="offer_title"
|
|
|
>
|
|
>
|
|
|
<v-col
|
|
<v-col
|
|
|
cols="12"
|
|
cols="12"
|
|
@@ -146,18 +146,18 @@ Page 'Mon abonnement'
|
|
|
|
|
|
|
|
<v-row class="card-container">
|
|
<v-row class="card-container">
|
|
|
<v-col
|
|
<v-col
|
|
|
- lg="4"
|
|
|
|
|
- sm="12"
|
|
|
|
|
- md="6"
|
|
|
|
|
v-if="
|
|
v-if="
|
|
|
organizationProfile.isArtistProduct ||
|
|
organizationProfile.isArtistProduct ||
|
|
|
organizationProfile.isTrialActive
|
|
organizationProfile.isTrialActive
|
|
|
"
|
|
"
|
|
|
|
|
+ lg="4"
|
|
|
|
|
+ sm="12"
|
|
|
|
|
+ md="6"
|
|
|
>
|
|
>
|
|
|
<LayoutPagesSubscriptionCard
|
|
<LayoutPagesSubscriptionCard
|
|
|
class="artistCard"
|
|
class="artistCard"
|
|
|
title="Logiciel Artist Standard"
|
|
title="Logiciel Artist Standard"
|
|
|
- :extraHeader="
|
|
|
|
|
|
|
+ :extra-header="
|
|
|
organizationProfile.isArtistProduct
|
|
organizationProfile.isArtistProduct
|
|
|
? 'Votre version actuelle'
|
|
? 'Votre version actuelle'
|
|
|
: undefined
|
|
: undefined
|
|
@@ -181,11 +181,11 @@ Page 'Mon abonnement'
|
|
|
<template #card.action>
|
|
<template #card.action>
|
|
|
<v-row>
|
|
<v-row>
|
|
|
<v-col
|
|
<v-col
|
|
|
- cols="12"
|
|
|
|
|
v-if="
|
|
v-if="
|
|
|
!organizationProfile.isArtistProduct &&
|
|
!organizationProfile.isArtistProduct &&
|
|
|
!organizationProfile.isTrialActive
|
|
!organizationProfile.isTrialActive
|
|
|
"
|
|
"
|
|
|
|
|
+ cols="12"
|
|
|
>
|
|
>
|
|
|
<v-btn
|
|
<v-btn
|
|
|
class="theme-artist btn"
|
|
class="theme-artist btn"
|
|
@@ -214,11 +214,11 @@ Page 'Mon abonnement'
|
|
|
</LayoutPagesSubscriptionCard>
|
|
</LayoutPagesSubscriptionCard>
|
|
|
</v-col>
|
|
</v-col>
|
|
|
|
|
|
|
|
- <v-col lg="4" sm="12" md="6" v-if="organizationProfile.isArtist">
|
|
|
|
|
|
|
+ <v-col v-if="organizationProfile.isArtist" lg="4" sm="12" md="6">
|
|
|
<LayoutPagesSubscriptionCard
|
|
<LayoutPagesSubscriptionCard
|
|
|
class="artistCard"
|
|
class="artistCard"
|
|
|
title="Logiciel Artist Premium*"
|
|
title="Logiciel Artist Premium*"
|
|
|
- :extraHeader="
|
|
|
|
|
|
|
+ :extra-header="
|
|
|
organizationProfile.isArtistPremiumProduct
|
|
organizationProfile.isArtistPremiumProduct
|
|
|
? organizationProfile.isTrialActive
|
|
? organizationProfile.isTrialActive
|
|
|
? `Version en cours d'essai J-${organizationProfile.trialCountDown}`
|
|
? `Version en cours d'essai J-${organizationProfile.trialCountDown}`
|
|
@@ -230,11 +230,11 @@ Page 'Mon abonnement'
|
|
|
>
|
|
>
|
|
|
<template #card.subTitle>
|
|
<template #card.subTitle>
|
|
|
<div
|
|
<div
|
|
|
- class="priceBlock"
|
|
|
|
|
v-if="
|
|
v-if="
|
|
|
!organizationProfile.isArtistPremiumProduct ||
|
|
!organizationProfile.isArtistPremiumProduct ||
|
|
|
organizationProfile.isTrialActive
|
|
organizationProfile.isTrialActive
|
|
|
"
|
|
"
|
|
|
|
|
+ class="priceBlock"
|
|
|
>
|
|
>
|
|
|
<span class="price">{{
|
|
<span class="price">{{
|
|
|
organizationProfile.isCmf
|
|
organizationProfile.isCmf
|
|
@@ -247,12 +247,12 @@ Page 'Mon abonnement'
|
|
|
<template #card.action>
|
|
<template #card.action>
|
|
|
<v-row>
|
|
<v-row>
|
|
|
<v-col
|
|
<v-col
|
|
|
- cols="12"
|
|
|
|
|
v-if="
|
|
v-if="
|
|
|
!organizationProfile.isArtistPremiumProduct &&
|
|
!organizationProfile.isArtistPremiumProduct &&
|
|
|
(accessProfileStore.isAdmin ||
|
|
(accessProfileStore.isAdmin ||
|
|
|
accessProfileStore.isCaMember)
|
|
accessProfileStore.isCaMember)
|
|
|
"
|
|
"
|
|
|
|
|
+ cols="12"
|
|
|
>
|
|
>
|
|
|
<v-btn class="btn trialBtn" @click="startTrial">
|
|
<v-btn class="btn trialBtn" @click="startTrial">
|
|
|
{{ $t('try_premium_version') }}
|
|
{{ $t('try_premium_version') }}
|
|
@@ -260,13 +260,13 @@ Page 'Mon abonnement'
|
|
|
</v-btn>
|
|
</v-btn>
|
|
|
</v-col>
|
|
</v-col>
|
|
|
<v-col
|
|
<v-col
|
|
|
- cols="12"
|
|
|
|
|
v-if="
|
|
v-if="
|
|
|
(!organizationProfile.isArtistPremiumProduct ||
|
|
(!organizationProfile.isArtistPremiumProduct ||
|
|
|
organizationProfile.isTrialActive) &&
|
|
organizationProfile.isTrialActive) &&
|
|
|
(accessProfileStore.isAdmin ||
|
|
(accessProfileStore.isAdmin ||
|
|
|
accessProfileStore.isCaMember)
|
|
accessProfileStore.isCaMember)
|
|
|
"
|
|
"
|
|
|
|
|
+ cols="12"
|
|
|
>
|
|
>
|
|
|
<v-btn class="theme-artist btn" @click="subscription">
|
|
<v-btn class="theme-artist btn" @click="subscription">
|
|
|
{{ $t('subscribe_to_the_offer') }}
|
|
{{ $t('subscribe_to_the_offer') }}
|
|
@@ -275,12 +275,12 @@ Page 'Mon abonnement'
|
|
|
</v-col>
|
|
</v-col>
|
|
|
|
|
|
|
|
<v-col
|
|
<v-col
|
|
|
- cols="12"
|
|
|
|
|
v-if="
|
|
v-if="
|
|
|
organizationProfile.isTrialActive &&
|
|
organizationProfile.isTrialActive &&
|
|
|
(accessProfileStore.isAdmin ||
|
|
(accessProfileStore.isAdmin ||
|
|
|
accessProfileStore.isCaMember)
|
|
accessProfileStore.isCaMember)
|
|
|
"
|
|
"
|
|
|
|
|
+ cols="12"
|
|
|
>
|
|
>
|
|
|
<v-btn class="stop_btn" @click="showStopTrialDialog">
|
|
<v-btn class="stop_btn" @click="showStopTrialDialog">
|
|
|
{{ $t('stop_trial') }}
|
|
{{ $t('stop_trial') }}
|
|
@@ -298,13 +298,12 @@ Page 'Mon abonnement'
|
|
|
"
|
|
"
|
|
|
>
|
|
>
|
|
|
<br />
|
|
<br />
|
|
|
- **Tarif
|
|
|
|
|
- <span v-if="organizationProfile.isCmf"
|
|
|
|
|
|
|
+ **Tarif
|
|
|
|
|
+ <span v-if="organizationProfile.isCmf"
|
|
|
>adhérent CMF</span
|
|
>adhérent CMF</span
|
|
|
- ><span v-else>public</span> 2025. Abonnement payable
|
|
|
|
|
- annuellement.
|
|
|
|
|
|
|
+ ><span v-else>public</span> 2025. Abonnement payable
|
|
|
|
|
+ annuellement.
|
|
|
</span>
|
|
</span>
|
|
|
-
|
|
|
|
|
</span>
|
|
</span>
|
|
|
</v-col>
|
|
</v-col>
|
|
|
</v-row>
|
|
</v-row>
|
|
@@ -329,8 +328,8 @@ Page 'Mon abonnement'
|
|
|
? 'Logiciel School Premium'
|
|
? 'Logiciel School Premium'
|
|
|
: 'Logiciel School Standard'
|
|
: 'Logiciel School Standard'
|
|
|
"
|
|
"
|
|
|
- :subTitle="!organizationProfile.isSchool ? 'Sur devis' : ''"
|
|
|
|
|
- :extraHeader="
|
|
|
|
|
|
|
+ :sub-title="!organizationProfile.isSchool ? 'Sur devis' : ''"
|
|
|
|
|
+ :extra-header="
|
|
|
organizationProfile.isSchool
|
|
organizationProfile.isSchool
|
|
|
? 'Votre version actuelle'
|
|
? 'Votre version actuelle'
|
|
|
: undefined
|
|
: undefined
|
|
@@ -425,13 +424,13 @@ Page 'Mon abonnement'
|
|
|
|
|
|
|
|
<LayoutDialogTrialAlreadyDid
|
|
<LayoutDialogTrialAlreadyDid
|
|
|
:show="showDialogTrialAllReadyDid"
|
|
:show="showDialogTrialAllReadyDid"
|
|
|
- @closeDialog="showDialogTrialAllReadyDid = false"
|
|
|
|
|
|
|
+ @close-dialog="showDialogTrialAllReadyDid = false"
|
|
|
/>
|
|
/>
|
|
|
|
|
|
|
|
<LayoutDialogTrialStopConfirmation
|
|
<LayoutDialogTrialStopConfirmation
|
|
|
:show="showDialogTrialStopConfirmation"
|
|
:show="showDialogTrialStopConfirmation"
|
|
|
- @closeDialog="showDialogTrialStopConfirmation = false"
|
|
|
|
|
- @stopTrial="stopTrial"
|
|
|
|
|
|
|
+ @close-dialog="showDialogTrialStopConfirmation = false"
|
|
|
|
|
+ @stop-trial="stopTrial"
|
|
|
/>
|
|
/>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -449,12 +448,12 @@ import { useDownloadFromRoute } from '~/composables/utils/useDownloadFromRoute'
|
|
|
import { useApiLegacyRequestService } from '~/composables/data/useApiLegacyRequestService'
|
|
import { useApiLegacyRequestService } from '~/composables/data/useApiLegacyRequestService'
|
|
|
import { usePageStore } from '~/stores/page'
|
|
import { usePageStore } from '~/stores/page'
|
|
|
|
|
|
|
|
-//meta
|
|
|
|
|
|
|
+// meta
|
|
|
definePageMeta({
|
|
definePageMeta({
|
|
|
name: 'subscription_page',
|
|
name: 'subscription_page',
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
-//Get composables
|
|
|
|
|
|
|
+// Get composables
|
|
|
const ability = useAbility()
|
|
const ability = useAbility()
|
|
|
const runtimeConfig = useRuntimeConfig()
|
|
const runtimeConfig = useRuntimeConfig()
|
|
|
const { mdAndUp, md } = useDisplay()
|
|
const { mdAndUp, md } = useDisplay()
|
|
@@ -462,7 +461,7 @@ const { fetch } = useEntityFetch()
|
|
|
const i18n = useI18n()
|
|
const i18n = useI18n()
|
|
|
const { apiRequestService } = useApiLegacyRequestService()
|
|
const { apiRequestService } = useApiLegacyRequestService()
|
|
|
|
|
|
|
|
-//Init ref
|
|
|
|
|
|
|
+// Init ref
|
|
|
const showDialogTrialAllReadyDid: Ref<boolean> = ref(false)
|
|
const showDialogTrialAllReadyDid: Ref<boolean> = ref(false)
|
|
|
const showDialogTrialStopConfirmation: Ref<boolean> = ref(false)
|
|
const showDialogTrialStopConfirmation: Ref<boolean> = ref(false)
|
|
|
const openedPanels: Ref<Array<string>> = initPanel()
|
|
const openedPanels: Ref<Array<string>> = initPanel()
|
|
@@ -560,16 +559,16 @@ function getMobytInformations(): {
|
|
|
mobytStatus: Ref<MobytUserStatus | null>
|
|
mobytStatus: Ref<MobytUserStatus | null>
|
|
|
mobytPending: Ref<boolean>
|
|
mobytPending: Ref<boolean>
|
|
|
} {
|
|
} {
|
|
|
- let mobytStatus: Ref<MobytUserStatus | null> = ref(null)
|
|
|
|
|
- let mobytPending: Ref<boolean> = ref(false)
|
|
|
|
|
|
|
+ const mobytStatus: Ref<MobytUserStatus | null> = ref(null)
|
|
|
|
|
+ const mobytPending: Ref<boolean> = ref(false)
|
|
|
|
|
|
|
|
if (ability.can('manage', 'texto')) {
|
|
if (ability.can('manage', 'texto')) {
|
|
|
const { data, pending } = fetch(
|
|
const { data, pending } = fetch(
|
|
|
MobytUserStatus,
|
|
MobytUserStatus,
|
|
|
organizationProfile!.id!,
|
|
organizationProfile!.id!,
|
|
|
) as AsyncData<MobytUserStatus | null, Error | null>
|
|
) as AsyncData<MobytUserStatus | null, Error | null>
|
|
|
- mobytStatus = data
|
|
|
|
|
- mobytPending = pending
|
|
|
|
|
|
|
+ mobytStatus.value = data
|
|
|
|
|
+ mobytPending.value = pending
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return { mobytStatus, mobytPending }
|
|
return { mobytStatus, mobytPending }
|
|
@@ -685,7 +684,7 @@ const downloadDolibarrBill = (ref: string): void => {
|
|
|
border: 1px solid rgb(var(--v-theme-artist));
|
|
border: 1px solid rgb(var(--v-theme-artist));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-.btn{
|
|
|
|
|
|
|
+.btn {
|
|
|
font-size: 12px;
|
|
font-size: 12px;
|
|
|
}
|
|
}
|
|
|
|
|
|