From dbe9c4c022598078159e0369544231b2a04027ae Mon Sep 17 00:00:00 2001
From: Hangzhi Yu <hangzhi@protonmail.com>
Date: Fri, 7 Jun 2024 15:33:50 +0200
Subject: [PATCH] Add labels

---
 .../frontend/components/substitutions/SubstitutionCard.vue | 3 +++
 aleksis/apps/chronos/frontend/messages/en.json             | 7 +++++++
 2 files changed, 10 insertions(+)

diff --git a/aleksis/apps/chronos/frontend/components/substitutions/SubstitutionCard.vue b/aleksis/apps/chronos/frontend/components/substitutions/SubstitutionCard.vue
index 85e07297..03aff820 100644
--- a/aleksis/apps/chronos/frontend/components/substitutions/SubstitutionCard.vue
+++ b/aleksis/apps/chronos/frontend/components/substitutions/SubstitutionCard.vue
@@ -31,6 +31,7 @@ import createOrPatchMixin from "aleksis.core/mixins/createOrPatchMixin.js";
         hide-details
         :value="subject"
         :disabled="loading"
+        :label="$t('chronos.substitutions.overview.subject.label')"
         @input="subjectInput"
       />
 
@@ -46,6 +47,7 @@ import createOrPatchMixin from "aleksis.core/mixins/createOrPatchMixin.js";
         item-text="name"
         item-value="id"
         :disabled="loading"
+        :label="$t('chronos.substitutions.overview.rooms.label')"
         @input="roomsInput"
       >
         <template #prepend-inner>
@@ -103,6 +105,7 @@ import createOrPatchMixin from "aleksis.core/mixins/createOrPatchMixin.js";
         hide-details
         outlined
         :disabled="loading"
+        :label="$t('chronos.substitutions.overview.teacher.label')"
         @input="teachersInput"
       >
         <template #prepend-inner>
diff --git a/aleksis/apps/chronos/frontend/messages/en.json b/aleksis/apps/chronos/frontend/messages/en.json
index abd090cf..ad761950 100644
--- a/aleksis/apps/chronos/frontend/messages/en.json
+++ b/aleksis/apps/chronos/frontend/messages/en.json
@@ -65,12 +65,19 @@
           "cancelled": "Cancelled"
         },
         "teacher": {
+          "label": "Teachers",
           "status": {
             "absent": "Absent",
             "regular": "Regular",
             "new": "Substitution teacher"
           }
         },
+        "rooms": {
+          "label": "Rooms"
+        },
+        "subject": {
+          "label": "Subject"
+        },
         "comment": "Comment"
       }
     }
-- 
GitLab