UNPKG

unserver-unify

Version:

83 lines (82 loc) 3.4 kB
<div class="col-md-12" ng-controller="ErrorFullPreviewCtrl as ctrl"> <div class="panel profile"> <div class="panel-heading overflow-h"> <h2 class="panel-title heading-sm"> {{ 'Total' | translate }} <span class="badge badge-primary"> {{ ctrl.questions.length }} </span> </h2> <div class="pull-right hide_print" style="position: absolute; right:20px; top:5px;"> <a class="btn btn-primary btn-sm" ng-click="ctrl.print()"> <i class="fa fa-print"> </i> {{ 'Print' | translate }} </a> <a class="btn btn-warning btn-sm" ui-sref="index.courses.course.result.errorbank"> <i class="fa fa-angle-left"> </i> {{ 'Back' | translate }} </a> </div> </div> <div class="panel-body tab-content"> <div class="profile-edit"> <div class="hide_print"> <table class="table tbl_aln table-striped table-hover"> <thead> <tr class="info_hed"> <td> <select class="form-control" ng-change="ctrl.showPaper()" ng-model="ctrl.search.type"> <option selected="" translate="" value=""> All Question Type </option> <option ng-repeat="obj in typelist" value="{{ obj.type }}"> {{ obj.text | translate }} </option> </select> </td> <td> <select class="form-control" ng-change="ctrl.showPaper()" ng-model="ctrl.search.level"> <option selected="" translate="" value=""> All Level </option> <option ng-repeat="lvl in levelList " translate="" value="{{lvl.key}}"> {{ lvl.value }} </option> </select> </td> <td colspan="2"> <select class="form-control" ng-change="ctrl.showPaper()" ng-model="ctrl.search.knowledge"> <option selected="" translate="" value=""> All Knowledges </option> <option ng-repeat="k in Knowledges" ng-if="k.key" value="{{k.key }}"> {{ k.key}} </option> </select> </td> <td colspan="3"> <input class="form-control" placeholder="{{ 'Search Contents' | translate }}" ng-model="ctrl.search.content" ng-change="ctrl.showPaper()" type="text" /> </td> </tr> </thead> </table> <div class="margin-bottom-20"></div> </div> <!-- if no question --> <div ng-if="ctrl.questions | isEmpty"> <h3 translate=""> No Question </h3> </div> <!-- if has question --> <div ng-repeat="q in ctrl.questions track by $index"> <div ng-include="'app/course/questionpreview.html'"> </div> </div> <div class="clearfix"></div> </div> </div> </div> </div>