Olivier Massot 8 hónapja
szülő
commit
6067fc393b
3 módosított fájl, 28 hozzáadás és 20 törlés
  1. 11 12
      components/Dialog/Trial/StopConfirmation.vue
  2. 13 3
      lang/fr.json
  3. 4 5
      pages/subscription.vue

+ 11 - 12
components/Dialog/Trial/StopConfirmation.vue

@@ -1,17 +1,17 @@
 <template>
   <LazyLayoutDialog :show="show" theme="danger">
     <template #dialogType>{{ $t('important') }}</template>
-    <template #dialogTitle>Vous souhaitez arrêter votre période d’essai Opentalent Artist Premium ? </template>
+    <template #dialogTitle>{{ $t('you_want_to_stop_your_premium_trial_period') }} ? </template>
     <template #dialogText>
       <v-card-text class="text">
-        <p>En choisissant d’arrêter, votre compte reviendra automatiquement à la version précédente, sans perte de vos données essentielles. </p>
-        <p><strong>Que se passe-t-il si vous arrêtez votre période d’essai ?</strong></p>
+        <p>$t('stop_trial_period_warning_1')</p>
+        <p><strong>$t('stop_trial_period_warning_2')</strong></p>
         <ul>
-          <li>Les fonctionnalités premium de l’essai ne seront plus accessibles.</li>
-          <li>Vous conserverez toutes les informations et configurations que vous avez ajoutées pendant l’essai.</li>
-          <li>Vous pourrez toujours gérer vos activités grâce aux fonctionnalités de la version de base.</li>
+          <li>$t('stop_trial_period_warning_3')</li>
+          <li>$t('stop_trial_period_warning_4')</li>
+          <li>$t('stop_trial_period_warning_5')</li>
         </ul>
-        <p>Si vous souhaitez continuer à profiter des avantages complets d’Opentalent Artist, vous pouvez souscrire à une licence à tout moment.</p>
+        <p>$t('stop_trial_period_warning_6')</p>
       </v-card-text>
     </template>
     <template #dialogBtn>
@@ -19,7 +19,7 @@
         {{ $t('cancel') }}
       </v-btn>
       <v-btn class="mr-4 submitBtn theme-danger" @click="stopTrial">
-        Arrêter l'essai
+        $t('stop_trial')
       </v-btn>
     </template>
   </LazyLayoutDialog>
