ApplicationForm.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <template>
  2. <v-dialog v-model="dialog" persistent max-width="600">
  3. <v-card>
  4. <v-card-title>
  5. Formulaire de Candidature
  6. </v-card-title>
  7. <v-card-text>
  8. <!-- Ajoutez ici les champs du formulaire -->
  9. <v-form @submit="submitApplication">
  10. <v-text-field v-model="nom" label="Nom"></v-text-field>
  11. <v-text-field v-model="prenom" label="Prénom"></v-text-field>
  12. <v-text-field v-model="email" label="Email"></v-text-field>
  13. <v-text-field v-model="telephone" label="Téléphone"></v-text-field>
  14. <input type="file" @change="handleFileUpload" />
  15. <v-textarea v-model="message" label="Message"></v-textarea>
  16. </v-form>
  17. </v-card-text>
  18. <v-card-actions>
  19. <v-btn @click="dialog = false">Annuler</v-btn>
  20. <v-btn @click="submitApplication" color="primary">Envoyer</v-btn>
  21. </v-card-actions>
  22. </v-card>
  23. </v-dialog>
  24. </template>
  25. <script>
  26. export default {
  27. data() {
  28. return {
  29. dialog: false,
  30. nom: "",
  31. prenom: "",
  32. email: "",
  33. telephone: "",
  34. cv: null,
  35. lettreMotivation: null,
  36. message: ""
  37. };
  38. },
  39. methods: {
  40. openApplicationForm() {
  41. this.dialog = true;
  42. },
  43. handleFileUpload(event) {
  44. const file = event.target.files[0];
  45. if (file) {
  46. // Gérer le fichier ici, par exemple
  47. }
  48. },
  49. submitApplication() {
  50. // Gérer l'envoi du formulaire ici
  51. this.dialog = false;
  52. }
  53. }
  54. };
  55. </script>