@hed-hog/lms 0.0.268 → 0.0.270
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/hedhog/data/menu.yaml +8 -1
- package/hedhog/frontend/app/classes/[id]/page.tsx.ejs +1387 -0
- package/hedhog/frontend/app/classes/page.tsx.ejs +4 -4
- package/hedhog/frontend/app/courses/[id]/page.tsx.ejs +1237 -0
- package/hedhog/frontend/app/courses/[id]/structure/page.tsx.ejs +2642 -0
- package/hedhog/frontend/app/courses/page.tsx.ejs +825 -727
- package/hedhog/frontend/app/exams/[id]/attempt/page.tsx.ejs +976 -0
- package/hedhog/frontend/app/exams/[id]/questions/page.tsx.ejs +931 -0
- package/hedhog/frontend/app/exams/page.tsx.ejs +9 -7
- package/hedhog/frontend/app/training/page.tsx.ejs +3 -3
- package/hedhog/frontend/messages/en.json +703 -14
- package/hedhog/frontend/messages/pt.json +863 -174
- package/hedhog/query/triggers.sql +0 -0
- package/hedhog/table/certificate.yaml +89 -0
- package/hedhog/table/certificate_template.yaml +24 -0
- package/hedhog/table/course.yaml +67 -1
- package/hedhog/table/course_category.yaml +22 -0
- package/hedhog/table/course_class_attendance.yaml +34 -0
- package/hedhog/table/course_class_group.yaml +58 -0
- package/hedhog/table/course_class_session.yaml +38 -0
- package/hedhog/table/course_class_session_instructor.yaml +27 -0
- package/hedhog/table/course_enrollment.yaml +45 -0
- package/hedhog/table/course_image.yaml +33 -0
- package/hedhog/table/course_lesson.yaml +35 -0
- package/hedhog/table/course_lesson_file.yaml +23 -0
- package/hedhog/table/course_lesson_instructor.yaml +27 -0
- package/hedhog/table/course_lesson_progress.yaml +40 -0
- package/hedhog/table/course_lesson_question.yaml +24 -0
- package/hedhog/table/course_module.yaml +25 -0
- package/hedhog/table/course_prerequisite.yaml +48 -0
- package/hedhog/table/evaluation_rating.yaml +30 -0
- package/hedhog/table/evaluation_topic.yaml +68 -0
- package/hedhog/table/exam.yaml +91 -0
- package/hedhog/table/exam_answer.yaml +40 -0
- package/hedhog/table/exam_attempt.yaml +51 -0
- package/hedhog/table/exam_image.yaml +33 -0
- package/hedhog/table/exam_option.yaml +25 -0
- package/hedhog/table/exam_question.yaml +24 -0
- package/hedhog/table/image_type.yaml +28 -0
- package/hedhog/table/instructor.yaml +23 -0
- package/hedhog/table/learning_path.yaml +49 -0
- package/hedhog/table/learning_path_enrollment.yaml +33 -0
- package/hedhog/table/learning_path_image.yaml +33 -0
- package/hedhog/table/learning_path_step.yaml +43 -0
- package/hedhog/table/question.yaml +15 -0
- package/package.json +9 -6
- package/src/index.ts +1 -1
- package/src/lms.module.ts +15 -15
- package/hedhog/table/classes.yaml +0 -3
- package/hedhog/table/exams.yaml +0 -3
- package/hedhog/table/reports.yaml +0 -3
- package/hedhog/table/training.yaml +0 -3
|
@@ -661,7 +661,7 @@ export default function TurmasPage() {
|
|
|
661
661
|
</div>
|
|
662
662
|
|
|
663
663
|
{/* Search bar */}
|
|
664
|
-
<form onSubmit={handleSearch} className="mb-
|
|
664
|
+
<form onSubmit={handleSearch} className="mt-4 mb-2">
|
|
665
665
|
<div className="flex flex-col gap-3 sm:flex-row sm:items-center">
|
|
666
666
|
<div className="relative flex-1">
|
|
667
667
|
<Search className="absolute left-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground" />
|
|
@@ -812,7 +812,7 @@ export default function TurmasPage() {
|
|
|
812
812
|
<Button
|
|
813
813
|
variant="ghost"
|
|
814
814
|
size="icon"
|
|
815
|
-
className="size-8 shrink-0
|
|
815
|
+
className="size-8 shrink-0 -mr-2 -mt-1"
|
|
816
816
|
onClick={(e) => e.stopPropagation()}
|
|
817
817
|
aria-label={t('cards.actions.label')}
|
|
818
818
|
>
|
|
@@ -823,7 +823,7 @@ export default function TurmasPage() {
|
|
|
823
823
|
<DropdownMenuItem
|
|
824
824
|
onClick={(e) => {
|
|
825
825
|
e.stopPropagation();
|
|
826
|
-
router.push(`/
|
|
826
|
+
router.push(`/lms/classes/${turma.id}`);
|
|
827
827
|
}}
|
|
828
828
|
>
|
|
829
829
|
<Eye className="mr-2 size-4" />{' '}
|
|
@@ -1213,7 +1213,7 @@ export default function TurmasPage() {
|
|
|
1213
1213
|
/>
|
|
1214
1214
|
<FieldError>{form.formState.errors.horario?.message}</FieldError>
|
|
1215
1215
|
</Field>
|
|
1216
|
-
<SheetFooter className="mt-auto shrink-0 gap-2 pt-4">
|
|
1216
|
+
<SheetFooter className="mt-auto shrink-0 gap-2 pt-4 px-0">
|
|
1217
1217
|
<Button type="submit" disabled={saving} className="gap-2">
|
|
1218
1218
|
{saving && <Loader2 className="size-4 animate-spin" />}
|
|
1219
1219
|
{editingTurma
|