frontend: display MCQ in interface

This commit is contained in:
nemunaire 2017-12-16 02:12:44 +01:00
commit d6012dfffb
3 changed files with 81 additions and 16 deletions

View file

@ -67,6 +67,17 @@
<input type="text" class="form-control" id="sol_{{ key.id }}" name="sol_{{ key.id }}" ng-model="key.value" ng-disabled="key.found">
<span class="glyphicon glyphicon-ok form-control-feedback" aria-hidden="true" ng-if="key.found"></span>
</div>
<div class="form-check" ng-repeat="(k,mcq) in mcqs">
<p ng-if="mcq.title" ng-bind="mcq.title"></p>
<label class="custom-control custom-checkbox" ng-repeat="(cid,choice) in mcq.choices" style="display: block">
<input class="custom-control-input" type="checkbox" name="mcq_{{k}}_{{cid}}" ng-model="choice.value">
<span class="custom-control-indicator"></span>
<span class="custom-control-description" ng-bind="mcq.label"></span>
</label>
<hr>
</div>
<div class="form-group text-right">
<button type="submit" class="btn btn-danger" id="sbmt">Soumettre</button>
</div>