2019-06-03 07:33:07 +02:00
|
|
|
<div class="poll">
|
2019-06-05 01:14:16 +02:00
|
|
|
<div *ngFor="let o of options">
|
2019-06-05 00:36:04 +02:00
|
|
|
<!-- <input class="poll__input" id="{{o.title}}" type="{{choiceType}}" name="poll" value="{{o.title}}">
|
2019-06-04 08:31:51 +02:00
|
|
|
<label class="noselect poll__label" for="{{o.title}}">{{o.title}}</label>
|
2019-06-05 00:36:04 +02:00
|
|
|
<br /> -->
|
|
|
|
|
|
|
|
<label class="poll__container">{{o.title}}
|
2019-06-05 01:14:16 +02:00
|
|
|
<input class="poll__container__input" type="{{choiceType}}" name="{{pollName}}"
|
|
|
|
value="{{o.title}}" (change)="onSelectionChange(o)">
|
2019-06-05 00:36:04 +02:00
|
|
|
<span class="poll__container__checkmark" [ngClass]="{'poll__container__checkmark--box' : choiceType=='checkbox', 'poll__container__checkmark--round': choiceType=='radio'}"></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="poll__voting">
|
2019-06-05 01:14:16 +02:00
|
|
|
<button href class="btn btn-sm btn-custom-primary poll__btn-vote" title="don't boo, vote!" (click)="vote()">Vote</button>
|
2019-06-05 00:36:04 +02:00
|
|
|
<div class="poll__statistics">{{poll.votes_count}} votes - X days left</div>
|
2019-06-03 07:33:07 +02:00
|
|
|
</div>
|
|
|
|
</div>
|