funky-framadate-front/mocks/old-stuff/pages/voting/choices-list/choices-list.component.html

30 lines
939 B
HTML
Raw Normal View History

<div *ngIf="config.currentPoll" class="list-of-choices">
2020-04-21 10:50:26 +02:00
<div *ngFor="let choice of config.currentPoll.choices">
2020-04-22 12:56:18 +02:00
<app-voting-choice
2020-04-21 10:50:26 +02:00
[choice]="choice"
[choices_count]="config.currentPoll.choices_count"
[pollIsSpecialDate]="config.currentPoll.poll.kind == 'date'"
[poll]="config.currentPoll"
2020-04-22 12:56:18 +02:00
></app-voting-choice>
2020-04-21 10:50:26 +02:00
</div>
</div>
<div class="bar-votestack">
<button
class="btn btn-block submit-votestack"
(click)="config.addVote()"
[disabled]="!config.myTempVoteStack"
[ngClass]="{ 'btn--primary': config.myTempVoteStack }"
*ngIf="!config.myVoteStack || !config.myVoteStack.id"
>
2020-05-12 19:16:23 +02:00
<i class="fa fa-paper-plane" aria-hidden="true"></i> Envoyer
2020-04-21 10:50:26 +02:00
</button>
<button
class="btn btn--primary btn-block submit-votestack update"
(click)="config.updateVote(config.myVoteStack)"
*ngIf="config.myVoteStack && config.myVoteStack.id"
>
2020-05-12 19:16:23 +02:00
<i class="fa fa-edit" aria-hidden="true"></i> Mettre à jour
2020-04-21 10:50:26 +02:00
</button>
</div>