@@ -46,13 +46,12 @@ const stopTrial = () => {
 </script>
 
 <style scoped lang="scss">
-  .text{
-    font-size: 13px;
-    p{
+  .text {
+    p {
       margin-bottom: 10px;
     }
 
-    ul{
+    ul {
       padding-left: 20px;
       margin-bottom: 10px;
     }

+ 13 - 3
lang/fr.json

@@ -6,8 +6,8 @@
   "discover_offer": "Découvrir toutes les offres",
   "try_premium": "Essayer Opentalent Artist Premium gratuitement pendant 30J",
   "opentalent_options": "Les options Opentalent",
-  "opentalent_offer": "Les offres Opentalent",
-  "service_detail": "Détails des services",
+  "opentalent_offers": "Les offres Opentalent",
+  "service_detail": "Détail des services",
   "my_settings_page": "Mes paramètres",
   "allow_report_message": "Je souhaite recevoir les rapports d'envoi des emails que j'envoie",
   "my-settings_breadcrumbs": "Mes paramètres",
@@ -126,6 +126,7 @@
   "BIG_BAND": "Big band",
   "PRODUCT_ARTIST": "Opentalent Artist",
   "PRODUCT_ARTIST_PREMIUM": "Opentalent Artist Premium",
+  "PRODUCT_ARTIST_PREMIUM_TRIAL": "Opentalent Artist Premium (Essai)",
   "PRODUCT_SCHOOL": "Opentalent School",
   "PRODUCT_SCHOOL_PREMIUM": "Opentalent School Premium",
   "PRODUCT_MANAGER": "Opentalent Manager",
@@ -710,5 +711,14 @@
   "no_admin_access_recorded": "Aucun compte super-admin enregistré",
   "redirecting": "Redirection en cours",
   "Invalid profile hash": "Le profil de l'utilisateur a été modifié ailleurs, veuillez rafraichir la page et réessayer.",
-  "An error occured": "Une erreur s'est produite."
+  "An error occured": "Une erreur s'est produite.",
+  "you_want_to_stop_your_premium_trial_period": "Vous souhaitez arrêter votre période d’essai Opentalent Artist Premium",
+  "stop_trial_period_warning_1": "En choisissant d’arrêter, votre compte reviendra automatiquement à la version précédente, sans perte de vos données essentielles.",
+  "stop_trial_period_warning_2": "Que se passe-t-il si vous arrêtez votre période d’essai ?",
+  "stop_trial_period_warning_3": "Les fonctionnalités premium de l’essai ne seront plus accessibles.",
+  "stop_trial_period_warning_4": "Vous conserverez toutes les informations et configurations que vous avez ajoutées pendant l’essai.",
+  "stop_trial_period_warning_5": "Vous pourrez toujours gérer vos activités grâce aux fonctionnalités de la version de base.",
+  "stop_trial_period_warning_6": "Si vous souhaitez continuer à profiter des avantages complets d’Opentalent Artist, vous pouvez souscrire à une licence à tout moment.",
+  "stop_trial": "Arrêter l'essai",
+  "trial_ongoing": "En cours d'essai"
 }

+ 4 - 5
pages/subscription.vue

@@ -6,12 +6,11 @@ Page 'Mon abonnement'
 <template>
   <LayoutContainer>
       <v-expansion-panels v-model="openedPanels" :multiple="true">
-        <UiExpansionPanel :title="$t('subscription_page')" icon="fas fa-info">
+        <UiExpansionPanel title="subscription_page" icon="fas fa-info">
           <v-container fluid class="container">
             <v-row>
               <v-col cols="12" lg="6" sm="12">
                 {{ $t('version') }} : <strong>{{ dolibarrAccount ? $t(dolibarrAccount.product) : '-' }}</strong>
-                <span v-if="organizationProfile.isTrialActive"> - En cours d'essai: <strong>{{$t('PRODUCT_ARTIST_PREMIUM')}} - J-{{organizationProfile.trialCountDown}}</strong></span>
               </v-col>
               <v-col cols="12" lg="6" sm="12">
                 {{ $t('client_id') }} : {{ dolibarrAccount ? dolibarrAccount.clientNumber : '-' }}
@@ -20,7 +19,7 @@ Page 'Mon abonnement'
           </v-container>
         </UiExpansionPanel>
 
-        <UiExpansionPanel :title="$t('service_detail')" icon="fas fa-info"
+        <UiExpansionPanel title="service_detail" icon="fas fa-info"
                           v-if="dolibarrAccount && dolibarrAccount.contract"
         >
           <v-container fluid class="container">
@@ -97,7 +96,7 @@ Page 'Mon abonnement'
           </v-container>
         </UiExpansionPanel>
 
-        <UiExpansionPanel :title="$t('opentalent_offer')" icon="fas fa-plus" v-if="!organizationProfile.isManagerProduct">
+        <UiExpansionPanel title="opentalent_offers" icon="fas fa-plus" v-if="!organizationProfile.isManagerProduct">
           <v-container fluid class="container">
             <v-row class="offer_title" v-if="!md && mdAndUp && !organizationProfile.isSchool">
               <v-col cols="12" :lg="organizationProfile.isArtistPremiumProduct ? 3 : 6" sm="12">
@@ -230,7 +229,7 @@ Page 'Mon abonnement'
           </v-container>
         </UiExpansionPanel>
 
-        <UiExpansionPanel :title="$t('opentalent_options')" icon="fas fa-plus">
+        <UiExpansionPanel title="opentalent_options" icon="fas fa-plus">
           <v-container fluid class="container card-container">
             <v-row cols="12" >
               <v-col lg="3" sm="12" md="6">