user infos on vote

This commit is contained in:
Tykayn 2022-02-07 16:19:23 +01:00 committed by tykayn
parent e74ea2dfd4
commit d82e0f9650
2 changed files with 11 additions and 11 deletions

View File

@ -2,29 +2,24 @@
<div class="step">
<div class="user-infos">
<h2 class="title is-2">
Dites à lorganisateur et aux autres participants qui vous êtes !
{{ 'owner.title' | translate }}
</h2>
<label for="name">
Votre nom (obligatoire)
{{ 'owner.name_label' | translate }}
</label>
<input class="input" type="text" id="name" />
<label for="email">
Votre adresse e-mail (obligatoire)
</label>
<input class="input" type="text" id="email" />
<div class="columns">
<div class="column">
<button class="button is-default" [routerLink]="['']">
Précédent
<button class="button is-default" [routerLink]="['/poll/' + pollName + '/consultation/vote']">
{{ 'SENTENCES.Back' | translate }}
</button>
</div>
<div class="column">
<button class="button is-success" [routerLink]="['']">
Je participe
<button class="button is-success" (click)="sendVoteStack()">
{{ 'participation.vote_button' | translate }}
</button>
</div>
</div>
</div>
</div>
<app-nav-steps [next_step_number]="2" [previous_step_number]="0"></app-nav-steps>

View File

@ -12,6 +12,7 @@ import { StorageService } from '../../../core/services/storage.service';
styleUrls: ['./consultation-user.component.scss'],
})
export class ConsultationUserComponent implements OnInit {
pollName: string;
constructor(
private dateUtilitiesService: DateUtilitiesService,
private router: Router,
@ -25,4 +26,8 @@ export class ConsultationUserComponent implements OnInit {
}
ngOnInit(): void {}
sendVoteStack() {
alert('TODO');
}
}