File tree Expand file tree Collapse file tree 2 files changed +79
-70
lines changed Expand file tree Collapse file tree 2 files changed +79
-70
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
- <div >
3
- ClassroomExercisesListening
4
- </div >
2
+ <v-card >
3
+ <v-card-title >
4
+ Listening exercises
5
+ </v-card-title >
6
+ <v-card-text >
7
+ Coming soon
8
+ </v-card-text >
9
+ </v-card >
5
10
</template >
6
11
7
12
<script lang="ts">
Original file line number Diff line number Diff line change 1
1
<template >
2
- <div >
3
- <p >
2
+ <v-card >
3
+ <v-card-title >
4
+ Reading exercises
5
+ </v-card-title >
6
+ <v-card-subtitle >
4
7
Choose the exercises you want to use in this class.
5
- </p >
6
-
7
- <v-progress-circular
8
- v-if =" loading"
9
- color =" primary"
10
- indeterminate
11
- ></v-progress-circular >
12
-
13
- <p v-else-if =" exercises.length === 0" >
14
- You haven't created any exercise yet.
15
- <router-link :to =" { name: 'ReadingExerciseCreate' }" >
16
- Create exercise
17
- </router-link >
18
- </p >
19
-
20
- <div v-else >
21
- <v-btn-toggle >
22
- <v-btn
23
- small
24
- @click =" selectAll"
8
+ </v-card-subtitle >
9
+ <v-card-text >
10
+ <v-progress-circular
11
+ v-if =" loading"
12
+ color =" primary"
13
+ indeterminate
14
+ ></v-progress-circular >
15
+
16
+ <p v-else-if =" exercises.length === 0" >
17
+ You haven't created any exercise yet.
18
+ <router-link :to =" { name: 'ReadingExerciseCreate' }" >
19
+ Create exercise
20
+ </router-link >
21
+ </p >
22
+
23
+ <div v-else >
24
+ <v-btn-toggle >
25
+ <v-btn
26
+ small
27
+ @click =" selectAll"
28
+ >
29
+ Select all
30
+ </v-btn >
31
+ <v-btn
32
+ small
33
+ @click =" unselectAll"
34
+ >
35
+ Unselect all
36
+ </v-btn >
37
+ </v-btn-toggle >
38
+
39
+ <v-row
40
+ no-gutters
41
+ class =" mt-3"
25
42
>
26
- Select all
27
- </v-btn >
43
+ <v-col
44
+ v-for =" exercise of exercises"
45
+ :key =" exercise.pk"
46
+ cols =" 3"
47
+ >
48
+ <v-checkbox
49
+ v-model =" exercise.isChosen"
50
+ dense
51
+ hide-details
52
+ >
53
+ <template #label >
54
+ <router-link
55
+ :to =" {
56
+ name: 'ReadingExerciseDetail',
57
+ params: { pk: exercise.pk }
58
+ }"
59
+ >
60
+ {{ exercise.identifier }}
61
+ </router-link >
62
+ </template >
63
+ </v-checkbox >
64
+ </v-col >
65
+ </v-row >
66
+
28
67
<v-btn
29
- small
30
- @click =" unselectAll"
68
+ color =" primary"
69
+ class =" mt-5"
70
+ :loading =" saving"
71
+ @click =" save"
31
72
>
32
- Unselect all
73
+ Save
33
74
</v-btn >
34
- </v-btn-toggle >
35
-
36
- <v-row
37
- no-gutters
38
- class =" mt-3"
39
- >
40
- <v-col
41
- v-for =" exercise of exercises"
42
- :key =" exercise.pk"
43
- cols =" 3"
44
- >
45
- <v-checkbox
46
- v-model =" exercise.isChosen"
47
- dense
48
- hide-details
49
- >
50
- <template #label >
51
- <router-link
52
- :to =" {
53
- name: 'ReadingExerciseDetail',
54
- params: { pk: exercise.pk }
55
- }"
56
- >
57
- {{ exercise.identifier }}
58
- </router-link >
59
- </template >
60
- </v-checkbox >
61
- </v-col >
62
- </v-row >
63
-
64
- <v-btn
65
- color =" primary"
66
- class =" mt-5"
67
- :loading =" saving"
68
- @click =" save"
69
- >
70
- Save
71
- </v-btn >
72
- </div >
73
- </div >
75
+ </div >
76
+ </v-card-text >
77
+ </v-card >
74
78
</template >
75
79
76
80
<script lang="ts">
You can’t perform that action at this time.
0 commit comments