unserver-unify
Version:
68 lines • 2.15 kB
HTML
<blockquote>
<div class="lead" ng-bind-html="question.content">
</div>
</blockquote>
<div class="answer_list crse_exm_lst" ng-switch="" on="question.type">
<div ng-switch-when="single" style="overflow:auto">
<table style="width:100%">
<!-- radio SCQ-->
<tr ng-repeat="opt in question._options">
<td align="center" width="30">
<strong>
{{numToLetters($index )}}
</strong>
</td>
<td class="text_left_all" for="opt{{$index}}">
<input id="opt{{$index}}" ng-model="question.select" type="radio" ng-value="{{$index}}" />
<span ng-bind-html="opt.text">
</span>
</td>
</tr>
</table>
</div>
<div ng-switch-when="multiple" style="overflow:auto">
<table style="width:98%">
<!-- checkbox MCQ-->
<tr ng-repeat="opt in question._options">
<td align="center" width="30">
<strong>
{{numToLetters($index )}}
</strong>
</td>
<td class="text_left_all" for="opt{{$index}}">
<input id="opt{{$index}}" ng-model="opt.selection" type="checkbox" value="{{opt.text}}" />
<span ng-bind-html="opt.text">
</span>
</td>
</tr>
</table>
</div>
<div ng-switch-when="tof">
<label>
<input name="tof{{$index}}" ng-model="question.selection" type="radio" value="true" />
{{'True' | translate}}
</label>
<label>
<input name="tof{{$index}}" ng-model="question.selection" type="radio" value="false" />
{{'False' | translate}}
</label>
</div>
<div ng-switch-when="fill">
<!-- fill-in -->
<input ng-model="question.selection" type="text" />
</div>
<div ng-switch-when="mfill">
<div ng-repeat="opt in question._options">
<b>{{$index+1}}.</b>
<input ng-model="opt.selection" type="text" />
<div class="margin-bottom10"></div>
</div>
</div>
<div ng-switch-default="">
Not supported question type!!!
</div>
<div class="clearfix">
</div>
</div>
<div class="clearfix">
</div>