|
@@ -1,123 +1,121 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <NuxtLayout name="parameters">
|
|
|
|
|
- <LayoutContainer>
|
|
|
|
|
- <UiLoadingPanel v-if="pending" />
|
|
|
|
|
- <UiForm
|
|
|
|
|
- v-else
|
|
|
|
|
- :model="Parameters"
|
|
|
|
|
- :entity="parameters"
|
|
|
|
|
- >
|
|
|
|
|
- <v-row>
|
|
|
|
|
- <v-col cols="6">
|
|
|
|
|
- <div class="mb-6">
|
|
|
|
|
- <div>{{ $t('your_opentalent_website_address_is')}} : </div>
|
|
|
|
|
- <div class="ma-2 text-primary">
|
|
|
|
|
- <strong>{{ organizationProfile.website }}</strong>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <LayoutContainer>
|
|
|
|
|
+ <UiLoadingPanel v-if="pending" />
|
|
|
|
|
+ <UiForm
|
|
|
|
|
+ v-else
|
|
|
|
|
+ :model="Parameters"
|
|
|
|
|
+ :entity="parameters"
|
|
|
|
|
+ >
|
|
|
|
|
+ <v-row>
|
|
|
|
|
+ <v-col cols="6">
|
|
|
|
|
+ <div class="mb-6">
|
|
|
|
|
+ <div>{{ $t('your_opentalent_website_address_is')}} : </div>
|
|
|
|
|
+ <div class="ma-2 text-primary">
|
|
|
|
|
+ <strong>{{ organizationProfile.website }}</strong>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="mb-6">
|
|
|
|
|
+ <div>{{ $t('your_subdomains') }} : </div>
|
|
|
|
|
+ <UiLoadingPanel v-if="subdomainsPending" />
|
|
|
|
|
+ <div v-else>
|
|
|
|
|
+ <v-table class="my-2">
|
|
|
|
|
+ <tbody>
|
|
|
|
|
+ <tr
|
|
|
|
|
+ v-for="subdomain in subdomains.items"
|
|
|
|
|
+ :key="subdomain.id"
|
|
|
|
|
+ :title="subdomain.subdomain"
|
|
|
|
|
+ class="subdomainItem"
|
|
|
|
|
+ @click="goToEditPage(subdomain.id)"
|
|
|
|
|
+ >
|
|
|
|
|
+ <td>{{ subdomain.subdomain }}</td>
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <span v-if="subdomain.active">
|
|
|
|
|
+ <v-icon class="text-success icon">
|
|
|
|
|
+ fa-solid fa-check
|
|
|
|
|
+ </v-icon> {{ $t('active') }}
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </td>
|
|
|
|
|
|
|
|
- <div class="mb-6">
|
|
|
|
|
- <div>{{ $t('your_subdomains') }} : </div>
|
|
|
|
|
- <UiLoadingPanel v-if="subdomainsPending" />
|
|
|
|
|
- <div v-else>
|
|
|
|
|
- <v-table class="my-2">
|
|
|
|
|
- <tbody>
|
|
|
|
|
- <tr
|
|
|
|
|
- v-for="subdomain in subdomains.items"
|
|
|
|
|
- :key="subdomain.id"
|
|
|
|
|
- :title="subdomain.subdomain"
|
|
|
|
|
- class="subdomainItem"
|
|
|
|
|
- @click="goToEditPage(subdomain.id)"
|
|
|
|
|
- >
|
|
|
|
|
- <td>{{ subdomain.subdomain }}</td>
|
|
|
|
|
- <td>
|
|
|
|
|
- <span v-if="subdomain.active">
|
|
|
|
|
- <v-icon class="text-success icon">
|
|
|
|
|
- fa-solid fa-check
|
|
|
|
|
- </v-icon> {{ $t('active') }}
|
|
|
|
|
- </span>
|
|
|
|
|
- </td>
|
|
|
|
|
-
|
|
|
|
|
- </tr>
|
|
|
|
|
-
|
|
|
|
|
- </tbody>
|
|
|
|
|
-
|
|
|
|
|
- </v-table>
|
|
|
|
|
|
|
+ </tr>
|
|
|
|
|
+
|
|
|
|
|
+ </tbody>
|
|
|
|
|
+
|
|
|
|
|
+ </v-table>
|
|
|
|
|
|
|
|
- <v-btn
|
|
|
|
|
- :disabled="!canAddNewSubdomain"
|
|
|
|
|
- class="my-2"
|
|
|
|
|
- @click="onAddSubdomainClick"
|
|
|
|
|
- >
|
|
|
|
|
- {{ $t('record_a_new_subdomain')}}
|
|
|
|
|
- </v-btn>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </v-col>
|
|
|
|
|
-
|
|
|
|
|
- <v-col cols="6">
|
|
|
|
|
- <!-- les publicationDirectors sont des entités Access -->
|
|
|
|
|
- <UiInputAutocompleteAccesses
|
|
|
|
|
- v-model="parameters.publicationDirectors"
|
|
|
|
|
- field="publicationDirectors"
|
|
|
|
|
- multiple
|
|
|
|
|
- chips
|
|
|
|
|
- />
|
|
|
|
|
-
|
|
|
|
|
- <div class="my-8" v-if="!organizationProfile.isCmf">
|
|
|
|
|
- <v-btn
|
|
|
|
|
- v-if="!parameters.desactivateOpentalentSiteWeb"
|
|
|
|
|
- color="error"
|
|
|
|
|
- @click="showWebsiteDeactivationDialog=true"
|
|
|
|
|
- >
|
|
|
|
|
- {{ $t('deactivateOpentalentSiteWeb') }}
|
|
|
|
|
- </v-btn>
|
|
|
|
|
<v-btn
|
|
<v-btn
|
|
|
- v-else
|
|
|
|
|
- color="primary"
|
|
|
|
|
- @click="reactivateWebsite"
|
|
|
|
|
|
|
+ :disabled="!canAddNewSubdomain"
|
|
|
|
|
+ class="my-2"
|
|
|
|
|
+ @click="onAddSubdomainClick"
|
|
|
>
|
|
>
|
|
|
- {{ $t('reactivateOpentalentSiteWeb') }}
|
|
|
|
|
|
|
+ {{ $t('record_a_new_subdomain')}}
|
|
|
</v-btn>
|
|
</v-btn>
|
|
|
-
|
|
|
|
|
- <LazyLayoutDialog :show="showWebsiteDeactivationDialog">
|
|
|
|
|
- <template #dialogTitle>
|
|
|
|
|
- {{ $t('please_confirm')}}
|
|
|
|
|
- </template>
|
|
|
|
|
- <template #dialogText>
|
|
|
|
|
- <v-col>
|
|
|
|
|
- <div>{{ $t('yourOpentalentWebsiteWillBeDeactivatedOnceYouLlHaveSaved')}}.</div>
|
|
|
|
|
- <span>{{ $t('doYouWantToContinue')}} ?</span>
|
|
|
|
|
- </v-col>
|
|
|
|
|
- </template>
|
|
|
|
|
- <template #dialogBtn>
|
|
|
|
|
- <v-btn
|
|
|
|
|
- class="theme-neutral-soft mr-4"
|
|
|
|
|
- @click="showWebsiteDeactivationDialog=false"
|
|
|
|
|
- >
|
|
|
|
|
- {{ $t('cancel') }}
|
|
|
|
|
- </v-btn>
|
|
|
|
|
- <v-btn
|
|
|
|
|
- class="theme-primary"
|
|
|
|
|
- @click="showWebsiteDeactivationDialog=false; deactivateWebsite()"
|
|
|
|
|
- >
|
|
|
|
|
- {{ $t('yes') }}
|
|
|
|
|
- </v-btn>
|
|
|
|
|
- </template>
|
|
|
|
|
- </LazyLayoutDialog>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <div>
|
|
|
|
|
- <UiInputText
|
|
|
|
|
- v-model="parameters.otherWebsite"
|
|
|
|
|
- field="otherWebsite"
|
|
|
|
|
- />
|
|
|
|
|
</div>
|
|
</div>
|
|
|
- </v-col>
|
|
|
|
|
- </v-row>
|
|
|
|
|
- </UiForm>
|
|
|
|
|
- </LayoutContainer>
|
|
|
|
|
- </NuxtLayout>
|
|
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </v-col>
|
|
|
|
|
+
|
|
|
|
|
+ <v-col cols="6">
|
|
|
|
|
+ <!-- les publicationDirectors sont des entités Access -->
|
|
|
|
|
+ <UiInputAutocompleteAccesses
|
|
|
|
|
+ v-model="parameters.publicationDirectors"
|
|
|
|
|
+ field="publicationDirectors"
|
|
|
|
|
+ multiple
|
|
|
|
|
+ chips
|
|
|
|
|
+ />
|
|
|
|
|
+
|
|
|
|
|
+ <div class="my-8" v-if="!organizationProfile.isCmf">
|
|
|
|
|
+ <v-btn
|
|
|
|
|
+ v-if="!parameters.desactivateOpentalentSiteWeb"
|
|
|
|
|
+ color="error"
|
|
|
|
|
+ @click="showWebsiteDeactivationDialog=true"
|
|
|
|
|
+ >
|
|
|
|
|
+ {{ $t('deactivateOpentalentSiteWeb') }}
|
|
|
|
|
+ </v-btn>
|
|
|
|
|
+ <v-btn
|
|
|
|
|
+ v-else
|
|
|
|
|
+ color="primary"
|
|
|
|
|
+ @click="reactivateWebsite"
|
|
|
|
|
+ >
|
|
|
|
|
+ {{ $t('reactivateOpentalentSiteWeb') }}
|
|
|
|
|
+ </v-btn>
|
|
|
|
|
+
|
|
|
|
|
+ <LazyLayoutDialog :show="showWebsiteDeactivationDialog">
|
|
|
|
|
+ <template #dialogTitle>
|
|
|
|
|
+ {{ $t('please_confirm')}}
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template #dialogText>
|
|
|
|
|
+ <v-col>
|
|
|
|
|
+ <div>{{ $t('yourOpentalentWebsiteWillBeDeactivatedOnceYouLlHaveSaved')}}.</div>
|
|
|
|
|
+ <span>{{ $t('doYouWantToContinue')}} ?</span>
|
|
|
|
|
+ </v-col>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template #dialogBtn>
|
|
|
|
|
+ <v-btn
|
|
|
|
|
+ class="theme-neutral-soft mr-4"
|
|
|
|
|
+ @click="showWebsiteDeactivationDialog=false"
|
|
|
|
|
+ >
|
|
|
|
|
+ {{ $t('cancel') }}
|
|
|
|
|
+ </v-btn>
|
|
|
|
|
+ <v-btn
|
|
|
|
|
+ class="theme-primary"
|
|
|
|
|
+ @click="showWebsiteDeactivationDialog=false; deactivateWebsite()"
|
|
|
|
|
+ >
|
|
|
|
|
+ {{ $t('yes') }}
|
|
|
|
|
+ </v-btn>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </LazyLayoutDialog>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <UiInputText
|
|
|
|
|
+ v-model="parameters.otherWebsite"
|
|
|
|
|
+ field="otherWebsite"
|
|
|
|
|
+ />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </v-col>
|
|
|
|
|
+ </v-row>
|
|
|
|
|
+ </UiForm>
|
|
|
|
|
+ </LayoutContainer>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
@@ -127,14 +125,6 @@ import {useEntityFetch} from "~/composables/data/useEntityFetch";
|
|
|
import {AsyncData} from "#app";
|
|
import {AsyncData} from "#app";
|
|
|
import Subdomain from "~/models/Organization/Subdomain";
|
|
import Subdomain from "~/models/Organization/Subdomain";
|
|
|
|
|
|
|
|
-/**
|
|
|
|
|
- * Disable the default layout, the page will use the layout defined with <NuxtLayout />
|
|
|
|
|
- * @see https://nuxt.com/docs/guide/directory-structure/layouts#overriding-a-layout-on-a-per-page-basis
|
|
|
|
|
- */
|
|
|
|
|
-definePageMeta({
|
|
|
|
|
- layout: false,
|
|
|
|
|
-});
|
|
|
|
|
-
|
|
|
|
|
const i18n = useI18n()
|
|
const i18n = useI18n()
|
|
|
|
|
|
|
|
const { fetch, fetchCollection } = useEntityFetch()
|
|
const { fetch, fetchCollection } = useEntityFetch()
|