-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
58 lines (58 loc) · 3.9 KB
/
index.html
File metadata and controls
58 lines (58 loc) · 3.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE html>
<html>
<head>
<link href="css/index.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div ng-app="myApp" ng-controller="createCourseCtrl">
<div class="left-pane inline">
<div class="filters">
Subject:<select ng-model="search.subject" ng-options="subject for subject in subjects"></select>
Grades:<select ng-model="search.grade" ng-options="grade for grade in grades"></select>
</div>
<ul>
<li ng-repeat="d in data | orderBy:'subject' | filter:search" class="icon-{{d.subject}}" draggable title="{{d.title}}" subject="{{d.subject}}">
<div class="pull-left">
<img class="subject-image" src="images/{{d.subject}}.jpg" />
</div>
<div class="pull-left">
<div>{{d.title}}</div>
<div class="subject-name">{{d.subject}}, Grade {{d.grade}}</div>
<div class="details">
<div ng-if="d.noOfVideos" class="inline"><span class="footer-text">{{d.noOfVideos}} </span><i class="icon-video icon"></i> </div>
<div ng-if="d.noOfDocuments" class="inline"><span class="footer-text">{{d.noOfDocuments}} </span><i class="icon-document icon"></i> </div>
<div ng-if="d.noOfQuestions" class="inline"><span class="footer-text">{{d.noOfQuestions}} </span><i class="icon-question icon"></i> </div>
</div>
</div>
</li>
</ul>
</div>
<div class="right-pane inline">
<h3 class="course-heading">Create a New Course</h3>
<input type="text" placeholder="Enter course name" ng-keydown="createCourse($event)" ng-hide="courseCreated" ng-model="courseTitle"/>
<h4 ng-hide="!courseCreated">{{courseTitle}}</h4>
<h3 class="topic-heading">Topics</h3>
<div ng-repeat="course in courses track by $index" class="course-container" ng-init="parentIndex = $index">
<div class="topic-wrapper">
<div class="inline topic-index">{{course}}</div>
<input type="text" placeholder="Topic {{course}}" ng-keydown="createTopic($event,course)" ng-hide="topicCreated[course]" ng-model="topicTitle"/>
<span ng-hide="!topicCreated[course]">{{topicTitle}}</span>
</div>
<div class="drop-area" ng-hide="dragEnd[lessons[parentIndex]]" dropable lessons="{{lessons[parentIndex]}}">Add lessons</div>
<div remove-course>
<div class="topic-name" ng-repeat="t in topics[lessons[parentIndex]] track by $index">
<span class="topic-details">{{$index +1}}.</span> <img class="subject-image-small" src="images/{{t.subject}}.jpg" /> <span class="topic-details">{{t.topic}}</span>
<span class="remove-course-topic" ng-click="removeCourse($index, lessons[parentIndex]);" title="Click to remove topic">×</span>
</div>
</div>
<div class="drop-area-final" dropable ng-show="dragEnd[lessons[parentIndex]]" lessons="{{lessons[parentIndex]}}">Drag to add more</div>
</div>
</div>
</div>
<script type="text/javascript" src="js/angular.min.js"></script>
<script type="text/javascript" src="js/controllers/index.js"></script>
<script type="text/javascript" src="js/directives/draggable.js"></script>
<script type="text/javascript" src="js/directives/droppable.js"></script>
<script type="text/javascript" src="js/directives/removeCourse.js"></script>
</body>
</html>