Add a button to filter correction list
This commit is contained in:
parent
e9c25ddd96
commit
c351de26ea
@ -286,6 +286,7 @@ angular.module("AtsebaytApp")
|
||||
})
|
||||
|
||||
.controller("QuestionController", function($scope, Survey, SurveyQuest, SurveyQuest, AllResponses, CorrectionTemplate, $http, $routeParams) {
|
||||
$scope.notCorrected = true
|
||||
$scope.survey = Survey.get({ surveyId: $routeParams.surveyId });
|
||||
$scope.survey.$promise.then(function(survey) {
|
||||
survey.start_availability = Date.parse(survey.start_availability)
|
||||
|
@ -1,3 +1,8 @@
|
||||
<div class="btn-group-toggle float-right" data-toggle="buttons">
|
||||
<label class="btn btn-secondary active">
|
||||
<input type="checkbox" ng-model="notCorrected"> Pas corrigés
|
||||
</label>
|
||||
</div>
|
||||
<h2>
|
||||
<span class="text-muted">{{ survey.title }}</span>
|
||||
<small>
|
||||
@ -11,7 +16,7 @@
|
||||
</h3>
|
||||
|
||||
<div class="mb-5" ng-submit="submitCorrections()" ng-cloak>
|
||||
<form class="card mb-2" ng-repeat="response in responses">
|
||||
<form class="card mb-2" ng-repeat="response in responses" ng-if="!notCorrected || !response.time_scored">
|
||||
<div class="card-body">
|
||||
<button type="button" class="btn btn-success ml-1 float-right" ng-click="submitCorrection()"><svg class="bi bi-check" width="1em" height="1em" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M15.854 5.646a.5.5 0 010 .708l-7 7a.5.5 0 01-.708 0l-3.5-3.5a.5.5 0 11.708-.708L8.5 12.293l6.646-6.647a.5.5 0 01.708 0z" clip-rule="evenodd"></path></svg></button>
|
||||
<p class="card-text" style="white-space: pre-line" ng-bind="response.value" ng-if="question.kind == 'text'"></p>
|
||||
|
Reference in New Issue
Block a user