unserver-unify
Version:
83 lines (82 loc) • 3.11 kB
HTML
<div ng-controller="UserExamTestRecordsCtrl as ctrl">
<div class="forum">
<div class="tag-box tag-box-v6 margin-bottom-20 text-right clearfix">
<div class="form-inline pull-left ipad_count_aln">
{{'Exam Records'|translate}} <span class="badge badge-green rounded-2x">{{ctrl.totalrecords}}</span>
</div>
</div>
</div>
<div class="panel">
<div class="panel-body">
<table class="table table-striped table-hover tbl_aln" st-pipe="ctrl.getRecord" st-table="userrecords">
<thead>
<tr class="info">
<th class="sortable" style="width:50%" st-sort="eid" translate="">
Name
</th>
<th translate="" style="width:18%">
Full Scores
</th>
<th class="sortable" style="width:18%" st-sort="score" translate="">
Scores
</th>
<th style="width:14%" ng-if="actionFlag">
{{'Action'| translate}}
</th>
</tr>
</thead>
<tbody>
<tr ng-if="userrecords | isEmpty">
<td class="text-center" colspan="4" style="font-size: 25px; padding: 30px 0;">
{{ 'No Records' | translate }}
</td>
</tr>
<tr ng-repeat="item in userrecords">
<td>
<b>{{item.paper.title}}</b> <div class="badge badge-sm" ng-class="{'badge-primary':item.reasontype=='exam'}">{{item.reasontype}}</div><br>
<b translate="">Course</b>: {{item.course.name}}<br>
</td>
<td class="text_indent10">
{{item.paper.totalscores}}
</td>
<td class="text_indent15">
{{(item.score||0)|number:2}}
</td>
<td ng-if="actionFlag">
<a class="btn btn-info btn-xs" ui-sref="index.myspace.exams.result({ paperid:item.eid,recordid: item._id, type:item.type})" >
<i class="fa fa-eye">
</i>
{{'Review'|translate}}
</a>
</td>
</tr>
<tr>
<td class="per_page" colspan="7">
<!--div class="pull-left">
<select ng-model="ctrl.itemNumber">
<option value="5" selected="">
5
</option>
<option value="10">
10
</option>
<option value="15">
15
</option>
<option value="20">
20
</option>
</select>
<span translate="">
Per Page
</span>
</div-->
<span class="text-center pull-right" st-items-by-page="ctrl.itemNumber" st-pagination="" st-template="components/content/tablePagination.html">
</span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>