feat: meer engels vertalingen
This commit is contained in:
		
							parent
							
								
									7f1c66c757
								
							
						
					
					
						commit
						922e5dd078
					
				
					 4 changed files with 45 additions and 27 deletions
				
			
		|  | @ -39,7 +39,7 @@ | ||||||
|         v-slot="{ data }: { data: SubmissionsResponse }" |         v-slot="{ data }: { data: SubmissionsResponse }" | ||||||
|     > |     > | ||||||
|         <v-btn |         <v-btn | ||||||
|             :color="data.submissions.length > 0 ? 'green' : 'red'" |             :color="data?.submissions?.length > 0 ? 'green' : 'red'" | ||||||
|             variant="text" |             variant="text" | ||||||
|             :to="data.submissions.length > 0 ? goToGroupSubmissionLink(props.group.groupNo) : undefined" |             :to="data.submissions.length > 0 ? goToGroupSubmissionLink(props.group.groupNo) : undefined" | ||||||
|             :disabled="data.submissions.length === 0" |             :disabled="data.submissions.length === 0" | ||||||
|  |  | ||||||
|  | @ -172,5 +172,15 @@ | ||||||
|     "deadline-invalid": "Invalid date or time.", |     "deadline-invalid": "Invalid date or time.", | ||||||
|     "deadline-past": "The deadline must be in the future.", |     "deadline-past": "The deadline must be in the future.", | ||||||
|     "lp-required": "You must select a learning path.", |     "lp-required": "You must select a learning path.", | ||||||
|     "lp-invalied": "The selected learning path doesn't exist." |     "lp-invalid": "The selected learning path doesn't exist.", | ||||||
|  |     "currently-no-groups": "There are no groups for this assignment.", | ||||||
|  |     "random-grouping": "Randomly create groups", | ||||||
|  |     "drag-and-drop": "Manualy create groups", | ||||||
|  |     "generate-groups": "generate", | ||||||
|  |     "auto-generate-groups": "Create groups of equal size", | ||||||
|  |     "preview": "Preview", | ||||||
|  |     "current-groups": "Current groups", | ||||||
|  |     "group-size-label": "Group size", | ||||||
|  |     "save": "Save", | ||||||
|  |     "unassigned": "Unassigned" | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -162,12 +162,11 @@ | ||||||
|                     </div> |                     </div> | ||||||
| 
 | 
 | ||||||
|                     <div v-else> |                     <div v-else> | ||||||
|                         <v-alert |                         <v-alert class="empty-message"> | ||||||
|                             type="info" |                             <v-icon icon="mdi-information-outline" size="small" /> | ||||||
|                             variant="text" |                             {{ t("currently-no-groups") }} | ||||||
|                         > |  | ||||||
|                             {{ t("not-in-group-message") }} |  | ||||||
|                         </v-alert> |                         </v-alert> | ||||||
|  | 
 | ||||||
