unserver-unify
Version:
144 lines • 6 kB
HTML
<div class="col-md-12" id="exam" ng-if="ctrl.showexam">
<div class="headline">
<div class="margin-bottom-20">
</div>
<h4 translate="">
Exam
</h4>
</div>
<ul class="right_icon alignment">
<li>
<b translate="">
Layout
</b>
:
</li>
<li class="active" ng-click="ctrl.showTab1 = 'list'">
<a href="">
<i class="fa fa-list">
</i>
</a>
</li>
<li ng-class="{'active': ctrl.showTab1 == 'grid'}" ng-click="ctrl.showTab1 = 'grid'">
<a>
<i class="fa fa-th">
</i>
</a>
</li>
</ul>
<div class="tag-box course_exam" ng-if="ctrl.showTab1 == 'list'" style="margin-bottom: 0">
<table class="table table-bordered table-striped table-hover" st-pipe="ctrl.getexamitems" st-table="ctrl.displayedCollection" style="margin-bottom: 0;">
<tr>
<th st-sort="name" translate="">
Name
</th>
<th st-sort="description" translate="">
Description
</th>
<th st-sort="knowledge" translate="">
Exam Knowledge
</th>
<th st-sort="start" translate="">
Start Time
</th>
<th st-sort="stop" translate="">
End Time
</th>
<th translate="">
Status
</th>
<th>
{{ {eng:'Action', chn:'行动'}| trans}}
</th>
</tr>
<tr ng-if="exam.publish" ng-repeat="exam in ctrl.displayedCollection">
<td width="20%">
<a examid="{{exam._id}}" ng-if="exam.mycount < exam.retries || !exam.mycount || !exam.retries || exam.retries==0" redirect-to-exam="">
<strong>
{{ exam.name }}
</strong>
</a>
<a examid="{{exam._id}}" ng-if="exam.mycount >= exam.retries&&exam.retries!=0">
<strong>
{{ exam.name }}
</strong>
</a>
</td>
<td>
{{exam.description}}
</td>
<td width="13%">
{{exam.knowledge}}
</td>
<td width="10%">
<span ng-if="exam.timecontrol">
{{exam.start | date:'mediumDate'}}
</span>
</td>
<td width="10%">
<span ng-if="exam.timecontrol">
{{exam.stop | date:'mediumDate'}}
</span>
</td>
<td width="10%">
<span class="btn-u btn-u-blue btn-xs" ng-if="exam.mycount">
{{'COMPLETED' | translate}}
</span>
<span class="btn-u btn-u-red btn-xs" ng-if="!exam.mycount" translate="">
OUTSTANDING
</span>
</td>
<td width="10%">
<button class="btn-u btn-u-green btn-xs" examid="{{exam._id}}" ng-class="{'disabled': (exam.mycount >= exam.retries&&exam.retries!=0)||exam.disable}" ng-disabled="{{ (exam.mycount >= exam.retries&&exam.retries!=0)||exam.disable }}" redirect-to-exam="" style="border-radius: 5px !important; min-width:80px;" target="_blank">
{{'Take an exam' | translate}}
</button>
</td>
</tr>
<tr>
<td colspan="8" style="text-align:right">
<div st-items-by-page="10" st-pagination="">
</div>
</td>
</tr>
</table>
</div>
<div ng-if="ctrl.showTab1 == 'grid'" style="margin-bottom: 0">
<table class="table table-bordered table-striped table-hover" st-pipe="ctrl.getexamitems" st-table="ctrl.displayedCollection" style="margin-bottom: 0;">
<div class="row equal-height-columns home_live_course glossary padding-left-15 margin-bottom-30">
<div class="col-md-2 col-sm-3 col-xs-6 padding-left-0" ng-repeat="exam in ctrl.displayedCollection">
<div class="home_promobg">
<!--<img class="img-responsive" ng-src="{{item.icon? ctrl.dictionPicUrl + item.icon : ctrl.imgdefault}}" />-->
<img class="img-responsive" ng-src="{{exam.photo? ctrl.examPhotoUrl + exam.photo : ctrl.imgdefault}}"/>
<div class="service-block no-margin-bottom content-sm equal-height-column rgba-blue" style="height:100px;">
<span class="btn-u btn-u-blue btn-xs" ng-if="exam.mycount">
{{'COMPLETED' | translate}}
</span>
<span class="btn-u btn-u-red btn-xs" ng-if="!exam.mycount" translate="">
OUTSTANDING
</span>
<h2 style="margin-top:15px;">
<strong>
{{ exam.name }}
</strong>
</h2>
</div>
<div class="white-bg">
<p class="font-12 pull-left">
{{exam.start | date:'mediumDate'}}
</p>
<button class="btn-u btn-xs pull-right" examid="{{exam._id}}" ng-class="{'disabled': exam.mycount >= exam.retries||exam.disable}" ng-disabled="{{ exam.mycount >= exam.retries||exam.disable }}" redirect-to-exam="" style="margin-top:15px;" target="_blank">
{{'Take an exam' | translate}}
</button>
</div>
</div>
</div>
</div>
<div>
<td colspan="8" style="text-align:right">
<div st-items-by-page="12" st-pagination="">
</div>
</td>
</div>
</table>
</div>
</div>