Newer
Older
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
101
102
103
104
<!-- This file is part of the project Pinsis-Portal.
Copyright (C),2018, by C3SL(Centro de Computação Científica e
Software Live)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<div class="row">
<div class="d-none d-sm-block col-md-1"></div>
<!-- <div class="d-none d-sm-block col-md-1"></div>
<div class="mx-auto col-12 col-md-3 white-square">
</div>
-->
<div class="mx-auto col-12 col-md-6 blank-square">
<form #form="ngForm" (ngSubmit)="onSubmit(form.value)">
<h2 style="margin: 5px 10px 0px 0px; text-align:center">Dados da máquina</h2>
<div class="row">
<div class="text-input">
Número de Série:
<div><input type="text" name="id" [(ngModel)]="machineData.id"></div>
</div>
<div class="text-input">
Sala:
<div><input type="text" name="room" [(ngModel)]="machineData.room"></div>
</div>
</div>
<div class="row">
<div class="text-input">
Data da última manutenção:
<div><input type="text" name="lastMaintenance" [(ngModel)]="machineData.lastMaintenance"></div>
</div>
<div class="text-input">
Data da próxima manutenção:
<div><input type="text" name="nextMaintenance" [(ngModel)]="machineData.nextMaintenance"></div>
</div>
</div>
<div class="row">
<div class="text-input">
Estado da máquina:
<div><input type="text" name="machineState" [(ngModel)]="machineData.machineState"></div>
</div>
</div>
<h2 style="margin:10px 10px 0px 0px; text-align:center">Endereço</h2>
<div class="row">
<div class="text-input">
Rua:
<div><input type="text" name="street" [(ngModel)]="machineData.address.street"></div>
</div>
<div class="text-input">
Número:
<div><input type="text" name="buildingNumber" [(ngModel)]="machineData.address.buildingNumber"></div>
</div>
</div>
<div class="row">
<div class="text-input">
Bairro:
<div><input type="text" name="district" [(ngModel)]="machineData.address.district"></div>
</div>
<div class="text-input">
Cidade:
<div><input type="text" name="city" [(ngModel)]="machineData.address.city"></div>
</div>
</div>
<div class="row">
<div class="text-input">
Estado:
<div><input type="text" name="state" [(ngModel)]="machineData.address.state"></div>
</div>
</div>
<div class="row">
<div class="options" (click)="scanQRCode()">Escanear QR code</div>
<div class="options" (click)="uploadSomething()">Fazer upload</div>
<button type="submit" class="submit-button">Confirmar</button>
</div>
</form>
</div>
<div class="d-none d-sm-block col-md-1"></div>
</div>