|                     </div> |                     </div> | ||||||
|                 </v-card-text> |                 </v-card-text> | ||||||
|             </v-card> |             </v-card> | ||||||
|  |  | ||||||
|  | @ -89,9 +89,9 @@ function openGroupDetails(group: object): void { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | const deleteAssignmentMutation = useDeleteAssignmentMutation(); | ||||||
| async function deleteAssignment(num: number, clsId: string): Promise<void> { | async function deleteAssignment(num: number, clsId: string): Promise<void> { | ||||||
|     const {mutate} = useDeleteAssignmentMutation(); |     deleteAssignmentMutation.mutate( | ||||||
|     mutate( |  | ||||||
|         {cid: clsId, an: num}, |         {cid: clsId, an: num}, | ||||||
|         { |         { | ||||||
|             onSuccess: () => { |             onSuccess: () => { | ||||||
|  | @ -183,7 +183,7 @@ async function handleGroupsUpdated(updatedGroups: string[][]): Promise<void> { | ||||||
|                         > |                         > | ||||||
|                             <v-card |                             <v-card | ||||||
|                                 v-if="assignmentResponse" |                                 v-if="assignmentResponse" | ||||||
|                                 class="assignment-card" |                                 class="assignment-card-teacher" | ||||||
|                             > |                             > | ||||||
|                                 <div class="top-buttons"> |                                 <div class="top-buttons"> | ||||||
|                                     <div class="top-buttons-wrapper"> |                                     <div class="top-buttons-wrapper"> | ||||||
|  | @ -368,7 +368,7 @@ async function handleGroupsUpdated(updatedGroups: string[][]): Promise<void> { | ||||||
|                                     </th> |                                     </th> | ||||||
|                                 </tr> |                                 </tr> | ||||||
|                                 </thead> |                                 </thead> | ||||||
|                                 <tbody> |                                 <tbody v-if="allGroups.length > 0"> | ||||||
|                                 <tr |                                 <tr | ||||||
|                                     v-for="g in allGroups" |                                     v-for="g in allGroups" | ||||||
|                                     :key="g.originalGroupNo" |                                     :key="g.originalGroupNo" | ||||||
|  | @ -414,6 +414,16 @@ async function handleGroupsUpdated(updatedGroups: string[][]): Promise<void> { | ||||||
|                                     </td> |                                     </td> | ||||||
|                                 </tr> |                                 </tr> | ||||||
|                                 </tbody> |                                 </tbody> | ||||||
|  |                                 <template v-else> | ||||||
|  |                                     <tbody> | ||||||
|  |                                     <tr> | ||||||
|  |                                         <td colspan="4" class="empty-message"> | ||||||
|  |                                             <v-icon icon="mdi-information-outline" size="small" /> | ||||||
|  |                                             {{ t("currently-no-groups") }} | ||||||
|  |                                         </td> | ||||||
|  |                                     </tr> | ||||||
|  |                                     </tbody> | ||||||
|  |                                 </template> | ||||||
|                             </v-table> |                             </v-table> | ||||||
|                         </div> |                         </div> | ||||||
|                     </v-col> |                     </v-col> | ||||||
|  | @ -453,16 +463,22 @@ async function handleGroupsUpdated(updatedGroups: string[][]): Promise<void> { | ||||||
| <style scoped> | <style scoped> | ||||||
| @import "@/assets/assignment.css"; | @import "@/assets/assignment.css"; | ||||||
| 
 | 
 | ||||||
|  | .assignment-card-teacher { | ||||||
|  |     width: 80%; | ||||||
|  |     padding: 2%; | ||||||
|  |     border-radius: 12px; | ||||||
|  | } | ||||||
|  | 
 | ||||||
| .table-scroll { | .table-scroll { | ||||||
|     overflow-x: auto; |     overflow-x: auto; | ||||||
|     -webkit-overflow-scrolling: touch; |     -webkit-overflow-scrolling: touch; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .header { | .header { | ||||||
|     font-weight: bold !important; |     font-weight: bold; | ||||||
|     background-color: #0e6942; |     background-color: #0e6942; | ||||||
|     color: white; |     color: white; | ||||||
|     padding: 10px; |     padding: 5px; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| table thead th:first-child { | table thead th:first-child { | ||||||
|  | @ -487,11 +503,6 @@ th { | ||||||
|     border-top: 1px solid #0e6942; |     border-top: 1px solid #0e6942; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .table { |  | ||||||
|     width: 90%; |  | ||||||
|     padding-top: 10px; |  | ||||||
|     border-collapse: collapse; |  | ||||||
| } |  | ||||||
| 
 | 
 | ||||||
| h1 { | h1 { | ||||||
|     color: #0e6942; |     color: #0e6942; | ||||||
|  | @ -506,13 +517,6 @@ h2 { | ||||||
|     font-size: 30px; |     font-size: 30px; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .join { |  | ||||||
|     display: flex; |  | ||||||
|     flex-direction: column; |  | ||||||
|     gap: 20px; |  | ||||||
|     margin-top: 50px; |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| .link { | .link { | ||||||
|     color: #0b75bb; |     color: #0b75bb; | ||||||
|     text-decoration: underline; |     text-decoration: underline; | ||||||
|  | @ -533,7 +537,7 @@ main { | ||||||
|     table-layout: auto; |     table-layout: auto; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| @media screen and (max-width: 850px) { | @media screen and (max-width: 1200px) { | ||||||
|     h1 { |     h1 { | ||||||
|         text-align: center; |         text-align: center; | ||||||
|         padding-left: 0; |         padding-left: 0; | ||||||
|  | @ -546,7 +550,7 @@ main { | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     .sheet { |     .sheet { | ||||||
|         width: 100%; |         width: 90%; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     main { |     main { | ||||||
|  | @ -575,6 +579,11 @@ main { | ||||||
|         max-width: 100% !important; |         max-width: 100% !important; | ||||||
|         flex-basis: 100% !important; |         flex-basis: 100% !important; | ||||||
|     } |     } | ||||||
|  | 
 | ||||||
|  |     .assignment-card-teacher { | ||||||
|  |         width: 100%; | ||||||
|  |         border-radius: 12px; | ||||||
|  |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .group-members-dialog { | .group-members-dialog { | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 Joyelle Ndagijimana
						Joyelle Ndagijimana