Skip to content
This repository has been archived by the owner on Aug 21, 2018. It is now read-only.

840 course career path(connects #840) #882

Open
wants to merge 39 commits into
base: dev
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
72c77d2
[#840]: Layout Created For CareerPath
Pr0chin Jun 1, 2017
1c0bfd5
[#840]: Career Path
Pr0chin Jun 2, 2017
acce8e6
[#840] added multiselect feature
Rupesh87 Jun 2, 2017
ec0d6a9
[#840] Some Changes
Pr0chin Jun 2, 2017
6bf8c55
[#840]:CLean Conflict
Pr0chin Jun 2, 2017
0db709e
[#840] select value and save career
Rupesh87 Jun 5, 2017
d79ab6c
[#840]:Changes Made
Pr0chin Jun 5, 2017
3e23999
[#840]: Removed Conflit
Pr0chin Jun 5, 2017
472c573
[#840]:list of courseCareer
Rupesh87 Jun 5, 2017
b6b7650
[#840]:Upgrading
Pr0chin Jun 5, 2017
aa9400f
[#840]:Removed conflicts
Pr0chin Jun 5, 2017
72f41a5
[#840]:AddCourseCareer completed
Pr0chin Jun 5, 2017
1e319ff
[#840]:Setting new concept
Pr0chin Jun 6, 2017
efee3b0
[#840]:Some changes made
Pr0chin Jun 8, 2017
2d1ab43
[#840]:Upgraded some changes
Pr0chin Jun 9, 2017
8d181f6
[#840]save required career
Rupesh87 Jun 9, 2017
b79af87
[#840]-edit careerpath
Rupesh87 Jun 9, 2017
ed5410b
[#840]Delete and search
razu9861 Jun 9, 2017
59ac284
[#840]:Latest push Course Career
Pr0chin Jun 9, 2017
9d8958c
[#840]-changes on carrerpath
razu9861 Jun 12, 2017
6a26b1e
840-Remover Merge Conflict
Pr0chin Jun 13, 2017
de5b792
840:Changed as per required
Pr0chin Jun 14, 2017
4c288a7
[#840]:features added
razu9861 Jun 14, 2017
e65d1a9
[#840] Tab Function
Pr0chin Jun 16, 2017
a4fba58
[#840] Tab Functionality
Pr0chin Jun 19, 2017
dd4f37e
[#840] Upgraded changes
Pr0chin Jun 19, 2017
44cf88f
[#840] Made some changes
Pr0chin Jun 20, 2017
0ff745c
Merge branch '840-Course-Career-Path' of https://github.com/open-lear…
Pr0chin Jun 20, 2017
979fa97
[#840]-Career path
razu9861 Jun 21, 2017
422c207
[#840]:list career added
razu9861 Jun 26, 2017
1134278
[#840] Career Path
razu9861 Oct 9, 2017
e396ec4
[#840] careerpath
razu9861 Oct 11, 2017
a6395f6
[#840] unwanted files removed
razu9861 Oct 11, 2017
c9a06d2
careerppath
razu9861 Oct 27, 2017
c454d57
[#840] Career detail view
razu9861 Nov 2, 2017
e94449c
Merge branch 'dev' into 840-Course-Career-Path
razu9861 Jan 15, 2018
59256b6
[#840] indentation fixed
razu9861 Jan 15, 2018
731c52e
Update Text.json
razu9861 Jan 15, 2018
b14251a
[#840] indentation fixed
razu9861 Jan 15, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[#840]: Career Path
  • Loading branch information
Pr0chin committed Jun 2, 2017
commit 1c0bfd5fdd65d9949fb95eb0281c71e23b448a79
9 changes: 8 additions & 1 deletion app/MyApp/app/Router.js
Original file line number Diff line number Diff line change
@@ -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('<div id="ManageCourseCareer"></div>');
$('#ManageCourseCareer').append('<div><h2>'+App.languageDict.attributes.Add_Multiple_Courses+'</h2></div>')
30 changes: 23 additions & 7 deletions app/MyApp/app/views/AddCourseCareer.js
Original file line number Diff line number Diff line change
@@ -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() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this function if nothing is in it.


},

saveCareerPath: function(){
alert("What's up");
},

render: function() {
console.log(this.collection.models)
var arrcourses = []
for(var i = 0; i <this.collection.models.length; i++){
var courseslist = this.collection.models[i].attributes.CourseTitle
console.log(courseslist)
arrcourses.push(courseslist)
}
this.$el.find('.multipleCourse').append('<div class="btn btn-info" id="finishPressed">'+App.languageDict.attributes.Finish+'</div>&nbsp&nbsp');
this.vars.Courselist = arrcourses
this.vars.Course_Length = this.collection.models.length
this.$el.html(_.template(this.template,this.vars))
}
},


})
57 changes: 28 additions & 29 deletions app/MyApp/index.html
Original file line number Diff line number Diff line change
@@ -1445,48 +1445,47 @@ <h4 style="width:25em;word-wrap:break-word;">
<button style="margin-top: -186px; margin-left: 536px;" class='btn btn-primary' id="addNewCoursePath" onclick = "document.location.href='#courseCareerPath/add'" >Add New Career</button>
<button class="back_button btn btn-primary" style = "margin-left: -677px;"
onclick = "document.location.href='#courses'"><%= languageDict.attributes.Back_To_Course %></button>
<input id="searchText" type="Text" placeholder="Course Career Name" style="margin-top: -165px; margin-left: 1051px; height: 28px; width: 170px;">
<input id="searchText" type="Text" placeholder="Course Career Name" style="margin-top: -173px; margin-left: 1051px; height: 28px; width: 170px;">
<button style="margin-top: -242px; margin-left: 1395px;" class="Search btn btn-info" id="SearchCoursePath" >Search</button>
<div>
<table class="btable btable-striped">>
<th>Course Career</th>
<table class="btable btable-striped">
<th style="width: 430px">Course Career</th>
<th>Action<th>
</table>
</div>
</script>
<script type="text/template" id="template-addCourseCareer">
<button class="back_button btn btn-primary" onclick = "document.location.href='#courseCareerPath'"><%= languageDict.attributes.Back_To_Course_Career %></button>
<hr/>
<h4 id="new-quiz"><%= languageDict.attributes.New_Career_Path %></h4>
<style>
input[type=text], select { width: 22%%;padding: 26px 16px; margin:15px 4px;display: inline-block;border: 1px solid #ccc;border-radius: 4px;box-sizing: border-box;}
input[type=submit] { width: 100%;background-color: #4CAF50;color: white;padding: 14px 20px;margin: 8px 0;
border: none;border-radius: 4px;cursor: pointer;}}
</style>
<div>
<form action="/action_page.php">
<label for="fname">Level Name</label>
<input type="text" id="fname" name="firstname" placeholder="Leve Name">
<label for="lname">Course Career Path Name</label>
<input type="text" id="lname" name="lastname" placeholder="Course Career Path Name">
<label for="country">List of Courses</label>
<select id="country" Placeholder="List of Courses" name="country">
<option value="australia">Australia</option>
<option value="canada">Canada</option>
<option value="usa">USA</option>
<div class ="multipleCourse">
<form>
<label for="lName"><%= languageDict.attributes.Level_Name %></label>
<select id="LCourse" style="font-size: 15px;font-weight: 500;">
<option selected><%= languageDict.attributes.Select_An_option %></option>
<option value='Begineers'>Begineers</option>
<option value='Intermediate'>Intermediate</option>
<option value='Professional'>Professional</option>
</select>
<label for="cpName"><%= languageDict.attributes.Course_Career_Path_Name %></label>
<input type="text" id="careerPath" placeholder="Course Career Path Name" style = "padding-top: 12px; padding-bottom: 11px;">
<label for="LCourse"><%= languageDict.attributes.List_of_Courses %></label>
<select id="LCourse" style="font-size: 15px;font-weight: 500;">
<option selected><%= languageDict.attributes.Select_An_option %></option>
<%for(var i =0; i<Course_Length;i++){%>
<option value='<%=Courselist[i]%>'><%=Courselist[i]%></option>
<%}%>
</select>
<button id="AddCareerPath" class="course btn btn-success" style="margin-left: 23px;">Create Course Career</button>
<button id ="CancelCOursePath" class="btn resignBtn btn-danger" style="margin-left: 23px;" >Cancel</button>
<button id="AddCareerPath" class="course btn btn-success" style="margin-left: 23px; margin-top: -15px;"><%= languageDict.attributes.Create_Course_Career %></button>
<button id ="CancelCOursePath" class="btn resignBtn btn-danger" style="margin-left: 23px;margin-top: -15px;" ><%= languageDict.attributes.Cancel %></button>
</form>
</div>
<div>
<table class="btable btable-striped">
<tbody><tr><th style="width: 430px">Course Career</th>
<th>Action</th>
</tr>
<td> </td>
</tr>
</tbody>
</table
<table class="btable btable-striped">
<th style="width: 430px">Course Career</th>
<th style="width: 430px">Courses List</th>
<th>Action<th>
</table>
</div>

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove extra line

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra line

</script>
4 changes: 4 additions & 0 deletions init_docs/Text.json
Original file line number Diff line number Diff line change
@@ -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",