瀏覽代碼

various fixes

Olivier Massot 1 年之前
父節點
當前提交
7cb7c813f6

+ 5 - 4
components/Common/MenuScroll.vue

@@ -1,5 +1,6 @@
-<!-- Menu sticky horizontal -->
-<!-- TODO: review -->
+<!--
+Menu de navigation entre les sections d'une page, accrochée au haut de l'écran sur les écrans larges
+-->
 <template>
   <LayoutContainer>
     <v-row>
@@ -64,10 +65,10 @@ const handleScroll = () => {
 .menu-container {
   z-index: 3;
   display: flex;
-  justify-content: space-around;
+  justify-content: center;
   background: var(--neutral-color);
   color: var(--primary-color);
-  font-size: 1rem;
+  font-size: 15px;
   line-height: 19px;
   align-items: center;
   text-align: center;

+ 13 - 1
components/Contact/Form.vue

@@ -124,9 +124,12 @@
           </v-col>
 
           <v-col cols="12" md="6">
-            <v-text-field
+            <v-select
               v-model="contactRequest.concernedProduct"
               label="Produit concerné (facultatif)"
+              :items="products"
+              item-value="id"
+              item-title="label"
             />
           </v-col>
         </v-row>
@@ -217,6 +220,15 @@ const requestTypes: Array<{id: string, label: string}> = [
   { id: "CONTACT_REQUEST_OTHER", label: "Autre"}
 ]
 
+const products: Array<{id: string, label: string}> = [
+  { id: "PRODUCT_AGENDA", label: "Agenda culturel"},
+  { id: "PRODUCT_ARTIST", label: "Opentalent Artist"},
+  { id: "PRODUCT_SCHOOL", label: "Opentalent School"},
+  { id: "PRODUCT_MANAGER", label: "Opentalent Manager"},
+  { id: "PRODUCT_ADVERTISING", label: "Publicité"},
+  { id: "PRODUCT_OTHER", label: "Autre"}
+]
+
 const defaultRequestType = route.query.request ?? 'CONTACT_REQUEST_INFORMATION'
 
 //@ts-ignore

+ 0 - 60
components/Form/Application.vue

@@ -1,60 +0,0 @@
-<!--
-TODO: n'est pas utilisé pour l'instant
--->
-
-<template>
-  <v-dialog v-model="dialog" persistent max-width="600">
-    <v-card>
-      <v-card-title>
-        Formulaire de Candidature
-      </v-card-title>
-      <v-card-text>
-        <!-- Ajoutez ici les champs du formulaire -->
-        <v-form @submit="submitApplication">
-          <v-text-field v-model="nom" label="Nom"></v-text-field>
-          <v-text-field v-model="prenom" label="Prénom"></v-text-field>
-          <v-text-field v-model="email" label="Email"></v-text-field>
-          <v-text-field v-model="telephone" label="Téléphone"></v-text-field>
-          <input type="file" @change="handleFileUpload" />
-          <v-textarea v-model="message" label="Message"></v-textarea>
-        </v-form>
-      </v-card-text>
-      <v-card-actions>
-        <v-btn @click="dialog = false">Annuler</v-btn>
-        <v-btn @click="submitApplication" color="primary">Envoyer</v-btn>
-      </v-card-actions>
-    </v-card>
-  </v-dialog>
-</template>
-
-<script>
-export default {
-  data() {
-    return {
-      dialog: false,
-      nom: "",
-      prenom: "",
-      email: "",
-      telephone: "",
-      cv: null,
-      lettreMotivation: null,
-      message: ""
-    };
-  },
-  methods: {
-    openApplicationForm() {
-      this.dialog = true;
-    },
-    handleFileUpload(event) {
-      const file = event.target.files[0];
-      if (file) {
-        // Gérer le fichier ici, par exemple
-      }
-    },
-    submitApplication() {
-      // Gérer l'envoi du formulaire ici
-      this.dialog = false;
-    }
-  }
-};
-</script>

+ 7 - 3
components/JoinUs/MissionDetail.vue

@@ -89,8 +89,9 @@
 
           <v-row class="d-flex justify-space-between mb-8 center-90">
             <p class="key-word mt-3">
-              <!-- TODO: remplacer par la bonne prop -->
-              ROCK CONCERT FESTIVAL
+              <span v-for="tag in job.tags" class="mr-2">
+                {{ tag.name }}
+              </span>
             </p>
 
             <CommonShare />
@@ -110,7 +111,6 @@ import DateUtils from "~/services/utils/dateUtils";
 
 const route = useRoute();
 const { fetch } = useEntityFetch()
-const config = useRuntimeConfig()
 
 const jobId: number = parseInt(route.params.id as string)
 if (!jobId || isNaN(jobId)) {
@@ -120,6 +120,10 @@ if (!jobId || isNaN(jobId)) {
 const { data: job, pending } = fetch(JobPosting, jobId)
 
 const formatDate = (date: string) => {
+  console.log(date)
+  if (!date) {
+    return "-"
+  }
   return DateUtils.format(new Date(date), "dd/MM/yyyy")
 };
 </script>

+ 7 - 3
components/Layout/Footer/Solutions.vue

@@ -1,11 +1,15 @@
 <template>
   <div id="solutions">
     <LayoutContainer>
-      <v-row>
+      <v-row class="center-90">
         <v-col cols="12">
-          <h4 class="solution-title text-center">
+          <LayoutUISubTitle>
+            NOS LOGICIELS OPENTALENT
+          </LayoutUISubTitle>
+
+          <LayoutUITitle>
             Ces solutions peuvent aussi vous intéresser
-          </h4>
+          </LayoutUITitle>
         </v-col>
       </v-row>
 

+ 1 - 1
components/Layout/Navigation/Topbar.vue

@@ -5,7 +5,7 @@
         prepend-icon="fas fa-user"
         class="btn-login"
       >
-        Se connecter<br />aux logiciels
+        Se connecter
       </v-btn>
 
       <v-btn

+ 5 - 2
components/Logiciels/School/Contact.vue

@@ -66,8 +66,11 @@
               obtenir vos codes d’accès.
             </p>
 
-            <!-- TODO: manque le @click -->
-            <v-btn class="btn-contact">
+            <v-btn
+              href="https://www.cmf-musique.org/contact/"
+              target="_blank"
+              class="btn-contact"
+            >
               Je souhaite obtenir mon code d'accès
             </v-btn>
           </div>

+ 17 - 0
models/Maestro/Tag.ts

@@ -0,0 +1,17 @@
+import ApiModel from "~/models/ApiModel";
+import {Uid, Str, Bool, Attr} from "pinia-orm/dist/decorators";
+
+/**
+ * Maestro Model : News
+ *
+ * @see https://gitlab.2iopenservice.com/opentalent/maestro/-/blob/master/src/Entity/News/News.php?ref_type=heads
+ */
+export default class Tag extends ApiModel {
+  static entity = 'tags'
+
+  @Uid()
+  declare id: number | string
+
+  @Str(null)
+  declare name: string | null
+}

+ 1 - 1
pages/qui-sommes-nous.vue

@@ -22,7 +22,7 @@
 
   <AboutLogiciels />
 
-  <CommonAgenda />
+  <HomeEventAgenda class="mb-6"/>
 
   <AboutChronologie v-if="lgAndUp"/>
 

+ 2 - 1
services/utils/dateUtils.ts

@@ -1,4 +1,5 @@
-import { format } from 'date-fns';
+import { format } from "date-fns";
+import type { Locale } from "date-fns";
 import ArrayUtils from "~/services/utils/arrayUtils";
 import { enUS, fr } from 'date-fns/locale'