2020-04-14 11:28:33 +02:00
|
|
|
<div *ngIf="config.currentPoll" class="list-of-choices">
|
|
|
|
<div *ngFor="let choice of config.currentPoll.choices">
|
2020-02-05 10:54:30 +01:00
|
|
|
<framadate-voting-choice
|
|
|
|
[choice]="choice"
|
|
|
|
[choices_count]="config.currentPoll.choices_count"
|
|
|
|
[pollIsSpecialDate]="config.currentPoll.poll.kind == 'date'"
|
2020-04-14 11:28:33 +02:00
|
|
|
[poll]="config.currentPoll"
|
|
|
|
></framadate-voting-choice>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-02-05 10:54:30 +01:00
|
|
|
<button
|
2020-04-14 11:28:33 +02:00
|
|
|
class="btn btn-block submit-votestack"
|
|
|
|
(click)="config.addVote()"
|
|
|
|
[disabled]="!config.myTempVoteStack"
|
|
|
|
[ngClass]="{ 'btn--primary': config.myTempVoteStack }"
|
|
|
|
*ngIf="!config.myVoteStack || !config.myVoteStack.id"
|
|
|
|
>
|
|
|
|
<i class="fa fa-paper-plane"></i> Envoyer
|
|
|
|
</button>
|
2020-02-05 10:54:30 +01:00
|
|
|
<button
|
2020-04-14 11:28:33 +02:00
|
|
|
class="btn btn--primary btn-block submit-votestack update"
|
|
|
|
(click)="config.updateVote(config.myVoteStack)"
|
|
|
|
*ngIf="config.myVoteStack && config.myVoteStack.id"
|
|
|
|
>
|
|
|
|
<i class="fa fa-pencil"></i> Mettre à jour
|
|
|
|
</button>
|