Skip to content

Commit

Permalink
#15 Show completed enrollment status
Browse files Browse the repository at this point in the history
  • Loading branch information
fschindler committed Aug 20, 2021
1 parent 47534cd commit 31e8af1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
6 changes: 6 additions & 0 deletions frontend/components/course/EnrollmentStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ export const EnrollmentStatus: FC<IProps> = ({ course }) => {
);
break;
}
case EnrollmentStatus_enum.COMPLETED: {
content = (
<span className="bg-gray-300 p-4">{t("status.completed")}</span>
);
break;
}
default: {
content = null;
}
Expand Down
5 changes: 3 additions & 2 deletions frontend/public/locales/de/course-application.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"applyNow": "jetzt bewerben",
"applicationFor": "Bewerbung für",
"requirements": "Anforderungen",
"applyNow": "jetzt bewerben",
"motivationalText": "Motivationsschreiben",
"motivationalTextPlaceholder": "Schreibe was an dir so geil ist",
"requirements": "Anforderungen",
"sendApplication": "Bewerbung abschicken",
"status": {
"aborted": "Du hast den Kurs leider nicht erfolgreich abgeschlossen.",
"applied": "Du hast dich für diesen Kurs bereits beworben! in Kürze wirst du Rückmeldung dazu bekommen",
"completed": "Du hast den Kurs erfolgreich abgeschlossen.",
"rejected": "Du hast die Einladung zu diesem Kurs abgelehnt."
},
"successBody": "Spätestens ein bis zwei Tage nach Bewerbungsschluss wirst Du über Deine Zulassung informiert.",
Expand Down
5 changes: 3 additions & 2 deletions frontend/public/locales/en/course-application.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"applyNow": "apply now",
"applicationFor": "application for",
"requirements": "requirements",
"applyNow": "apply now",
"motivationalText": "motivational letter",
"motivationalTextPlaceholder": "what is so awesome about you",
"requirements": "requirements",
"sendApplication": "send application",
"status": {
"aborted": "You did not complete this course successfully.",
"applied": "You already applied for this course and will get feedback in no time.",
"completed": "You have successfully completed the course.",
"rejected": "You have declined the invitation to this course."
},
"successBody": "At latest one or two days after application closes you will get informed about your approval.",
Expand Down

0 comments on commit 31e8af1

Please sign in to comment.