|
1 | 1 | <template>
|
2 |
| - <div> |
3 |
| - <v-progress-circular |
4 |
| - v-if="loading" |
5 |
| - indeterminate |
6 |
| - color="primary" |
7 |
| - ></v-progress-circular> |
| 2 | + <v-card> |
| 3 | + <v-card-text> |
| 4 | + <v-progress-circular |
| 5 | + v-if="loading" |
| 6 | + indeterminate |
| 7 | + color="primary" |
| 8 | + ></v-progress-circular> |
8 | 9 |
|
9 |
| - <p v-else-if="reports.length === 0"> |
10 |
| - This classroom don't have any reading exercises. Perhaps your teacher forgot to add them? |
11 |
| - </p> |
| 10 | + <p v-else-if="reports.length === 0"> |
| 11 | + This classroom don't have any reading exercises. Perhaps your teacher forgot to add them? |
| 12 | + </p> |
12 | 13 |
|
13 |
| - <div v-else> |
14 |
| - <v-simple-table> |
15 |
| - <thead> |
16 |
| - <tr> |
17 |
| - <th>Exercise</th> |
18 |
| - <th>Passage 1</th> |
19 |
| - <th>Passage 2</th> |
20 |
| - <th>Passage 3</th> |
21 |
| - <th>Total</th> |
22 |
| - <th>Band score</th> |
23 |
| - <th></th> |
24 |
| - </tr> |
25 |
| - </thead> |
26 |
| - <tbody> |
27 |
| - <tr |
28 |
| - v-for="report of reports" |
29 |
| - :key="report.pk" |
30 |
| - > |
31 |
| - <td>{{ report.exercise.identifier }}</td> |
32 |
| - <template v-if="!report.submitted"> |
33 |
| - <td colspan="5"> |
34 |
| - Not submitted |
35 |
| - </td> |
36 |
| - <td class="text-center"> |
37 |
| - <router-link |
38 |
| - :to="{ |
39 |
| - name: 'ReadingExerciseSubmit', |
40 |
| - params: { |
41 |
| - pk: classroom.pk, |
42 |
| - exercisePk: report.exercise.pk |
43 |
| - } |
44 |
| - }" |
45 |
| - > |
46 |
| - Start |
47 |
| - </router-link> |
48 |
| - </td> |
49 |
| - </template> |
50 |
| - <template v-else> |
51 |
| - <td>{{ report.passage_1_total }}</td> |
52 |
| - <td>{{ report.passage_2_total }}</td> |
53 |
| - <td>{{ report.passage_3_total }}</td> |
54 |
| - <td>{{ report.total }}</td> |
55 |
| - <td>{{ report.band_score }}</td> |
56 |
| - <td class="text-center"> |
57 |
| - <router-link |
58 |
| - :to="{ |
59 |
| - name: 'ReadingExerciseSubmitResult', |
60 |
| - params: { |
61 |
| - pk: classroom.pk, |
62 |
| - exercisePk: report.exercise.pk |
63 |
| - } |
64 |
| - }" |
65 |
| - > |
66 |
| - Detail |
67 |
| - </router-link> |
68 |
| - </td> |
69 |
| - </template> |
70 |
| - </tr> |
71 |
| - </tbody> |
72 |
| - </v-simple-table> |
73 |
| - </div> |
74 |
| - </div> |
| 14 | + <div v-else> |
| 15 | + <v-simple-table> |
| 16 | + <thead> |
| 17 | + <tr> |
| 18 | + <th>Reading</th> |
| 19 | + <th>Passage 1</th> |
| 20 | + <th>Passage 2</th> |
| 21 | + <th>Passage 3</th> |
| 22 | + <th>Total</th> |
| 23 | + <th>Band score</th> |
| 24 | + <th></th> |
| 25 | + </tr> |
| 26 | + </thead> |
| 27 | + <tbody> |
| 28 | + <tr |
| 29 | + v-for="report of reports" |
| 30 | + :key="report.pk" |
| 31 | + > |
| 32 | + <td>{{ report.exercise.identifier }}</td> |
| 33 | + <template v-if="!report.submitted"> |
| 34 | + <td colspan="5"> |
| 35 | + Not submitted |
| 36 | + </td> |
| 37 | + <td class="text-center"> |
| 38 | + <router-link |
| 39 | + :to="{ |
| 40 | + name: 'ReadingExerciseSubmit', |
| 41 | + params: { |
| 42 | + pk: classroom.pk, |
| 43 | + exercisePk: report.exercise.pk |
| 44 | + } |
| 45 | + }" |
| 46 | + > |
| 47 | + Start |
| 48 | + </router-link> |
| 49 | + </td> |
| 50 | + </template> |
| 51 | + <template v-else> |
| 52 | + <td>{{ report.passage_1_total }}</td> |
| 53 | + <td>{{ report.passage_2_total }}</td> |
| 54 | + <td>{{ report.passage_3_total }}</td> |
| 55 | + <td>{{ report.total }}</td> |
| 56 | + <td>{{ report.band_score }}</td> |
| 57 | + <td class="text-center"> |
| 58 | + <router-link |
| 59 | + :to="{ |
| 60 | + name: 'ReadingExerciseSubmitResult', |
| 61 | + params: { |
| 62 | + pk: classroom.pk, |
| 63 | + exercisePk: report.exercise.pk, |
| 64 | + studentPk: user.pk |
| 65 | + } |
| 66 | + }" |
| 67 | + > |
| 68 | + Detail |
| 69 | + </router-link> |
| 70 | + </td> |
| 71 | + </template> |
| 72 | + </tr> |
| 73 | + </tbody> |
| 74 | + </v-simple-table> |
| 75 | + </div> |
| 76 | + </v-card-text> |
| 77 | + </v-card> |
75 | 78 | </template>
|
76 | 79 |
|
77 | 80 | <script lang="ts">
|
|
0 commit comments