unserver-unify
Version:
76 lines (75 loc) • 2.55 kB
HTML
<div ng-controller="MyExamsCtrl as ctrl">
<div class="panel panel-body" style="padding-top: 0px;">
<div class="msg_info">
<div class="col-lg-6 col-xs-6 col-xs-6 col-xs-12">
<h4>
<i class="fa fa-check-square-o">
</i>
{{ctrl.completed|| 0}}
</h4>
<p>
{{ 'Completed'|translate}}
</p>
</div>
<div class="col-lg-6 col-xs-6 col-xs-12">
<h4>
<i class="fa fa-check-square-o">
</i>
{{ examitems.length-ctrl.completed ||0 }}
</h4>
<p>
{{'To do'|translate}}
</p>
</div>
</div>
<div class="clearfix"></div>
</div>
<div class="panel panel-body">
<div class="table-responsive" style="overflow:inherit">
<table class="table table-hover tbl_aln font_dec" st-safe-src="examitems" st-table="myexam">
<tr>
<th st-sort ="name">
{{"Name" | translate}}
</th>
<th>
{{"Result" | translate}}
</th>
</tr>
<tr ng-if="examitems.length == 0">
<td colspan="2">
<div class="no_record" translate="">No Record</div>
</td>
</tr>
<tr ng-repeat="exam in myexam">
<td width="70%">
<a redirect-to-exam examid="{{exam._id}}" type="myspaceexam" ng-if="exam.publish">
<strong>
{{ exam.name | uppercase}}
</strong>
</a>
<strong ng-if="!exam.publish">
{{ exam.name | uppercase}}
</strong>
<div class="clearfix"></div>
{{exam.coursename | uppercase}}
</td>
<td width="30%">
<button class="btn-u btn-u-red btn-xs" ng-if="!exam.resultid" translate>
To do
</button>
<a class="btn-xs" ng-if="exam.resultid&&exam.review"
ui-sref="index.myspace.exams.result({ paperid:exam.eid,recordid: exam.resultid, type:exam.type})">
{{'View Result' | translate}}
</a>
</td>
</tr>
<tr>
<td class="text-right" st-pagination="" st-items-by-page="10" st-template="components/content/tablePagination.html" colspan="3">
</td>
</tr>
</table>
</div>
</div>
</div>
<!-- <div ng-include="'app/mystudy/tasks.html'"></div> -->
<!-- <div ng-include="'app/mystudy/tests.html'" style="margin-top:5%;"></div> -->