This commit is contained in:
nemunaire 2020-03-08 01:06:44 +01:00
commit 0a79763f69
17 changed files with 459 additions and 158 deletions

View file

@ -0,0 +1,25 @@
<h2>
{{ survey.title }}
<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>
<table class="table table-hover table-striped mb-5" ng-controller="QuestionsController" ng-if="survey.id" ng-cloak>
<thead>
<tr>
<th>Question</th>
<th>Réponses</th>
<th></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="(qid,question) in questions" ng-click="showResponses()" ng-controller="ResponsesController">
<td ng-bind="question.title"></td>
<td>{{ responses.length }}</td>
<td></td>
</tr>
</tbody>
</table>