2020-05-12 19:16:23 +02:00
|
|
|
<div class="box" *ngFor="let choice of poll.choices">
|
|
|
|
<div class="columns is-vcentered is-mobile">
|
|
|
|
<div class="column">
|
2021-04-24 12:31:34 +02:00
|
|
|
<label class="label">{{ choice.name }}</label>
|
2020-05-12 19:16:23 +02:00
|
|
|
</div>
|
2021-04-24 12:46:26 +02:00
|
|
|
|
2020-05-12 19:16:23 +02:00
|
|
|
<div class="column is-narrow">
|
|
|
|
<div class="buttons has-addons is-right" (click)="openModal(choice)">
|
|
|
|
<button class="button is-white">
|
|
|
|
<img class="image is-24x24" src="../../../assets/img/icon_voter_YES.svg" />
|
2021-04-24 12:31:34 +02:00
|
|
|
|
|
|
|
<span class="counter" *ngIf="choice.counts">
|
|
|
|
{{ choice.counts.get(answerEnum.YES) }}
|
|
|
|
</span>
|
2020-05-12 19:16:23 +02:00
|
|
|
</button>
|
2021-04-24 12:31:34 +02:00
|
|
|
<button class="button is-white" *ngIf="poll.allowed_answers.indexOf('maybe') !== -1">
|
2020-05-12 19:16:23 +02:00
|
|
|
<img class="image is-24x24" src="../../../assets/img/icon_voter_MAYBE.svg" />
|
2021-04-24 12:31:34 +02:00
|
|
|
<!-- {{ choice.counts.get(answerEnum.MAYBE) }}-->
|
2020-05-12 19:16:23 +02:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|