funky-framadate-front/src/app/features/consultation/poll-results-compact/poll-results-compact.compon...

23 lines
810 B
HTML
Raw Normal View History

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>
<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>