forked from DeveloperParana/devmx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathregistration.container.html
More file actions
84 lines (77 loc) · 2.76 KB
/
registration.container.html
File metadata and controls
84 lines (77 loc) · 2.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<div>
<form [formGroup]="form" (submit)="onSubmit()">
<mat-card class="registration-card">
<mat-card-header class="registration-card-header">
<img mat-card-avatar src="devmx.svg" alt="devmx logo" />
<mat-card-title>Acesse a comunidade</mat-card-title>
<mat-card-subtitle>Faça parte da DevParaná</mat-card-subtitle>
</mat-card-header>
<mat-card-content class="registration-card-content">
<mat-form-field>
<mat-label>Seu nome</mat-label>
<input
matInput
formControlName="displayName"
placeholder="Ex.: Francisco Thiago"
autocomplete="name"
autofocus
/>
<mat-error>Obrigatório</mat-error>
</mat-form-field>
<mat-form-field>
<mat-label>Seu usuário</mat-label>
<input
matInput
formControlName="name"
autocomplete="username"
placeholder="Ex.: chico"
/>
<mat-error>
@if (form.controls.name.hasError('pattern')) { Use apenas letras
minúsculas e números, sem espaços ou caracteres especiais } @if (form.controls.name.hasError('required'))
{ Obrigatório }
</mat-error>
</mat-form-field>
<mat-form-field>
<mat-label>Seu e-mail</mat-label>
<input
matInput
type="email"
formControlName="email"
autocomplete="email"
/>
<mat-error>Endereço inválido</mat-error>
</mat-form-field>
<div class="registration-roles" formGroupName="roles">
<mat-checkbox formControlName="member">
Sou membro da comunidade
</mat-checkbox>
@if (form.controls.roles.controls.member.errors) {
<mat-error>É obrigatório ser membro</mat-error>
}
<mat-checkbox formControlName="speaker">
Sou ou quero ser palestrante
</mat-checkbox>
<mat-checkbox formControlName="recruiter">
Sou recrutador de talentos
</mat-checkbox>
<mat-checkbox formControlName="academic">
Sou da área acadêmica
</mat-checkbox>
</div>
</mat-card-content>
<mat-card-actions class="registration-card-actions">
<button mat-flat-button>Cadastrar</button>
<a routerLink="../acessar" mat-button> Já tenho uma conta </a>
</mat-card-actions>
</mat-card>
<footer>
Ao continuar, você concorda com nossos
<a href="#">Termos de Serviço</a>, reconhece nossa
<a href="#">Política de Privacidade</a> e
<a href="javascript:void(0)" (click)="openConduteCode()">
Código de Conduta
</a>
</footer>
</form>
</div>