feat: Ajout d'un message plus clair pour finir de remplir le formulaire
This commit is contained in:
parent
917115d851
commit
d10d4b36bf
|
@ -105,6 +105,9 @@ function selectImage(event, question, answer) {
|
||||||
}
|
}
|
||||||
nextQuestion()
|
nextQuestion()
|
||||||
}
|
}
|
||||||
|
function geQuestionSlide(question) {
|
||||||
|
slides.value.go(questions.value.findIndex((element, index) => element.id === question.id))
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
@ -174,13 +177,36 @@ function selectImage(event, question, answer) {
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
Vous n'avez pas répondu à toutes les questions.
|
<div class="noscore">
|
||||||
|
<p>
|
||||||
|
Aucun score peut vous être proposé, vous devez faire une selection sur les vecteurs suivants :
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li v-for="question in questions.filter(q => q.weight == null)" :key="question.id">
|
||||||
|
<a @click="(event) => {geQuestionSlide(question);return false}" href="javascript:;">{{ question.title }}</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</SplideSlide>
|
</SplideSlide>
|
||||||
</Splide>
|
</Splide>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="sass" scoped>
|
<style lang="sass" scoped>
|
||||||
|
.noscore
|
||||||
|
display: flex
|
||||||
|
justify-content: center
|
||||||
|
align-items: center
|
||||||
|
height: 100%
|
||||||
|
color: var(--color-white)
|
||||||
|
flex-direction: column
|
||||||
|
|
||||||
|
p
|
||||||
|
font-size: 1rem
|
||||||
|
text-align: center
|
||||||
|
margin-bottom: 1rem
|
||||||
|
a
|
||||||
|
color: var(--color-white)
|
||||||
.questions
|
.questions
|
||||||
position: fixed
|
position: fixed
|
||||||
top: var(--header-size)
|
top: var(--header-size)
|
||||||
|
@ -212,6 +238,7 @@ label
|
||||||
|
|
||||||
.latest
|
.latest
|
||||||
background-color: var(--color-green)
|
background-color: var(--color-green)
|
||||||
|
color: var(--color-black)
|
||||||
|
|
||||||
.gradient
|
.gradient
|
||||||
width: calc(100% - 2rem)
|
width: calc(100% - 2rem)
|
||||||
|
|
Loading…
Reference in New Issue