_id.vue 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <!-- Page de détails d'un sous-domaine -->
  2. <template>
  3. <main>
  4. <LayoutContainer>
  5. <UiLoadingPanel v-if="pending" />
  6. <UiForm
  7. v-else
  8. :model="Subdomain"
  9. :entity="subdomain"
  10. >
  11. </UiForm>
  12. </LayoutContainer>
  13. <!-- <v-card class="mb-5 mt-4">-->
  14. <!-- <FormToolbar title="subdomain" icon="fa-at"/>-->
  15. <!-- <v-container fluid class="container pa-6">-->
  16. <!-- <v-row>-->
  17. <!-- <v-col cols="12" sm="12">-->
  18. <!-- <v-skeleton-loader-->
  19. <!-- v-if="fetchState.pending"-->
  20. <!-- type="text"-->
  21. <!-- />-->
  22. <!-- <div v-else>-->
  23. <!-- <div>-->
  24. <!-- {{ $t('youRegisteredTheFollowingSubdomain')}} :-->
  25. <!-- </div>-->
  26. <!-- <div class="pa-8">-->
  27. <!-- <b>{{ entry.subdomain }}</b> <span class="grey&#45;&#45;text">.opentalent.fr</span>-->
  28. <!-- </div>-->
  29. <!-- <div>-->
  30. <!-- <div v-if="entry.active">-->
  31. <!-- <v-icon class="ot_green&#45;&#45;text icon small mr-2">-->
  32. <!-- fa-solid fa-check-->
  33. <!-- </v-icon>-->
  34. <!-- {{ $t('subdomainIsCurrentlyActive') }}-->
  35. <!-- </div>-->
  36. <!-- <div v-else>-->
  37. <!-- {{ $t('doYouWantToActivateThisSubdomain') }} ?-->
  38. <!-- </div>-->
  39. <!-- </div>-->
  40. <!-- <div class="mt-6 d-flex flex-row">-->
  41. <!-- <v-btn to="/parameters/communication" class="mr-12">{{ $t('back') }}</v-btn>-->
  42. <!-- <div v-if="!entry.active">-->
  43. <!-- <v-btn color="primary" @click="activateAndQuit(entry)">{{ $t('activate') }}</v-btn>-->
  44. <!-- </div>-->
  45. <!-- </div>-->
  46. <!-- </div>-->
  47. <!-- </v-col>-->
  48. <!-- </v-row>-->
  49. <!-- </v-container>-->
  50. <!-- </v-card>-->
  51. <!-- </LayoutContainer>-->
  52. </main>
  53. </template>
  54. <script setup lang="ts">
  55. import Parameters from "~/models/Organization/Parameters";
  56. import {AsyncData} from "#app";
  57. import Subdomain from "~/models/Organization/Subdomain";
  58. import {useEntityFetch} from "~/composables/data/useEntityFetch";
  59. import {useOrganizationProfileStore} from "~/stores/organizationProfile";
  60. const { fetch } = useEntityFetch()
  61. const organizationProfile = useOrganizationProfileStore()
  62. const id = parseInt(route.value.params.id)
  63. const { data: subdomain, pending } = fetch(Subdomain) as AsyncData<Parameters, Parameters | true>
  64. </script>