feat: add required indicator in jobs

This commit is contained in:
Ejaaz Khan
2024-11-09 00:58:03 +05:30
parent c5f091fae8
commit 26f1e228a9
3 changed files with 17 additions and 1 deletions

View File

@@ -56,12 +56,14 @@
type="select"
:options="['Choices', 'User Input', 'Open Ended']"
class="pb-2"
:required="true"
/>
<div v-if="question.type == 'Choices'" class="divide-y border-t">
<div v-for="n in 4" class="space-y-4 py-2">
<FormControl
:label="__('Option') + ' ' + n"
v-model="question[`option_${n}`]"
:required="n == 1 ? true : false"
/>
<FormControl
:label="__('Explanation')"
@@ -82,6 +84,7 @@
<FormControl
:label="__('Possibility') + ' ' + n"
v-model="question[`possibility_${n}`]"
:required="n == 1 ? true : false"
/>
</div>
</div>