feat: meer engels vertalingen

This commit is contained in:
Joyelle Ndagijimana 2025-05-18 00:11:22 +02:00
parent 7f1c66c757
commit 922e5dd078
4 changed files with 45 additions and 27 deletions

View file

@ -39,7 +39,7 @@
v-slot="{ data }: { data: SubmissionsResponse }"
>
<v-btn
:color="data.submissions.length > 0 ? 'green' : 'red'"
:color="data?.submissions?.length > 0 ? 'green' : 'red'"
variant="text"
:to="data.submissions.length > 0 ? goToGroupSubmissionLink(props.group.groupNo) : undefined"
:disabled="data.submissions.length === 0"

View file

@ -172,5 +172,15 @@
"deadline-invalid": "Invalid date or time.",
"deadline-past": "The deadline must be in the future.",
"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"
}

View file

@ -162,12 +162,11 @@
</div>
<div v-else>
<v-alert
type="info"
variant="text"
>
{{ t("not-in-group-message") }}
<v-alert class="empty-message">
<v-icon icon="mdi-information-outline" size="small" />
{{ t("currently-no-groups") }}
</v-alert>
</div>
</v-card-text>
</v-card>

View file

@ -89,9 +89,9 @@ function openGroupDetails(group: object): void {
}
const deleteAssignmentMutation = useDeleteAssignmentMutation();
async function deleteAssignment(num: number, clsId: string): Promise<void> {
const {mutate} = useDeleteAssignmentMutation();
mutate(
deleteAssignmentMutation.mutate(
{cid: clsId, an: num},
{
onSuccess: () => {
@ -183,7 +183,7 @@ async function handleGroupsUpdated(updatedGroups: string[][]): Promise<void> {
>
<v-card
v-if="assignmentResponse"
class="assignment-card"
class="assignment-card-teacher"
>
<div class="top-buttons">
<div class="top-buttons-wrapper">
@ -368,7 +368,7 @@ async function handleGroupsUpdated(updatedGroups: string[][]): Promise<void> {
</th>
</tr>
</thead>
<tbody>
<tbody v-if="allGroups.length > 0">
<tr
v-for="g in allGroups"
:key="g.originalGroupNo"
@ -414,6 +414,16 @@ async function handleGroupsUpdated(updatedGroups: string[][]): Promise<void> {
</td>
</tr>
</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>
</div>
</v-col>
@ -453,16 +463,22 @@ async function handleGroupsUpdated(updatedGroups: string[][]): Promise<void> {
<style scoped>
@import "@/assets/assignment.css";
.assignment-card-teacher {
width: 80%;
padding: 2%;
border-radius: 12px;
}
.table-scroll {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
.header {
font-weight: bold !important;
font-weight: bold;
background-color: #0e6942;
color: white;
padding: 10px;
padding: 5px;
}
table thead th:first-child {
@ -487,11 +503,6 @@ th {
border-top: 1px solid #0e6942;
}
.table {
width: 90%;
padding-top: 10px;
border-collapse: collapse;
}
h1 {
color: #0e6942;
@ -506,13 +517,6 @@ h2 {
font-size: 30px;
}
.join {
display: flex;
flex-direction: column;
gap: 20px;
margin-top: 50px;
}
.link {
color: #0b75bb;
text-decoration: underline;
@ -533,7 +537,7 @@ main {
table-layout: auto;
}
@media screen and (max-width: 850px) {
@media screen and (max-width: 1200px) {
h1 {
text-align: center;
padding-left: 0;
@ -546,7 +550,7 @@ main {
}
.sheet {
width: 100%;
width: 90%;
}
main {
@ -575,6 +579,11 @@ main {
max-width: 100% !important;
flex-basis: 100% !important;
}
.assignment-card-teacher {
width: 100%;
border-radius: 12px;
}
}
.group-members-dialog {