-
Notifications
You must be signed in to change notification settings - Fork 0
/
nueva-habilidad.component.html
100 lines (61 loc) · 2.02 KB
/
nueva-habilidad.component.html
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<form [formGroup]="newHabilidadForm" (ngSubmit)="registerHabilidad()" class="card">
<div class="card-header">
<h5>Nuevas habilidades</h5>
</div>
<div class="card-body">
<div class="form-group">
<label for="titulo">Categoría:</label>
<input type="text" class="form-control" formControlName="categoria" id="categoria" />
</div>
<button type="button" (click)="addHabilidad()" class="btn btn-secondary mt-3 mb-2">Añadir habilidad</button>
<div formArrayName="habilidades">
<div *ngFor="let habilidadForm of habilidades.controls; let i = index" class="form-group">
<div [formGroup]="habilidadForm" class="row">
<hr class="mt-2" />
<div class="col-3">
<a (click)="deleteHabilidad(i)">
<i class="fa-solid fa-trash" style="color: rgb(13, 110, 253); cursor: pointer"></i>
</a>
<label for="name">Habilidad:</label>
<input type="text" class="form-control" formControlName="name" id="name" />
</div>
<div class="col-3">
<label for="from">Desde:</label>
<input
type="number"
min="1998"
max="2078"
step="1"
value="2024"
class="form-control"
formControlName="from"
id="from"
/>
</div>
<div class="col-3">
<label for="to">Hasta:</label>
<input
type="number"
min="1998"
max="2078"
step="1"
value="2024"
class="form-control"
formControlName="to"
id="to"
/>
</div>
<div class="col-3">
<input type="checkbox" formControlName="tonow" id="tonow" /> <label for="tonow">Actualidad</label>
</div>
</div>
</div>
</div>
</div>
<div class="card-footer text-muted">
<button class="btn btn-secondary">Volver</button>
<button type="submit" class="btn btn-primary float-end" [disabled]="newHabilidadForm.invalid">
Registrar habilidades
</button>
</div>
</form>