Skip to content

Commit 8cbc170

Browse files
Merge pull request #192 from akolson/adds-new-modalities
Adds new modalities course, unit, and lesson
2 parents 02569e7 + 788be32 commit 8cbc170

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

js/Modalities.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
// Modalities
44

55
export default {
6+
COURSE: "COURSE",
67
CUSTOM_NAVIGATION: "CUSTOM_NAVIGATION",
8+
LESSON: "LESSON",
79
QUIZ: "QUIZ",
810
SURVEY: "SURVEY",
11+
UNIT: "UNIT",
912
};

le_utils/constants/modalities.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,27 @@
44

55
# Modalities
66

7+
COURSE = "COURSE"
78
CUSTOM_NAVIGATION = "CUSTOM_NAVIGATION"
9+
LESSON = "LESSON"
810
QUIZ = "QUIZ"
911
SURVEY = "SURVEY"
12+
UNIT = "UNIT"
1013

1114
choices = (
15+
(COURSE, "Course"),
1216
(CUSTOM_NAVIGATION, "Custom Navigation"),
17+
(LESSON, "Lesson"),
1318
(QUIZ, "Quiz"),
1419
(SURVEY, "Survey"),
20+
(UNIT, "Unit"),
1521
)
1622

1723
MODALITIESLIST = [
24+
COURSE,
1825
CUSTOM_NAVIGATION,
26+
LESSON,
1927
QUIZ,
2028
SURVEY,
29+
UNIT,
2130
]

spec/constants-modalities.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
[
22
"QUIZ",
33
"CUSTOM_NAVIGATION",
4-
"SURVEY"
4+
"SURVEY",
5+
"COURSE",
6+
"UNIT",
7+
"LESSON"
58
]

0 commit comments

Comments
 (0)