texte(evenements): Servigne (convivialité, authenticité, adversité), XL du deck du 23/10, question « vous entrez plutôt par S, M, XL ? » au formulaire codev (B26, commit R)

Servigne vérifié contre BIBLIO §Vérifié le 23/10 (relevé, recensions). XL propre à la
page codev (Sens.vue), echelles.ts inchangé. Colonne entree ajoutée à la table NocoDB
avant ce code ; écriture réelle testée puis supprimée.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PfxSWhRoYNsTevCYLkCTJp
This commit is contained in:
Jules Neny
2026-10-23 11:19:26 +02:00
co-authored by Claude Opus 5.5
parent bd69d914d8
commit 71e2028cc6
6 changed files with 45 additions and 11 deletions
+14 -3
View File
@@ -134,6 +134,17 @@
<p v-if="err.voiture" :id="id('voiture-err')" class="fi-err">{{ err.voiture }}</p>
</fieldset>
<!-- Décision de Jules du 22/10 : par quelle échelle on entre en ce moment (facultatif, codev seulement) -->
<fieldset v-if="page === 'codev'" class="fi-champ">
<legend>En ce moment, vous entrez plutôt par <span class="fi-facultatif">facultatif</span></legend>
<div class="fi-choix">
<label v-for="v in ENTREES" :key="v" class="fi-option">
<input v-model="f.entree" type="radio" :name="id('entree')" :value="v">
<span>{{ ENTREES_LABELS[v] }}</span>
</label>
</div>
</fieldset>
<div class="fi-champ">
<label :for="id('mot')">Un mot <span class="fi-facultatif">facultatif</span></label>
<textarea :id="id('mot')" v-model="f.mot" v-bind="aria('mot')" rows="3" maxlength="1000" />
@@ -169,7 +180,7 @@
<script setup lang="ts">
import {
ARRIVEES_CODEV, DEPARTS_CODEV, ARRIVEES_FORET, ARRIVEES_FORET_LABELS, VOITURES, VOITURES_LABELS,
ARRIVEES_CODEV, DEPARTS_CODEV, ARRIVEES_FORET, ARRIVEES_FORET_LABELS, VOITURES, VOITURES_LABELS, ENTREES, ENTREES_LABELS,
InscriptionSchema, erreursParChamp, type PageInscription,
} from '~/utils/inscriptionEvenement'
import { evenement } from '~/data/evenements/ruetz-2026'
@@ -188,7 +199,7 @@ const f = reactive({
arrivee: (props.page === 'codev' && ARRIVEES_CODEV.length === 1 ? ARRIVEES_CODEV[0] : '') as string,
depart: '' as string, reste_plantation: false,
nb_personnes: 1, nb_enfants: 0, dort_sur_place: undefined as boolean | undefined,
besoin_alimentaire: '', voiture: '' as string, mot: '', site_web: '',
besoin_alimentaire: '', voiture: '' as string, mot: '', site_web: '', entree: '' as string,
})
const err = ref<Record<string, string>>({})
const etat = ref<'saisie' | 'envoi' | 'ok' | 'complet' | 'indisponible'>('saisie')
@@ -216,7 +227,7 @@ function corps() {
besoin_alimentaire: f.besoin_alimentaire, voiture: f.voiture, mot: f.mot, site_web: f.site_web,
}
return props.page === 'codev'
? { ...commun, arrivee: f.arrivee, depart: f.depart, reste_plantation: f.reste_plantation }
? { ...commun, arrivee: f.arrivee, depart: f.depart, reste_plantation: f.reste_plantation, entree: f.entree }
: { ...commun, nb_personnes: f.nb_personnes, nb_enfants: f.nb_enfants, arrivee: f.arrivee, dort_sur_place: f.dort_sur_place }
}