File tree Expand file tree Collapse file tree 2 files changed +14
-17
lines changed Expand file tree Collapse file tree 2 files changed +14
-17
lines changed Original file line number Diff line number Diff line change 3636 <div class =" flex flex-col gap-2" >
3737 <label >{{ t("Score") }}</label >
3838
39- <template v-if =" ! forceStudentView " >
40- <input
41- type =" number"
42- v-model.number =" qualification"
43- class =" input border p-2 rounded"
44- min =" 0"
45- :max =" maxQualification"
46- step =" 0.1"
47- />
48- <template v-if =" maxQualification " >
49- <span class =" text-xs text-gray-600" > {{ t("Max score") }}: {{ maxQualification }} </span >
50- </template >
51- </template >
39+ <BaseInputNumber
40+ v-if =" !forceStudentView"
41+ id =" qualification"
42+ :label =" t('Score')"
43+ v-model.number =" qualification"
44+ :min =" 0"
45+ :max =" maxQualification"
46+ :help-text =" maxQualification ? t('Max score') + maxQualification : null"
47+ />
5248
5349 <template v-else >
5450 <span class =" border p-2 rounded bg-gray-100 text-sm" >
@@ -138,6 +134,7 @@ import BaseCheckbox from "../basecomponents/BaseCheckbox.vue"
138134import cStudentPublicationService from " ../../services/cstudentpublication"
139135import { useRoute } from " vue-router"
140136import { useSecurityStore } from " ../../store/securityStore"
137+ import BaseInputNumber from " ../basecomponents/BaseInputNumber.vue"
141138
142139const props = defineProps ({
143140 modelValue: Boolean ,
Original file line number Diff line number Diff line change 1111
1212 <!-- Repeat Date -->
1313 <BaseCheckbox
14+ id =" repeat"
1415 v-model =" formData.repeatDate"
1516 :label =" t('Repeat date')"
1617 @change =" toggleRepeatOptions"
18+ name =" repeat"
1719 />
1820
1921 <div v-if =" formData.repeatDate" >
3032 <BaseInputNumber
3133 v-model =" formData.repeatDays"
3234 :label =" t('Number of days')"
33- type =" number"
3435 min =" 1"
35- required
36+ id = " xdays_number "
3637 />
3738 </div >
3839
4748 </div >
4849
4950 <BaseInputNumber
51+ id =" end_date_time"
5052 v-model =" formData.duration"
5153 :label =" t('Duration (minutes)')"
52- type =" number"
5354 min =" 1"
54- required
5555 />
5656
5757 <!-- Group -->
You can’t perform that action at this time.
0 commit comments