2015-06-23 16:40:30 +00:00
|
|
|
<div class = "myClasses">
|
|
|
|
<md-content layout-padding layout-margin>
|
|
|
|
<h1 layout-margin style="margin-left:15px"><i class="fa fa-graduation-cap"></i> My Classes</h1>
|
|
|
|
</md-content>
|
2015-06-28 12:27:06 +00:00
|
|
|
<md-card class="cardAllcourses">
|
|
|
|
<div flex = "99" layout = "row" ng-repeat = "t in holdArrays" value = "{{t}}" layout-padding>
|
|
|
|
<div flex = "32" layout = "column" ng-repeat = "course in t" value = "{{course}}" >
|
2015-06-29 09:57:07 +00:00
|
|
|
<div ng-if = "!scope.coursesEmpty">
|
2015-06-28 12:27:06 +00:00
|
|
|
<div ng-if="t.length != 1">
|
|
|
|
<md-button ng-click = "goToClass(course.id)" style="width:100%; height:32%;" layout-padding class = "md-raised" >
|
2015-06-29 17:33:23 +00:00
|
|
|
<div style="width:97%;height:97%">
|
2015-06-28 12:27:06 +00:00
|
|
|
<md-card-content>
|
2015-06-29 09:57:07 +00:00
|
|
|
<h2 class="md-title">{{course.courseName}}</h2> <!-- Should Be "course.title" -->
|
2015-06-28 12:27:06 +00:00
|
|
|
</md-card-content>
|
2015-06-29 17:33:23 +00:00
|
|
|
</div>
|
2015-06-28 12:27:06 +00:00
|
|
|
</md-button>
|
|
|
|
</div>
|
|
|
|
<div ng-if="t.length == 1">
|
|
|
|
<md-button ng-click = "goToClass(course.id)" style="width:32%; height:32%;" layout-padding class = "md-raised" >
|
2015-06-29 17:33:23 +00:00
|
|
|
<div style="width:97%;height:97%">
|
2015-06-28 12:27:06 +00:00
|
|
|
<md-card-content>
|
2015-06-29 09:57:07 +00:00
|
|
|
<h2 class="md-title">{{course.courseName}}</h2> <!-- Should Be "course.title" -->
|
2015-06-28 12:27:06 +00:00
|
|
|
</md-card-content>
|
2015-06-29 17:33:23 +00:00
|
|
|
</div>
|
2015-06-28 12:27:06 +00:00
|
|
|
</md-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="spacer"></div>
|
2015-06-29 09:57:07 +00:00
|
|
|
<div ng-if = "scope.coursesEmpty">
|
2015-06-28 12:27:06 +00:00
|
|
|
You Are Not Related To Any Course, You May Join Any Course You Wish.
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-06-24 18:35:21 +00:00
|
|
|
</md-card>
|
2015-06-29 17:21:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- Lecturer Mode -->
|
|
|
|
<div ng-if="user.isLecturer">
|
2015-06-23 16:40:30 +00:00
|
|
|
<div layout="row">
|
|
|
|
<div layout-margin layout-padding>
|
|
|
|
<md-button ng-click="createCourseClicked()" ng class="md-raised md-primary">Create Class</md-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div ng-if="isNewCourse">
|
2015-06-27 09:45:44 +00:00
|
|
|
<md-content layout-padding>
|
|
|
|
<md-card layout-padding>
|
|
|
|
<div layout layout-sm="column">
|
|
|
|
<!-- <input ng-model="course.campusName" required> -->
|
2015-06-29 09:57:07 +00:00
|
|
|
<md-select placeholder = "Campus name" ng-model="course.campusName" ng-click = "chooseCampusClicked()" required>
|
2015-06-27 09:45:44 +00:00
|
|
|
<md-option ng-repeat="c in campuses" value="{{c.title}}">
|
|
|
|
{{c.title}}
|
|
|
|
</md-option>
|
|
|
|
</md-select>
|
|
|
|
</div>
|
|
|
|
<div layout layout-sm="column">
|
|
|
|
<md-input-container style="width:80%">
|
|
|
|
<label flex = "50">Class Name</label>
|
|
|
|
<input ng-model="course.courseName" min-length="1" required>
|
|
|
|
</md-input-container>
|
|
|
|
<md-input-container flex = "20">
|
|
|
|
<label>Course Start Date</label>
|
|
|
|
<input type="date" ng-model="course.startDate" required>
|
|
|
|
</md-input-container>
|
|
|
|
<md-input-container flex = "20">
|
|
|
|
<label>Course Finish Date</label>
|
|
|
|
<input type="date" ng-model="course.endDate" required>
|
|
|
|
</md-input-container>
|
|
|
|
</div>
|
|
|
|
</md-card>
|
|
|
|
|
2015-06-23 16:40:30 +00:00
|
|
|
<div layout-padding layout-margin>
|
|
|
|
<md-button ng-click="submitNewClassClicked()" class="md-raised md-primary">Submit New Class</md-button>
|
|
|
|
</div>
|
|
|
|
</md-content>
|
|
|
|
</div>
|
2015-06-29 17:21:05 +00:00
|
|
|
</div>
|
2015-06-29 10:06:13 +00:00
|
|
|
<!-- <div layout-margin layout-padding ng-if="showMyClass">
|
2015-06-23 16:40:30 +00:00
|
|
|
<md-select placeholder="Choose Existing Course" ng-model="course" ng-click="chooseCourseClicked()" class="courseDropDown">
|
|
|
|
<md-option ng-repeat="c in courses" value="{{c.course}}">{{c.course}}</md-option>
|
|
|
|
</md-select>
|
2015-06-29 10:06:13 +00:00
|
|
|
</div> -->
|
2015-06-29 17:21:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- Student Mode -->
|
|
|
|
<!-- <div ng-if="isStudent">
|
2015-06-23 16:40:30 +00:00
|
|
|
<md-content layout-padding>
|
|
|
|
<div layout="row" layout-margin layout-padding>
|
|
|
|
<div>
|
|
|
|
<md-card>
|
|
|
|
<p class = "messagesFeed">Messages</p>
|
|
|
|
</md-card>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<md-card>
|
|
|
|
<p class = "tasksFeed">Tasks</p>
|
|
|
|
</md-card>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div layout="row" layout-margin layout-padding>
|
|
|
|
<div>
|
|
|
|
<md-card>
|
|
|
|
<p id = "bindText" class = "messagesContent"></p>
|
|
|
|
</md-card>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<md-card>
|
|
|
|
<p class = "tasksContent">
|
|
|
|
For Task 3 Press: <a href="http://localhost:8080/home#/tasks">Task #3</a>
|
|
|
|
<br></br>
|
|
|
|
For Task 4 Press: <a href="http://localhost:8080/home#/home">Task #4</a>
|
|
|
|
<br></br>
|
|
|
|
For Task 5 Press: <a href="http://localhost:8080/home#/home">Task #5</a>
|
|
|
|
</p>
|
|
|
|
</md-card>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<md-select placeholder="Choose Course" ng-model="course" ng-click="chooseCourseClicked()" style="z-index: 300"></md-select>
|
|
|
|
</md-content>
|
2015-06-29 17:21:05 +00:00
|
|
|
</div> -->
|
2015-06-23 16:40:30 +00:00
|
|
|
</div>
|