frontend: highlight current questions

This commit is contained in:
nemunaire 2019-11-25 16:49:37 +01:00
commit a545112cb2
2 changed files with 2 additions and 2 deletions

View file

@ -112,7 +112,7 @@ angular.module("FICApp", ["ngRoute", "ngSanitize"])
},
template: `
<div class="form-group">
<label for="sol_{{ $ctrl.kid }}_0">{{ $ctrl.key.label }}&nbsp;:</label>
<label for="sol_{{ $ctrl.kid }}_0" ng-class="{'text-light': !$ctrl.key.found}">{{ $ctrl.key.label }}&nbsp;:</label>
<span ng-if="$ctrl.key.found && $ctrl.key.value" ng-bind="$ctrl.key.value"></span>
<div class="input-group" ng-repeat="v in $ctrl.key.values track by $index" ng-class="{'mt-1': !$first}" ng-if="!$ctrl.key.found">
<input type="text" class="form-control flag" id="sol_{{ $ctrl.kid }}_{{ $index }}" autocomplete="off" name="sol_{{ $ctrl.kid }}_{{ $index }}" ng-model="$ctrl.key.values[$index]" ng-if="!$ctrl.key.choices" placeholder="{{ $ctrl.key.help }}" title="{{ $ctrl.key.help }}">