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="step">
<div class="user-infos"> <div class="user-infos">
<h2 class="title is-2"> <h2 class="title is-2">
Dites à lorganisateur et aux autres participants qui vous êtes ! {{ 'owner.title' | translate }}
</h2> </h2>
<label for="name"> <label for="name">
Votre nom (obligatoire) {{ 'owner.name_label' | translate }}
</label> </label>
<input class="input" type="text" id="name" /> <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="columns">
<div class="column"> <div class="column">
<button class="button is-default" [routerLink]="['']"> <button class="button is-default" [routerLink]="['/poll/' + pollName + '/consultation/vote']">
Précédent {{ 'SENTENCES.Back' | translate }}
</button> </button>
</div> </div>
<div class="column"> <div class="column">
<button class="button is-success" [routerLink]="['']"> <button class="button is-success" (click)="sendVoteStack()">
Je participe {{ 'participation.vote_button' | translate }}
</button> </button>
</div> </div>
</div> </div>
</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'], styleUrls: ['./consultation-user.component.scss'],
}) })
export class ConsultationUserComponent implements OnInit { export class ConsultationUserComponent implements OnInit {
pollName: string;
constructor( constructor(
private dateUtilitiesService: DateUtilitiesService, private dateUtilitiesService: DateUtilitiesService,
private router: Router, private router: Router,
@ -25,4 +26,8 @@ export class ConsultationUserComponent implements OnInit {
} }
ngOnInit(): void {} ngOnInit(): void {}
sendVoteStack() {
alert('TODO');
}
} }