36 lines
760 B
HTML
36 lines
760 B
HTML
<table>
|
|
<thead>
|
|
<tr>
|
|
<th></th>
|
|
<th *ngFor="let choice of poll.choices">{{ choice.label }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<ng-container *ngFor="let item of poll.answersByChoiceByParticipant | keyvalue">
|
|
<tr>
|
|
<td>{{ item.key }}</td>
|
|
<td *ngFor="let subItem of item.value | keyvalue">{{ subItem.value }}</td>
|
|
</tr>
|
|
</ng-container>
|
|
</tbody>
|
|
</table>
|
|
<hr />
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th></th>
|
|
<th *ngFor="let choice of poll.choices">{{ choice.label }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<ng-container *ngFor="let answer of poll.answers">
|
|
<tr>
|
|
<td>{{ answer.pseudo }}</td>
|
|
<td *ngFor="let response of answer.responsesByChoices | keyvalue">
|
|
{{ response.value }}
|
|
</td>
|
|
</tr>
|
|
</ng-container>
|
|
</tbody>
|
|
</table>
|