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

33 lines
1.3 KiB
HTML
Raw Normal View History

<div
class="box"
*ngFor="let choice of poll.choices"
[ngClass]="{ 'active has-background-success': choice.enabled }"
(click)="choice.enabled = !choice.enabled"
>
2020-05-12 19:16:23 +02:00
<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-26 17:04:16 +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
2021-04-26 17:04:16 +02:00
<!-- <span class="counter" *ngIf="choice.counts">-->
<!-- {{ choice.counts.get(answerEnum.YES) }}-->
<!-- </span>-->
<!-- </button>-->
<!-- <button class="button is-white" *ngIf="poll.allowed_answers.indexOf('maybe') !== -1">-->
<!-- <img class="image is-24x24" src="../../../assets/img/icon_voter_MAYBE.svg" />-->
<!-- &lt;!&ndash; {{ choice.counts.get(answerEnum.MAYBE) }}&ndash;&gt;-->
<!-- </button>-->
<!-- <button class="button is-white" *ngIf="poll.allowed_answers.indexOf('no') !== -1">-->
<!-- <img class="image is-24x24" src="../../../assets/img/icon_voter_NO.svg" />-->
<!-- {{ choice.counts.get(answerEnum.MAYBE) }}-->
<!-- </button>-->
<!-- </div>-->
<!-- </div>-->
2020-05-12 19:16:23 +02:00
</div>
</div>