mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
30 lines
939 B
HTML
30 lines
939 B
HTML
<div *ngIf="config.currentPoll" class="list-of-choices">
|
|
<div *ngFor="let choice of config.currentPoll.choices">
|
|
<app-voting-choice
|
|
[choice]="choice"
|
|
[choices_count]="config.currentPoll.choices_count"
|
|
[pollIsSpecialDate]="config.currentPoll.poll.kind == 'date'"
|
|
[poll]="config.currentPoll"
|
|
></app-voting-choice>
|
|
</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"
|
|
>
|
|
<i class="fa fa-paper-plane" aria-hidden="true"></i> Envoyer
|
|
</button>
|
|
<button
|
|
class="btn btn--primary btn-block submit-votestack update"
|
|
(click)="config.updateVote(config.myVoteStack)"
|
|
*ngIf="config.myVoteStack && config.myVoteStack.id"
|
|
>
|
|
<i class="fa fa-edit" aria-hidden="true"></i> Mettre à jour
|
|
</button>
|
|
</div>
|