diff --git a/frontend/src/components/LessonHelp.vue b/frontend/src/components/LessonHelp.vue index f850e350..6be6a895 100644 --- a/frontend/src/components/LessonHelp.vue +++ b/frontend/src/components/LessonHelp.vue @@ -56,6 +56,23 @@ }} + +
+
+ + {{ __('What does include in preview mean?') }} + +
+
+ {{ + __( + 'If Include in Preview is enabled for a lesson then the lesson will also be accessible to non logged in users.' + ) + }} +
+
diff --git a/frontend/src/components/Modals/ChapterModal.vue b/frontend/src/components/Modals/ChapterModal.vue index b804f28c..4ceda151 100644 --- a/frontend/src/components/Modals/ChapterModal.vue +++ b/frontend/src/components/Modals/ChapterModal.vue @@ -2,11 +2,11 @@
{{ diff --git a/frontend/src/pages/CourseForm.vue b/frontend/src/pages/CourseForm.vue index a23fe42c..0936aa6e 100644 --- a/frontend/src/pages/CourseForm.vue +++ b/frontend/src/pages/CourseForm.vue @@ -27,10 +27,11 @@
-
+
{{ __('Course Description') }}
- - - -
-
+
+
{{ __('Course Image') }}
-
-
- + + + +
+
+ +
+ +
+ {{ __("Appears on the course card in the course list") }} +
+
-
- - {{ course.course_image.file_name }} - - - {{ getFileSize(course.course_image.file_size) }} - -
- +
@@ -104,6 +125,8 @@
@@ -130,7 +153,7 @@
+
+ +
+
+ +
+ {{ __("Create a Course") }} +
+ + {{ __("You can add chapters and lessons to it.") }} + +
+
+
+ +
-
-
- {{ __('No {0} courses found').format(tab.label.toLowerCase()) }} -
+ +
+ {{ __("No courses found") }} +
+
+ {{ __("There are no courses available at the moment. Keep an eye out, fresh learning experiences are on the way soon!") }}
@@ -127,13 +154,14 @@ import { createResource, } from 'frappe-ui' import CourseCard from '@/components/CourseCard.vue' -import { Plus, Search } from 'lucide-vue-next' +import { BookOpen, Plus, Search } from 'lucide-vue-next' import { ref, computed, inject, onMounted, watch } from 'vue' import { updateDocumentTitle } from '@/utils' const user = inject('$user') const searchQuery = ref('') const currentCategory = ref(null) +const noCoursesFound = ref(false) onMounted(() => { let queries = new URLSearchParams(location.search) @@ -145,7 +173,7 @@ onMounted(() => { const courses = createResource({ url: 'lms.lms.utils.get_courses', cache: ['courses', user.data?.email], - auto: true, + auto: true }) const tabIndex = ref(0) diff --git a/frontend/src/pages/LessonForm.vue b/frontend/src/pages/LessonForm.vue index dee621fd..80c1ee1d 100644 --- a/frontend/src/pages/LessonForm.vue +++ b/frontend/src/pages/LessonForm.vue @@ -69,7 +69,7 @@