v1 done
This commit is contained in:
parent
f073e69417
commit
0a79763f69
17 changed files with 459 additions and 158 deletions
46
htdocs/views/correction.html
Normal file
46
htdocs/views/correction.html
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
<h2>
|
||||
<span class="text-muted">{{ survey.title }}</span>
|
||||
<small>
|
||||
<span class="badge badge-danger" ng-if="survey.start_availability > now">Prévu</span>
|
||||
<span class="badge badge-warning" ng-if="survey.start_availability <= now && survey.end_availability >= now">En cours</span>
|
||||
<span class="badge badge-danger" ng-if="survey.end_availability < now">Clos</span>
|
||||
</small>
|
||||
</h2>
|
||||
<h3>
|
||||
{{ question.title }}
|
||||
</h3>
|
||||
|
||||
<form class="mb-5" ng-submit="submitCorrections()" ng-cloak>
|
||||
<div class="card mb-2" ng-repeat="response in responses">
|
||||
<div class="card-body">
|
||||
<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"></p>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="input-group mb-1">
|
||||
<input class="form-control" type="number" ng-model="response.score" integer>
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text">/100</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<textarea class="form-control" rows="1" ng-model="response.score_explaination" placeholder="Appréciation"></textarea>
|
||||
</div>
|
||||
<div class="form-group row" ng-if="response.time_scored">
|
||||
<label class="col-2 col-form-label col-form-label-sm">Correction effectuée :</label>
|
||||
<div class="col-10">
|
||||
<input type="text" class="form-control-plaintext form-control-sm" value="{{ response.time_scored | date:'medium'}}" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row" ng-if="response.time_scored">
|
||||
<label class="col-2 col-form-label col-form-label-sm">Correcteur :</label>
|
||||
<div class="col-10">
|
||||
<input type="text" class="form-control-plaintext form-control-sm" value="{{ response.id_corrector }}" readonly>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-primary" ng-disabled="submitInProgress">Soumettre les corrections</button>
|
||||
</form>
|
||||
Reference in a new issue