v1 done
This commit is contained in:
parent
f073e69417
commit
0a79763f69
17 changed files with 459 additions and 158 deletions
|
|
@ -1,28 +1 @@
|
|||
<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>
|
||||
<survey-list surveys="surveys" islogged="isLogged" isadmin="user.is_admin"></survey-list>
|
||||
|
|
|
|||
Reference in a new issue