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

33 lines
1.3 KiB
HTML

<div
class="box"
*ngFor="let choice of poll.choices"
[ngClass]="{ 'active has-background-success': choice.enabled }"
(click)="choice.enabled = !choice.enabled"
>
<div class="columns is-vcentered is-mobile">
<div class="column">
<label class="label">{{ choice.name }}</label>
</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" />-->
<!-- <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>-->
</div>
</div>