-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/retard
- Loading branch information
Showing
14 changed files
with
228 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 22 additions & 29 deletions
51
src/main/resources/public/app/components/dashboardCourseOverview.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,24 @@ | ||
<div ng-init="init()"> | ||
<table layout-fill> | ||
<tr> | ||
<td colspan="3"><span class="md-headline">{{$ctrl.name}}</span></td> | ||
</tr> | ||
<tr> | ||
<td><span class="md-subhead" flex="">Status</span></td> | ||
<td><span class="md-subhead" flex="">Group grade</span></td> | ||
<td><span class="md-subhead" flex="">Your grade</span></td> | ||
</tr> | ||
<tr> | ||
<td><span ng-class="$ctrl.groupStatusClass" class="md-title">{{$ctrl.groupStatus}}</span></td> | ||
<td><span class="md-title grade">{{$ctrl.group.groupGrade.grade}}</span></td> | ||
<td><span class="md-title grade">{{$ctrl.finalGrade}}</span></td> | ||
</tr> | ||
<tr> | ||
<td colspan="2"> | ||
<div class="md-caption" ng-repeat="member in groupMembers"> | ||
<div ng-if="!$last"> | ||
{{member.name}}, | ||
</div> | ||
<div ng-if="$last"> | ||
{{member.name}} | ||
</div> | ||
</div> | ||
</td> | ||
</tr> | ||
</table> | ||
<hr> | ||
<table layout-fill> | ||
<tr> | ||
<td colspan="3"><span class="md-headline">{{$ctrl.name}}</span></td> | ||
</tr> | ||
<tr> | ||
<td><span class="md-subhead">Status</span></td> | ||
<td><span class="md-subhead">Group grade</span></td> | ||
<td><span class="md-subhead">Your grade</span></td> | ||
</tr> | ||
<tr> | ||
<td class="align-status"><span ng-class="$ctrl.groupStatusClass" class="md-title">{{$ctrl.groupStatus}}</span></td> | ||
<td><span class="md-title grade">{{$ctrl.groupGrade}}</span></td> | ||
<td><span class="md-title grade">{{$ctrl.finalGrade}}</span></td> | ||
</tr> | ||
</table> | ||
<div class="md-caption caption-compact" ng-repeat="member in $ctrl.group.users"> | ||
<div ng-if="!$last"> | ||
{{member.name}}, | ||
</div> | ||
<div ng-if="$last"> | ||
{{member.name}} | ||
</div> | ||
</div> | ||
|
35 changes: 17 additions & 18 deletions
35
src/main/resources/public/app/components/dashboardGradeOverview.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
<div ng-init="init()"> | ||
<table layout-fill> | ||
<tr> | ||
<td colspan="3"><span class="md-subhead dashboard-course-name">{{$ctrl.course.name}}</span></td> | ||
</tr> | ||
<tr> | ||
<td><span class="md-subhead" flex="">Group grade</span></td> | ||
<td><span class="md-subhead" flex="">Your grade</span></td> | ||
<td><span class="md-subhead" flex="">Change in grade</span></td> | ||
</tr> | ||
<tr> | ||
<td><span class="md-title grade">{{$ctrl.group.groupGrade.grade}}</span></td> | ||
<td><span class="md-title grade">{{$ctrl.finalGrade}}</span></td> | ||
<td><span ng-class="$ctrl.percentage" class="md-title grade">{{$ctrl.calculateGradeChange($ctrl.group.groupGrade.grade, $ctrl.finalGrade)}}</span></td> | ||
</tr> | ||
</table> | ||
<hr> | ||
</div> | ||
<table layout-fill> | ||
<tr> | ||
<td colspan="3"><span class="md-subhead dashboard-course-name">{{$ctrl.group.course.name}}</span></td> | ||
</tr> | ||
<tr> | ||
<td><span class="md-subhead" flex="">Group grade</span></td> | ||
<td><span class="md-subhead" flex="">Your grade</span></td> | ||
<td><span class="md-subhead" flex="">Change in grade</span></td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<span class="md-title grade">{{$ctrl.groupGrade}}</span> | ||
</td> | ||
<td><span class="md-title grade">{{$ctrl.finalGrade}}</span></td> | ||
<td><span ng-class="$ctrl.percentage" class="md-title grade">{{$ctrl.calculateGradeChange($ctrl.group.groupGrade.grade, $ctrl.finalGrade)}}</span></td> | ||
</tr> | ||
</table> |
26 changes: 26 additions & 0 deletions
26
src/main/resources/public/app/components/dashboardGroupOverview.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<table> | ||
<tr> | ||
<td>Course</td> | ||
<td class="md-subhead dashboard-course-name">{{$ctrl.group.course.name}}</td> | ||
</tr> | ||
<tr> | ||
<td>Education</td> | ||
<td class="md-subhead dashboard-course-name">{{$ctrl.group.course.education.name}}</td> | ||
</tr> | ||
<tr> | ||
<td>Group name</td> | ||
<td class="md-subhead dashboard-course-name">{{$ctrl.group.groupName}}</td> | ||
</tr> | ||
<tr> | ||
<td ng-if="$ctrl.group.groupGrade.grade">Group grade</td> | ||
<td ng-if="$ctrl.group.groupGrade.grade" class="md-subhead dashboard-course-name">{{$ctrl.group.groupGrade.grade}}</td> | ||
</tr> | ||
</table> | ||
<div class="md-caption caption-compact" ng-repeat="member in $ctrl.group.users"> | ||
<div ng-if="!$last"> | ||
{{member.name}}, | ||
</div> | ||
<div ng-if="$last"> | ||
{{member.name}} | ||
</div> | ||
</div> |
2 changes: 1 addition & 1 deletion
2
src/main/resources/public/app/components/dashboardProjectsOverview.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
src/main/resources/public/app/components/empty.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<div class="empty-page-wrap"> | ||
<md-title class="empty-page-txt">Nothing to see here...yet</md-title> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
app.component('empty', { | ||
templateUrl: '/app/components/empty.component.html' | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,61 @@ | ||
<h1>Teacher Dashboard</h1> | ||
<div ng-cloak ng-controller="TeacherGroupsCtrl" ng-init="onInit()"> | ||
<div layout="row"> | ||
<div flex> | ||
<md-card> | ||
<md-card-content> | ||
<span class="md-subhead dashboard-card-title">Projects Overview</span> | ||
<dashboard-projects-overview></dashboard-projects-overview> | ||
</md-card-content> | ||
</md-card> | ||
</div> | ||
</div> | ||
<div layout="row"> | ||
<div flex> | ||
<md-card> | ||
<md-card-content> | ||
<label>Amount to show</label> | ||
<md-select aria-label="Select amount of groups to show" class="dashboard-select" ng-model="limit" md-selected-text="limit"> | ||
<md-optgroup label="options"> | ||
<md-option ng-value="option" ng-repeat="option in limitOptions">{{option}}</md-option> | ||
</md-optgroup> | ||
</md-select> | ||
</md-card-content> | ||
</md-card> | ||
</div> | ||
</div> | ||
<div layout="row" layout-xs="column" layout-sm="column"> | ||
<div flex> | ||
<md-card class="teacher-dashboard-groups"> | ||
<md-card-content> | ||
<span class="md-subhead dashboard-card-title">Recent closed</span> | ||
<span ng-repeat="group in closed | orderBy:'-id' | limitTo: limit"> | ||
<dashboard-group-overview group="group"></dashboard-group-overview> | ||
<md-divider ng-if="!$last"></md-divider> | ||
</span> | ||
</md-card-content> | ||
</md-card> | ||
</div> | ||
<div flex> | ||
<md-card class="teacher-dashboard-groups"> | ||
<md-card-content> | ||
<span class="md-subhead dashboard-card-title">Recent open</span> | ||
<span ng-repeat="group in open | orderBy:'-id' | limitTo: limit"> | ||
<dashboard-group-overview group="group"></dashboard-group-overview> | ||
<md-divider ng-if="!$last"></md-divider> | ||
</span> | ||
</md-card-content> | ||
</md-card> | ||
</div> | ||
<div flex> | ||
<md-card class="teacher-dashboard-groups"> | ||
<md-card-content> | ||
<span class="md-subhead dashboard-card-title">Recent pending</span> | ||
<span ng-repeat="group in pending | orderBy:'-id' | limitTo: limit"> | ||
<dashboard-group-overview group="group"></dashboard-group-overview> | ||
<md-divider ng-if="!$last"></md-divider> | ||
</span> | ||
</md-card-content> | ||
</md-card> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.