From 61a7d5d59f4cfd9a24c5009c8af6328cc2c02c79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Wed, 9 Feb 2022 16:53:09 +0100 Subject: [PATCH] MOBILE-3814 module: Re-order course module card info --- .../components/format/core-course-format.html | 14 +++---- .../core-course-module-manual-completion.html | 4 ++ .../components/module/core-course-module.html | 41 +++++++------------ .../course/components/module/module.ts | 1 - .../pages/module-preview/module-preview.html | 34 +++++++-------- 5 files changed, 42 insertions(+), 52 deletions(-) diff --git a/src/core/features/course/components/format/core-course-format.html b/src/core/features/course/components/format/core-course-format.html index e994ed9ec..a3aab99bf 100644 --- a/src/core/features/course/components/format/core-course-format.html +++ b/src/core/features/course/components/format/core-course-format.html @@ -74,16 +74,14 @@
- - - {{ 'core.course.hiddenfromstudents' | translate }} - + + {{ 'core.course.hiddenfromstudents' | translate }} +
- - - {{ 'core.notavailable' | translate }} - + + {{ 'core.notavailable' | translate }} +
diff --git a/src/core/features/course/components/module-manual-completion/core-course-module-manual-completion.html b/src/core/features/course/components/module-manual-completion/core-course-module-manual-completion.html index 50910193b..7da05d7ee 100644 --- a/src/core/features/course/components/module-manual-completion/core-course-module-manual-completion.html +++ b/src/core/features/course/components/module-manual-completion/core-course-module-manual-completion.html @@ -4,10 +4,14 @@ class="ion-text-wrap" [class.chip]="mode == 'basic'"> {{ 'core.course.completion_manual:done' | translate }} + {{ 'core.course.completion_manual:markdone' | translate }} + diff --git a/src/core/features/course/components/module/core-course-module.html b/src/core/features/course/components/module/core-course-module.html index 2b137539d..c057e42c0 100644 --- a/src/core/features/course/components/module/core-course-module.html +++ b/src/core/features/course/components/module/core-course-module.html @@ -29,6 +29,14 @@ class="ion-text-wrap ion-text-start" [outline]="true"> + + + + {{ 'core.course.hiddenfromstudents' | translate }} + + + {{ 'core.course.hiddenoncoursepage' | translate }} +
+ + + +

@@ -67,33 +80,7 @@

- - - - -
- - - {{ 'core.course.manualcompletionnotsynced' | translate }} - -
- - -
- - - {{ 'core.course.hiddenfromstudents' | translate }} - -
- -
- - - {{ 'core.course.hiddenoncoursepage' | translate }} - -
- +
diff --git a/src/core/features/course/components/module/module.ts b/src/core/features/course/components/module/module.ts index d3964f732..0761f2ad6 100644 --- a/src/core/features/course/components/module/module.ts +++ b/src/core/features/course/components/module/module.ts @@ -66,7 +66,6 @@ export class CoreCourseModuleComponent implements OnInit, OnDestroy { this.module.description || (this.showActivityDates && this.module.dates && this.module.dates.length) || (this.module.completiondata && this.showCompletionConditions && this.module.completiondata.isautomatic) || - this.module.completiondata?.offline || (this.module.visible === 0 && (!this.section || this.section.visible)) || (this.module.visible !== 0 && this.module.isStealth) || (this.module.availabilityinfo) diff --git a/src/core/features/course/pages/module-preview/module-preview.html b/src/core/features/course/pages/module-preview/module-preview.html index bd5b02506..f302e2299 100644 --- a/src/core/features/course/pages/module-preview/module-preview.html +++ b/src/core/features/course/pages/module-preview/module-preview.html @@ -28,33 +28,35 @@ [componentId]="module.id" [expandDescription]="true">
- +
-
- + + +
+ {{ 'core.course.hiddenfromstudents' | translate }}
-
- +
+ {{ 'core.course.hiddenoncoursepage' | translate }}
-
- - - - - -
-
- - {{ 'core.course.manualcompletionnotsynced' | translate }} + + +
+ + + + + +