Unify praxisbildner dashboard with berufsbildner

This commit is contained in:
Elia Bieri 2024-10-24 09:49:00 +02:00 committed by Christian Cueni
parent 2e6c305cea
commit 564d45341c
7 changed files with 16 additions and 3 deletions

3
.gitignore vendored
View File

@ -285,3 +285,6 @@ git-crypt-encrypted-files-check.txt
/client/src/gql/dist/minifiedSchema.json
/sftptest/
# BabelEdit translation software
/client/bable_edit.babel

View File

@ -65,6 +65,13 @@ const actionButtonProps = computed<{ href: string; text: string; cyKey: string }
cyKey: "lm-dashboard-link",
};
}
if (props.courseConfig?.role_key === "MentorUK") {
return {
href: getLearningPathUrl(props.courseConfig?.course_slug),
text: "a.Teilnehmer Vorschau",
cyKey: "attendance-dashboard-link",
};
}
return {
href: getLearningPathUrl(props.courseConfig?.course_slug),
text: "Weiter lernen",
@ -75,7 +82,6 @@ const actionButtonProps = computed<{ href: string; text: string; cyKey: string }
function hasActionButton(): boolean {
return (
props.courseConfig?.role_key !== "MentorUK" &&
props.courseConfig?.role_key !== "Ausbildungsverantwortlicher" &&
props.courseConfig?.role_key !== "Berufsbildner"
);

View File

@ -18,6 +18,8 @@ const summary = computed(() => {
return mentorAssignmentData.value?.assignments ?? null;
});
const courseSlug = computed(() => mentorAssignmentData.value?.course_slug);
onMounted(async () => {
mentorAssignmentData.value = await fetchMentorCompetenceSummary(
props.courseId,
@ -29,7 +31,7 @@ onMounted(async () => {
<template>
<div v-if="summary" class="w-[325px]">
<BaseBox
:details-link="`/dashboard/persons-competence?course=${props.courseId}`"
:details-link="`/statistic/${props.agentRole}/${courseSlug}/assignment`"
data-cy="dashboard.mentor.competenceSummary"
>
<template #title>{{ $t("Kompetenznachweise") }}</template>

View File

@ -264,6 +264,7 @@
"a.Teilnehmer": "Teilnehmer",
"a.Teilnehmer im": "Teilnehmer im",
"a.Teilnehmer nach Zulassungsprofilen im": "Teilnehmer nach Zulassungsprofilen im",
"a.Teilnehmer Vorschau": "Teilnehmer Vorschau",
"a.Telefonnummer": "Telefonnummer",
"a.Telefonnummer hat das falsche Format": "Telefonnummer hat das falsche Format",
"a.Termin": "Termin",

View File

@ -264,6 +264,7 @@
"a.Teilnehmer": "Participants",
"a.Teilnehmer im": "Participants en",
"a.Teilnehmer nach Zulassungsprofilen im": "Participants par profil d'admission en",
"a.Teilnehmer Vorschau": "Aperçu des participants",
"a.Telefonnummer": "Numéro de téléphone",
"a.Telefonnummer hat das falsche Format": "Le numéro de téléphone n'est pas au bon format",
"a.Termin": "Date",

View File

@ -264,6 +264,7 @@
"a.Teilnehmer": "Partecipanti",
"a.Teilnehmer im": "I partecipanti al",
"a.Teilnehmer nach Zulassungsprofilen im": "Partecipanti per profilo di ammissione nel",
"a.Teilnehmer Vorschau": "Anteprima dei partecipanti",
"a.Telefonnummer": "Numero di telefono",
"a.Telefonnummer hat das falsche Format": "Il numero di telefono ha un formato sbagliato",
"a.Termin": "Data",

View File

@ -264,7 +264,6 @@ def has_preview(role_key: RoleKeyType) -> bool:
role_key
in [
RoleKeyType.MENTOR_VV,
RoleKeyType.MENTOR_UK,
RoleKeyType.BERUFSBILDNER,
RoleKeyType.TRAINING_RESPONSIBLE,
]