UNPKG

unserver-unify

Version:

91 lines 3.74 kB
<div class="ibox" ng-controller="CompanyEvaluationCtrl as ctrl"> <div class="ibox-title"> Evaluate - {{ctrl.evaluation.name}} <div class="ibox-tools"> {{ctrl.totalScore}} </div> </div> <div class="ibox-content"> <div class="row"> <div class="col-md-3 text-center"> <div class="survey_img"> <img ng-src="{{ctrl.avatarurl}}" style="width:100%;" class="margin-bottom-10" /> <h4 class="color-blue">{{ctrl.user.fullname}}</h4> </div> </div> <div class="col-md-9"> <div ng-repeat="q in ctrl.questions" class="paper_preview"> <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" translate>Group</span> </div> <span class="pull-left">Q{{$index+1}}.&nbsp;</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-left full-width"> <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-model="q.selection" ng-change="ctrl.rated()" 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> </div> </div> <div class="row"> <a class="btn btn-info pull-right" ng-click="ctrl.submit()" translate>Submit</a> </div> </div> </div>