se-hub/templates/views/tasks.html

106 lines
3.3 KiB
HTML
Raw Permalink Normal View History

2015-08-02 18:46:42 +00:00
<md-content layout-padding>
<h1>
<i class="fa fa-clipboard"></i> Tasks
</h1>
<div ng-if='loading'>
</div>
2015-08-02 12:39:39 +00:00
2015-08-02 18:46:42 +00:00
<div ng-if='!loading'>
<md-content layout-padding>
<md-tabs md-dynamic-height md-border-bottom>
2015-08-02 19:18:17 +00:00
<md-tab label="{{class.courseName}}" ng-repeat="class in tasks">
2015-08-02 18:46:42 +00:00
<md-content class="md-padding">
2015-08-02 19:18:17 +00:00
<h1 class="md-display-2">{{class.courseName}} Tasks</h1>
2015-08-02 18:46:42 +00:00
<div>
<div layout='row' layout-align="center center">
<div class="spacer"></div>
<div>
<h2>Personal</h2>
</div>
2015-08-02 18:46:42 +00:00
<div class="spacer"></div>
<div>
<h2>Project</h2>
</div>
<div class="spacer"></div>
</div>
<div layout='row' style="width: 100%">
<div layout='row' style="width: 100%">
<div class='Personal' layout='row' flex='50'>
<div>
<h3>Task Name</h3>
</div>
<div class='spacer'></div>
<div>
<h3>
Submitters
</h3>
</div>
</div>
<div style='padding: 0px 5px 0px 5px; margin-top: auto; margin-bottom: auto'>
|
</div>
<div class='Project' layout='row' flex='50'>
<div>
<h3>Task Name</h3>
</div>
<div class='spacer'></div>
<div>
<h3>
Submitters
</h3>
</div>
</div>
</div>
</div>
<div layout='row' style='width:100%'>
<div layout='row' style='width:100%'>
2015-08-02 19:18:17 +00:00
<div class="Personal" style='width:100%' >
<div layout='column' ng-repeat="personalTask in class.PersonalTasks">
<div>
2015-08-02 20:53:20 +00:00
<md-button style='width: 100%' layout='row' ng-click="taskClicked(personalTask, class.courseId, true, class.master_id, $event)">
2015-08-02 19:18:17 +00:00
<div>
{{personalTask.title}}
</div>
<div class='spacer'></div>
<div ng-if='user.id === class.master_id'> {{personalTask.submitted.done}} / {{personalTask.submitted.total}} </div>
<div ng-if='user.id !== class.master_id'> {{personalTask.grade.grade || "Not Yet Reviewed"}} </div>
</div>
</md-button>
</div>
</div>
2015-08-02 18:46:42 +00:00
</div>
<div style='padding: 0px 5px 0px 5px; margin-top: auto; margin-bottom: auto'>
</div>
2015-08-02 19:18:17 +00:00
<div class="Project" style='width:100%'>
<div layout='column' ng-repeat="projectTask in class.projectTasks">
2015-08-02 20:53:20 +00:00
<md-button style='width: 100%' layout='row' ng-click="taskClicked(projectTask, class.courseId, false, class.master_id, $event)">
2015-08-02 19:18:17 +00:00
<div>
{{projectTask.title}}
</div>
<div class='spacer'></div>
<div ng-if='user.id === class.master_id'> {{projectTask.submitted.done}} / {{projectTask.submitted.total}} </div>
<div ng-if='user.id !== class.master_id'> {{projectTask.grade.grade || "Not Yet Reviewed"}} </div>
2015-08-02 18:46:42 +00:00
</div>
2015-08-02 19:18:17 +00:00
</md-button>
</div>
2015-08-02 18:46:42 +00:00
</div>
</div>
</div>
</div>
2015-08-02 18:46:42 +00:00
</md-content>
</md-tab>
</md-tabs>
</md-content>
</div>
</md-content>