From a767b3f450a9e80ff2d3e5a09aa210241aaf0c24 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?=
Date: Tue, 21 May 2019 13:55:43 +0200
Subject: [PATCH] MOBILE-3038 competency: Adapt information to new fields show
on web
---
scripts/langindex.json | 5 +-
.../course/addon-competency-course.html | 68 ++++++++++++-------
src/addon/competency/lang/en.json | 3 +
.../pages/competencies/competencies.html | 2 +-
.../pages/competency/competency.html | 20 +++---
src/addon/competency/pages/plan/plan.html | 7 +-
.../competency/pages/planlist/planlist.html | 2 +-
src/assets/lang/en.json | 3 +
8 files changed, 74 insertions(+), 36 deletions(-)
diff --git a/scripts/langindex.json b/scripts/langindex.json
index 43ba30b47..f8ef1bf84 100644
--- a/scripts/langindex.json
+++ b/scripts/langindex.json
@@ -111,9 +111,11 @@
"addon.competency.myplans": "tool_lp",
"addon.competency.noactivities": "tool_lp",
"addon.competency.nocompetencies": "local_moodlemobileapp",
+ "addon.competency.nocompetenciesincourse": "tool_lp",
"addon.competency.nocrossreferencedcompetencies": "tool_lp",
"addon.competency.noevidence": "tool_lp",
"addon.competency.noplanswerecreated": "tool_lp",
+ "addon.competency.nouserplanswithcompetency": "competency",
"addon.competency.path": "tool_lp",
"addon.competency.planstatusactive": "competency",
"addon.competency.planstatuscomplete": "competency",
@@ -126,6 +128,7 @@
"addon.competency.reviewstatus": "tool_lp",
"addon.competency.status": "tool_lp",
"addon.competency.template": "tool_lp",
+ "addon.competency.uponcoursecompletion": "tool_lp",
"addon.competency.usercompetencystatus_idle": "competency",
"addon.competency.usercompetencystatus_inreview": "competency",
"addon.competency.usercompetencystatus_waitingforreview": "competency",
@@ -1692,6 +1695,7 @@
"core.settings.enablerichtexteditor": "local_moodlemobileapp",
"core.settings.enablerichtexteditordescription": "local_moodlemobileapp",
"core.settings.enablesyncwifi": "local_moodlemobileapp",
+ "core.settings.entriesincache": "local_moodlemobileapp",
"core.settings.errordeletesitefiles": "local_moodlemobileapp",
"core.settings.errorsyncsite": "local_moodlemobileapp",
"core.settings.estimatedfreespace": "local_moodlemobileapp",
@@ -1710,7 +1714,6 @@
"core.settings.privacypolicy": "local_moodlemobileapp",
"core.settings.pushid": "local_moodlemobileapp",
"core.settings.reportinbackground": "local_moodlemobileapp",
- "core.settings.entriesincache": "local_moodlemobileapp",
"core.settings.settings": "moodle",
"core.settings.showdownloadoptions": "local_moodlemobileapp",
"core.settings.sites": "moodle",
diff --git a/src/addon/competency/components/course/addon-competency-course.html b/src/addon/competency/components/course/addon-competency-course.html
index c8636ff41..041646947 100644
--- a/src/addon/competency/components/course/addon-competency-course.html
+++ b/src/addon/competency/components/course/addon-competency-course.html
@@ -4,18 +4,19 @@
0">
-
- {{ 'addon.competency.coursecompetencyratingsarepushedtouserplans' | translate }}
-
-
- {{ 'addon.competency.coursecompetencyratingsarenotpushedtouserplans' | translate }}
-
-
- {{ 'addon.competency.progress' | translate }}:
- {{ 'addon.competency.xcompetenciesproficientoutofyincourse' | translate:{$a: {x: competencies.statistics.proficientcompetencycount, y: competencies.statistics.competencycount} } }} ({{ competencies.statistics.proficientcompetencypercentageformatted }}%)
+
+
+ {{ 'addon.competency.coursecompetencyratingsarepushedtouserplans' | translate }}
+
+
+ {{ 'addon.competency.coursecompetencyratingsarenotpushedtouserplans' | translate }}
+
+
+
+ {{ 'addon.competency.xcompetenciesproficientoutofyincourse' | translate:{$a: {x: competencies.statistics.proficientcompetencycount, y: competencies.statistics.competencycount} } }}
- 0">
+ 0">
{{ 'addon.competency.competenciesmostoftennotproficientincourse' | translate }}:
@@ -25,42 +26,63 @@
- 0">{{ 'addon.competency.competencies' | translate }}
+ 0">{{ 'addon.competency.coursecompetencies' | translate }}
-
+
diff --git a/src/addon/competency/lang/en.json b/src/addon/competency/lang/en.json
index a36bacbd7..e09256cb0 100644
--- a/src/addon/competency/lang/en.json
+++ b/src/addon/competency/lang/en.json
@@ -23,9 +23,11 @@
"myplans": "My learning plans",
"noactivities": "No activities",
"nocompetencies": "No competencies",
+ "nocompetenciesincourse": "No competencies have been linked to this course.",
"nocrossreferencedcompetencies": "No other competencies have been cross-referenced to this competency.",
"noevidence": "No evidence",
"noplanswerecreated": "No learning plans were created.",
+ "nouserplanswithcompetency": "No learning plans contain this competency.",
"path": "Path:",
"planstatusactive": "Active",
"planstatuscomplete": "Complete",
@@ -38,6 +40,7 @@
"reviewstatus": "Review status",
"status": "Status",
"template": "Learning plan template",
+ "uponcoursecompletion": "Upon course completion:",
"usercompetencystatus_idle": "Idle",
"usercompetencystatus_inreview": "In review",
"usercompetencystatus_waitingforreview": "Waiting for review",
diff --git a/src/addon/competency/pages/competencies/competencies.html b/src/addon/competency/pages/competencies/competencies.html
index 6319eafd3..b89d3a0e0 100644
--- a/src/addon/competency/pages/competencies/competencies.html
+++ b/src/addon/competency/pages/competencies/competencies.html
@@ -11,7 +11,7 @@
- {{ competency.competency.shortname }} {{competency.competency.idnumber}}
+ {{ competency.competency.shortname }} {{competency.competency.idnumber}}
{{ competency.usercompetency.gradename }}
{{ competency.usercompetencycourse.gradename }}
diff --git a/src/addon/competency/pages/competency/competency.html b/src/addon/competency/pages/competency/competency.html
index 34bf134cc..dc048e446 100644
--- a/src/addon/competency/pages/competency/competency.html
+++ b/src/addon/competency/pages/competency/competency.html
@@ -21,9 +21,13 @@
{{ 'addon.competency.path' | translate }}
- {{ competency.competency.comppath.framework.name }}
+ {{ competency.competency.comppath.framework.name }}
+ {{ competency.competency.comppath.framework.name }}
+ /
- / {{ ancestor.name }}
+ {{ ancestor.name }}
+ {{ ancestor.name }}
+ /
@@ -38,21 +42,21 @@
- {{ 'addon.competency.activities' | translate }}:
-
+ {{ 'addon.competency.activities' | translate }}
+
{{ 'addon.competency.noactivities' | translate }}
-
+
- {{ 'addon.competency.reviewstatus' | translate }}:
+ {{ 'addon.competency.reviewstatus' | translate }}
{{ competency.usercompetency.statusname }}
- {{ 'addon.competency.proficient' | translate }}:
+ {{ 'addon.competency.proficient' | translate }}
{{ 'core.yes' | translate }}
@@ -61,7 +65,7 @@
- {{ 'addon.competency.rating' | translate }}:
+ {{ 'addon.competency.rating' | translate }}
{{ competency.usercompetency.gradename }}
diff --git a/src/addon/competency/pages/plan/plan.html b/src/addon/competency/pages/plan/plan.html
index f84bc276e..f8c5a91da 100644
--- a/src/addon/competency/pages/plan/plan.html
+++ b/src/addon/competency/pages/plan/plan.html
@@ -16,6 +16,9 @@
+
+
+
{{ 'addon.competency.status' | translate }}:
{{ plan.plan.statusname }}
@@ -36,13 +39,13 @@
- {{ 'addon.competency.learningplancompetencies' | translate }}
+ {{ 'addon.competency.learningplancompetencies' | translate }}
{{ 'addon.competency.nocompetencies' | translate }}
- {{competency.competency.shortname}} {{competency.competency.idnumber}}
+ {{competency.competency.shortname}} {{competency.competency.idnumber}}
{{ competency.usercompetency.gradename }}
diff --git a/src/addon/competency/pages/planlist/planlist.html b/src/addon/competency/pages/planlist/planlist.html
index 9088d2cf6..485ce2a45 100644
--- a/src/addon/competency/pages/planlist/planlist.html
+++ b/src/addon/competency/pages/planlist/planlist.html
@@ -15,7 +15,7 @@
{{ plan.name }}
0">{{ 'addon.competency.duedate' | translate }}: {{ plan.duedate * 1000 | coreFormatDate :'strftimedatetimeshort' }}
- {{ plan.statusname }}
+ {{ plan.statusname }}
diff --git a/src/assets/lang/en.json b/src/assets/lang/en.json
index 70f0b0601..a8b19c023 100644
--- a/src/assets/lang/en.json
+++ b/src/assets/lang/en.json
@@ -111,9 +111,11 @@
"addon.competency.myplans": "My learning plans",
"addon.competency.noactivities": "No activities",
"addon.competency.nocompetencies": "No competencies",
+ "addon.competency.nocompetenciesincourse": "No competencies have been linked to this course.",
"addon.competency.nocrossreferencedcompetencies": "No other competencies have been cross-referenced to this competency.",
"addon.competency.noevidence": "No evidence",
"addon.competency.noplanswerecreated": "No learning plans were created.",
+ "addon.competency.nouserplanswithcompetency": "No learning plans contain this competency.",
"addon.competency.path": "Path:",
"addon.competency.planstatusactive": "Active",
"addon.competency.planstatuscomplete": "Complete",
@@ -126,6 +128,7 @@
"addon.competency.reviewstatus": "Review status",
"addon.competency.status": "Status",
"addon.competency.template": "Learning plan template",
+ "addon.competency.uponcoursecompletion": "Upon course completion:",
"addon.competency.usercompetencystatus_idle": "Idle",
"addon.competency.usercompetencystatus_inreview": "In review",
"addon.competency.usercompetencystatus_waitingforreview": "Waiting for review",