unserver-unify
Version:
148 lines • 6.32 kB
HTML
<div class="col-md-12 result_right" ng-controller="ErrorBankCtrl 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.bankCounter }}
</span>
</h2>
</div>
<div class="panel-body tab-content">
<div class="profile-edit">
<table class="table tbl_aln table-striped table-hover" st-pipe="ctrl.getQuestionsForOnePage" st-table="displayQuestionBank">
<thead>
<tr class="info_hed">
<td>
<select class="form-control" st-input-event="change keydown" st-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" st-input-event="change keydown" st-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" st-input-event="change keydown" st-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>
<input class="form-control" placeholder="{{ 'Search Contents' | translate }}" st-search="content" type="text" />
</td>
<td colspan="2">
<a class="btn btn-primary pull-right" ng-click="ctrl.preview()">
<i class="fa fa-eye">
</i>
{{ 'Preview' | translate }}
</a>
</td>
</tr>
<tr class="info">
<!--<th class="sortable" st-sort="root" style="width:2%">
</th>-->
<th class="sortable" st-sort="type" style="width:10%" translate="">
Question Type
</th>
<th class="sortable" st-sort="level" style="width:12%" translate="">
{{ 'Level'|translate }}
</th>
<th class="sortable" st-sort="knowledge" style="width:12%" translate="">
Knowledges
</th>
<th class="sortable" st-sort="knowledges" style="width:12%" translate="">
Tags
</th>
<th class="sortable" st-sort="content" style="width:20%">
{{ 'Content'|translate }}
</th>
<th class="sortable" st-sort="update" style="width:15%">
{{ 'Update'|translate }}
</th>
<th style="width:15%" translate="">
Action
</th>
</tr>
</thead>
<tbody>
<tr ng-if="displayQuestionBank.length == 0">
<td colspan="8">
<div class="no_record" translate="">
No record
</div>
</td>
</tr>
<tr ng-class="{'fullquestion':q._id==ctrl.currentQ}" ng-repeat="q in displayQuestionBank">
<!--<td>
<input ng-click="ctrl.enabledelete()" ng-model="ctrl.todelete[q._id]" type="checkbox" />
</td>-->
<td class="badge_info_static">
<div class="badge badge-sm text-uppercase" ng-class="{'badge-info darker':q.type=='multiple','badge-warning darker':q.type=='single','badge-primary lighter':q.type=='mquestion','badge-danger':q.type=='mfill','badge-info':q.type=='tof','badge-danger darker':q.type=='short'}" translate="">
{{ typename[q.type] }}
</div>
<i class="fa fa-folder-open-o" ng-if="q.root">
</i>
</td>
<td translate="">
{{ levelDict[q.level] }}
</td>
<td>
<div class="school-desc word_break100" ng-bind-html="q.knowledge">
</div>
</td>
<td>
<div class="school-desc word_break100" ng-bind-html="q.knowledges">
</div>
</td>
<td class="text_left_all">
<div bind-html-compile="q.content" class="school-desc" ng-click="ctrl.showQ(q._id)">
</div>
</td>
<td>
<div class="school-desc" translate="">
{{ q.update|date:shortDate }}
</div>
</td>
<td>
<a class="btn btn-info btn-xs" ng-click="ctrl.previewQ(q._id)">
<i class="fa fa-eye">
</i> {{ 'Preview' | translate }}
</a>
<a class="btn btn-danger btn-xs" ng-click="ctrl.deleteQuestion(q)" style="color:#fff;">
<i class="fa fa-times">
</i> {{ 'Delete' | translate }}
</a>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td class="per_page" colspan="8">
<bb-pagesize-select class="col-md-3 padding-left-0" pagesize="ctrl.itemNumber">
</bb-pagesize-select>
<span class="pull-right" st-items-by-page="ctrl.itemNumber" st-pagination="" st-template="components/content/tablePagination.html">
</span>
</td>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
</div>