UNPKG

unserver-unify

Version:

95 lines 3.33 kB
<div ng-controller="UserExamTestRecordsCtrl as ctrl" class="myspace my_space"> <div class="panel panel-body" style="padding-bottom:0;"> <div class="row row_adjst"> <div class="myspace_hed"> {{'Total'|translate}} <span class="badge badge-green rounded-2x">{{ctrl.totalrecords}}</span> </div> </div> <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:13%" st-sort="eid" translate=""> Name </th> <th class="sortable" style="width:10%" st-sort="reasontype" translate=""> Exam Type </th> <th translate="" style="width:15%"> Title of Coures </th> <th translate="" style="width:10%"> Full Scores </th> <th class="sortable" style="width:8%" st-sort="score" translate=""> Scores </th> <th class="sortable" style="width:15%" st-sort="update" translate=""> Time </th> <th style="width:5%" ng-if="actionFlag"> {{'Action'| translate}} </th> </tr> </thead> <tbody> <tr ng-if="userrecords | isEmpty"> <td class="text-center" colspan="11" style="font-size: 25px; padding: 30px 0;"> {{ 'No Records' | translate }} </td> </tr> <tr ng-repeat="item in userrecords"> <td> {{item.paper.title}} </td> <td> <div class="badge badge-sm" ng-class="{'badge-primary':item.reasontype=='exam'}">{{item.reasontype}}</div> </td> <td> {{item.course.name}} </td> <td class="text_indent10"> {{item.paper.totalscores}} </td> <td class="text_indent15"> {{(item.score||0)|number:2}} </td> <td> {{item.update | date:'yyyy-MM-dd HH:mm:ss'}} </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>