unserver-unify
Version:
129 lines • 4.73 kB
HTML
<div class="ibox" ng-controller="GroupEvaluationCtrl as ctrl">
<div class="ibox-title">
Evaluate - {{ctrl.evaluation.name}} -{{ctrl.class.name}}
<div class="ibox-tools">
{{ctrl.totalScore}}
</div>
</div>
<div class="ibox-content">
<div class="row">
<div class="col-md-3 text-center">
<h4 class="color-blue">
{{ctrl.class.name}}
</h4>
<table class="table table-striped table-hover">
<tr ng-repeat="user in ctrl.users">
<td>
<img class="img-circle img-responsive" ng-src="{{ user.avatar }}" style="width:35px; height:35px;"/>
</td>
<td>
{{user.fullname}}
</td>
</tr>
</table>
</div>
<div class="col-md-9">
<div class="paper_preview" ng-repeat="q in ctrl.questions">
<div class="text-bold-600 question_table">
<div class="option_info" style="border:none; position: absolute;right:40px;">
<span class="score" ng-if="q.weightage">
<span class="color-blue">
{{'Weightage' | translate}}:
</span>
{{q.weightage}}%
</span>
<span class="badge" ng-if="q.group">
Group
</span>
</div>
<span class="pull-left">
Q{{$index+1}}.
</span>
<p class="flft wdth_95 text_left_all rightw_b4_100" ng-bind-html="q.content">
</p>
</div>
<div class="clearfix">
</div>
<div class="pull-right wdth_95 text_left_all">
<b>
{{'Answer' | translate }}:
</b>
<div class="clearfix">
</div>
<table class="margin-bottom-20 survey_ans" ng-if="!q.type||q.type=='single'">
<!-- radio SCQ-->
<tr ng-repeat="opt in q.options">
<td align="center" width="30">
{{ numToLetters($index ) }}.
</td>
<td for="opt{{ $index }}">
<input id="opt{{ $index }}" ng-model="q.selection" type="radio" value="{{ opt.text }}"/>
{{ opt.text }}
</td>
</tr>
<tr>
<td translate="">
Other
</td>
<td>
<input id="optother" ng-model="q.selection" placeholder="Other" type="text"/>
</td>
</tr>
</table>
<!-- MCQ -->
<table ng-if="q.type=='multiple'">
<!-- checkbox MCQ-->
<tr ng-repeat="opt in q.options">
<td align="center" width="30">
{{ numToLetters($index ) }}.
</td>
<td for="opt{{ $index }}">
<input ng-model="opt.selection" type="checkbox" value="{{ opt.text }}"/>
{{ opt.text }}
</td>
</tr>
</table>
<!-- FILL -->
<div class="row" ng-if="q.type=='fill'">
<div class="col-md-12">
<textarea class="form-control" ng-model="q.selection">
</textarea>
</div>
</div>
<div class="survey_rating" ng-if="q.type=='rating'">
<span class="color-blue" max="5" ng-change="ctrl.rated()" ng-model="q.selection" uib-rating="">
</span>
{{q.selection}}
</div>
<div class="row" ng-if="q.type=='number'">
<div class="col-md-6">
<input class="form-control" ng-model="q.selection" style="margin-top:15px;" type="number"/>
</div>
</div>
<div class="clearfix">
</div>
</div>
<div class="clearfix">
</div>
</div>
<!-- <h4 ng-if="ctrl.singleqs|notEmpty">Individual Questions</h4>
<div class="paper_preview" ng-repeat="q in ctrl.singleqs">
<div class="text-bold-600 question_table">
<span class="pull-left">
No {{$index+1}}.
</span>
<p class="flft wdth_95 text_left_all rightw_b4_100" ng-bind-html="q.content">
</p>
</div>
<div class="clearfix">
</div>
</div> -->
</div>
</div>
<div class="row">
<a class="btn btn-info pull-right" ng-click="ctrl.submit()" translate="">
Submit
</a>
</div>
</div>
</div>