29 lines
1.0 KiB
HTML
29 lines
1.0 KiB
HTML
|
<table class="table table-striped table-hover">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>Intitulé</th>
|
||
|
<th>État</th>
|
||
|
<th>Date</th>
|
||
|
<th>Score</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody style="cursor: pointer;">
|
||
|
<tr ng-repeat="survey in surveys" ng-if="survey.shown" ng-click="show(survey.id)">
|
||
|
<td>{{ survey.title }}</td>
|
||
|
<td class="bg-info" ng-if="survey.start_availability > now">Prévu</td>
|
||
|
<td class="bg-warning" ng-if="survey.start_availability <= now && survey.end_availability >= now">En cours</td>
|
||
|
<td class="bg-success" ng-if="survey.end_availability < now">Terminé</td>
|
||
|
<td ng-if="survey.start_availability > now">{{ survey.start_availability | date: "medium" }}</td>
|
||
|
<td ng-if="survey.start_availability <= now">{{ survey.end_availability | date: "medium" }}</td>
|
||
|
<td>N/A</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
<tfoot ng-if="user.is_admin">
|
||
|
<tr>
|
||
|
<td colspan="4">
|
||
|
<a href="surveys/new" class="btn btn-sm btn-primary">Ajouter un questionnaire</a>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</tfoot>
|
||
|
</table>
|