2022-02-07 16:12:32 +01:00
|
|
|
<app-stepper [step_current]="1" [step_max]="2"></app-stepper>
|
2022-02-07 11:42:25 +01:00
|
|
|
<div class="step">
|
|
|
|
<h3 class="title is-3">
|
|
|
|
{{ 'participation.voting_title' | translate }}
|
|
|
|
</h3>
|
2022-02-07 16:12:32 +01:00
|
|
|
|
|
|
|
<!-- <div class="date-choices" *ngIf="pollService.poll.kind == 'date'">-->
|
|
|
|
<!-- <div class="box" *ngFor="let group of poll.choices"></div>-->
|
|
|
|
<!-- </div>-->
|
|
|
|
|
2022-02-07 19:05:14 +01:00
|
|
|
<div class="" *ngIf="poll">
|
|
|
|
<div class="time-slice-choice rounded-block" *ngFor="let group_choice of poll.choices_grouped">
|
|
|
|
<div class="groupe-label">
|
|
|
|
<!-- {{ (dayStringFromDateString(group_choice.date_string))| translate}}-->
|
|
|
|
<!-- {{"calendar_widget.dayNames.Thursday" | translate}}-->
|
|
|
|
{{ dateFromString(group_choice.date_string) | date: 'EEEE dd MMMM':'Europe/Paris' }}
|
|
|
|
</div>
|
2022-02-07 16:12:32 +01:00
|
|
|
<div class="choice-subset" *ngFor="let choice of group_choice.choices">
|
|
|
|
<div class="choice-label">
|
|
|
|
{{ choice.name }}
|
|
|
|
</div>
|
2022-02-07 13:58:23 +01:00
|
|
|
|
2022-02-07 16:12:32 +01:00
|
|
|
<div class="choice-buttons" *ngIf="poll.allowed_answers">
|
|
|
|
<app-choice-button-dinum
|
|
|
|
[poll]="poll"
|
|
|
|
[choice]="choice"
|
|
|
|
[answerKind]="'YES'"
|
|
|
|
></app-choice-button-dinum>
|
|
|
|
<!-- *ngIf="poll.allowed_answers?.indexOf('yes') !== -1"-->
|
2022-02-07 19:05:14 +01:00
|
|
|
|
2022-02-07 16:12:32 +01:00
|
|
|
<app-choice-button-dinum
|
|
|
|
[poll]="poll"
|
|
|
|
[choice]="choice"
|
2022-02-07 19:05:14 +01:00
|
|
|
[answerKind]="'NO'"
|
2022-02-07 16:12:32 +01:00
|
|
|
></app-choice-button-dinum>
|
2022-02-07 19:05:14 +01:00
|
|
|
<!-- *ngIf="poll.allowed_answers?.indexOf('no') !== -1"-->
|
2022-02-07 16:12:32 +01:00
|
|
|
<app-choice-button-dinum
|
|
|
|
[poll]="poll"
|
|
|
|
[choice]="choice"
|
2022-02-07 19:05:14 +01:00
|
|
|
[answerKind]="'MAYBE'"
|
2022-02-07 16:12:32 +01:00
|
|
|
></app-choice-button-dinum>
|
2022-02-07 19:05:14 +01:00
|
|
|
<!-- *ngIf="poll.allowed_answers?.indexOf('maybe') !== -1"-->
|
2022-02-07 16:12:32 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-02-07 13:58:23 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-02-07 11:42:25 +01:00
|
|
|
</div>
|
2022-02-07 16:12:32 +01:00
|
|
|
<div class="no-poll" *ngIf="!poll">
|
|
|
|
no poll
|
|
|
|
</div>
|
|
|
|
<div class="bottom-step-buttons" *ngIf="poll">
|
|
|
|
<div class="contained-in-main-column">
|
|
|
|
<button
|
2022-02-07 19:05:14 +01:00
|
|
|
class="button-next is-primary pull-right"
|
2022-02-07 16:12:32 +01:00
|
|
|
[routerLink]="['/poll/' + poll.custom_url + '/consultation/vote/user-infos']"
|
|
|
|
>
|
|
|
|
<b>
|
|
|
|
{{ 'nav.next' | translate }}
|
|
|
|
</b>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|