TEST UPD
-schoolchildprofile bug of learn_subjects -front
This commit is contained in:
@@ -139,7 +139,7 @@
|
||||
<div class="p-6">
|
||||
<div v-if="schoolProfile.data.exams && schoolProfile.data.exams.length > 0" class="flex flex-wrap gap-2">
|
||||
<span v-for="exam in schoolProfile.data.exams" :key="exam"
|
||||
class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-teal-100 text-teal-800">
|
||||
class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-teal-100">
|
||||
{{ exam }}
|
||||
</span>
|
||||
</div>
|
||||
@@ -154,7 +154,7 @@
|
||||
<div class="p-6">
|
||||
<div v-if="schoolProfile.data.learn_subjects && schoolProfile.data.learn_subjects.length > 0" class="flex flex-wrap gap-2">
|
||||
<span v-for="subject in schoolProfile.data.learn_subjects" :key="subject"
|
||||
class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-100 text-blue-800">
|
||||
class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-teal-100">
|
||||
{{ subject }}
|
||||
</span>
|
||||
</div>
|
||||
@@ -327,7 +327,7 @@
|
||||
<div class="grid grid-cols-2 gap-3 max-h-48 overflow-y-auto p-3 border border-gray-200 rounded-lg bg-gray-50">
|
||||
<label v-for="s in learnOptions" :key="s" class="flex items-center space-x-3 p-2 hover:bg-white rounded-md transition-colors cursor-pointer">
|
||||
<input type="checkbox" :value="s" v-model="form.learn_subjects"
|
||||
class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded" />
|
||||
class="h-4 w-4 text-teal-600 focus:ring-teal-500 border-gray-300 rounded" />
|
||||
<span class="text-sm text-gray-700">{{ s }}</span>
|
||||
</label>
|
||||
</div>
|
||||
@@ -427,15 +427,6 @@
|
||||
.overflow-y-auto::-webkit-scrollbar-thumb:hover {
|
||||
background: #a1a1a1;
|
||||
}
|
||||
|
||||
/* Стили для тегов-чипов */
|
||||
.bg-teal-100 {
|
||||
background-color: rgba(192, 132, 252, 0.2);
|
||||
}
|
||||
|
||||
.bg-blue-100 {
|
||||
background-color: rgba(96, 165, 250, 0.2);
|
||||
}
|
||||
</style>
|
||||
|
||||
<!-- Скрипт остается без изменений -->
|
||||
@@ -524,7 +515,7 @@ const schoolProfile = createResource({
|
||||
console.log('[DEBUG] Данные schoolProfile до трансформации:', doc);
|
||||
try {
|
||||
doc.exams = doc.exams ? doc.exams.map(e => e.exam_subject) : [];
|
||||
doc.learn_subjects = doc.learn_subjects ? doc.learn_subjects.map(s => s.subject) : [];
|
||||
doc.learn_subjects = doc.learn_subjects ? doc.learn_subjects.map(s => s.learn_subject) : [];
|
||||
} catch (e) {
|
||||
console.error('[DEBUG] Ошибка трансформации данных:', e);
|
||||
doc.exams = [];
|
||||
|
||||
@@ -7728,7 +7728,7 @@ msgstr "О себе"
|
||||
|
||||
#: frontend/src/pages/StudentProfile.vue:176
|
||||
msgid "About dreams"
|
||||
msgstr "О мечтахы"
|
||||
msgstr "О мечтах"
|
||||
|
||||
#: frontend/src/pages/StudentProfile.vue:193
|
||||
msgid "Profile data was not found"
|
||||
|
||||
Reference in New Issue
Block a user