feat: update validation constraints for participant data
This commit is contained in:
+4
-4
@@ -7,13 +7,13 @@
|
||||
<svg class="w-4 h-4" fill="none" :class="{ 'rotate-180': visible }" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg>
|
||||
</button>
|
||||
<div class="absolute top-100 left-0 z-50 mt-4 border shadow-md p-4 bg-white w-screen max-w-xs space-y-2" v-show="visible">
|
||||
<input class="form-input w-full" type="number" placeholder="Körpergröße (140-210cm)"
|
||||
<input class="form-input w-full" type="number" placeholder="Körpergröße (150-210cm)"
|
||||
v-model.number="participant.data.height" :disabled="!mutable"
|
||||
@change="validate(participant.data.height, 140, 210, 'Körpergröße')"
|
||||
@change="validate(participant.data.height, 150, 210, 'Körpergröße')"
|
||||
>
|
||||
<input class="form-input w-full" type="number" placeholder="Schuhgröße (35-49, EU-Größe)"
|
||||
<input class="form-input w-full" type="number" placeholder="Schuhgröße (36-49, EU-Größe)"
|
||||
v-model.number="participant.data.shoeSize" :disabled="!mutable"
|
||||
@change="validate(participant.data.shoeSize, 35, 49, 'Schuhgröße')"
|
||||
@change="validate(participant.data.shoeSize, 36, 49, 'Schuhgröße')"
|
||||
>
|
||||
<input class="form-input w-full" type="number" placeholder="Gewicht (40 - 130kg)"
|
||||
v-model.number="participant.data.weight" :disabled="!mutable"
|
||||
|
||||
Reference in New Issue
Block a user