diff --git a/app/MyApp/app/Router.js b/app/MyApp/app/Router.js
index 665bdded0..4680e5cd7 100644
--- a/app/MyApp/app/Router.js
+++ b/app/MyApp/app/Router.js
@@ -6742,7 +6742,14 @@ $(function() {
applyCorrectStylingSheet(directionOfLang)
},
addCareerPath:function(){
- var addCourseCareer = new App.Views.AddCourseCareer();
+ var courses = new App.Collections.Courses()
+ courses.memberId = $.cookie('Member._id');
+ courses.fetch({
+ async:false
+ });
+ var addCourseCareer = new App.Views.AddCourseCareer({
+ collection:courses
+ });
addCourseCareer.render()
App.$el.children('.body').html('
');
$('#ManageCourseCareer').append(''+App.languageDict.attributes.Add_Multiple_Courses+'
')
diff --git a/app/MyApp/app/views/AddCourseCareer.js b/app/MyApp/app/views/AddCourseCareer.js
index fe7ddb181..2aa78ddba 100644
--- a/app/MyApp/app/views/AddCourseCareer.js
+++ b/app/MyApp/app/views/AddCourseCareer.js
@@ -5,18 +5,34 @@ $(function() {
vars: {},
events: {
},
- "click .back_button":function()
- {
- Backbone.history.navigate('courseCareerPath' + this.levelId + '/' + this.revId, {
- trigger: true
- })
- },
+
+ "click #AddCareerPath": function(e) {
+ this.saveCareerPath();
+ },
+ "click #CancelCOursePath": function(e) {
+ this.saveCareerPath();
+ },
initialize: function() {
},
+
+ saveCareerPath: function(){
+ alert("What's up");
+ },
+
render: function() {
+ console.log(this.collection.models)
+ var arrcourses = []
+ for(var i = 0; i '+App.languageDict.attributes.Finish+'  ');
+ this.vars.Courselist = arrcourses
+ this.vars.Course_Length = this.collection.models.length
this.$el.html(_.template(this.template,this.vars))
- }
+ },
})
diff --git a/app/MyApp/index.html b/app/MyApp/index.html
index 01f7edaad..8ac3be520 100644
--- a/app/MyApp/index.html
+++ b/app/MyApp/index.html
@@ -1445,11 +1445,12 @@
-
+
-
>
- Course Career |
+
@@ -1457,36 +1458,34 @@
<%= languageDict.attributes.New_Career_Path %>
-
-
diff --git a/init_docs/Text.json b/init_docs/Text.json
index 57132b88c..49b83b697 100644
--- a/init_docs/Text.json
+++ b/init_docs/Text.json
@@ -74,6 +74,10 @@
"language": "Language",
"subject": "Subject(s)",
"level": "Level(s)",
+ "Level_Name":"Level Name",
+ "Course_Career_Path_Name":"Course Career Path Name",
+ "List_of_Courses":"List of Courses",
+ "Create_Course_Career":"Create Course Career",
"publisher_attribution": "Publisher/Attribution",
"link_to_license": "Link to License",
"resource_for": "Resource For",