26 lines
829 B
HTML
26 lines
829 B
HTML
<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>
|