-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
75 lines (68 loc) · 3.04 KB
/
index.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
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CRUD - JSON</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
</head>
<body class="bg-dark">
<div class="text-center font-weight text-light bg-info shadow p-2 mb-4">
<h1>CRUD JSON - Anderson, Cesar, Eloísa e Larissa</h1>
</div>
<div class="container">
<form class="formulario text-light">
<div class="form-group">
<label class="ml-2">ID para consulta</label>
<input type="number" id="txtId" class="form-control form-control-lg" placeholder="Digite seu ID">
</div>
<div class="form-group ">
<label class="ml-2">Nome</label>
<input type="text" id="nome" class="form-control form-control-lg" placeholder="Digite seu nome">
</div>
<div class="form-group ">
<label class="ml-2">Email</label>
<input type="email" id="email" class="form-control form-control-lg" placeholder="Digite seu email">
</div>
<div class="form-group">
<label class="ml-2">Selecione o Tipo</label>
<select id="tipo" class="form-control">
<option value="">Selecione a opção</option>
<option value="FISICA">Pessoa Física</option>
<option value="JURIDICA">Pessoa Jurídica</option>
</select>
</div>
<div class="form-group text-center">
<input type="hidden" id="incluir" value="incluir">
<button type="button" id="gravar" class="btn btn-outline-success"> Gravar </button>
<button type="reset" id="limpar" onclick="txtId.readOnly = false;" class="btn btn-outline-danger">Limpar</button>
<button type="button" id="btnConsulta" class="btn btn-outline-light">Consultar</button>
<input type="hidden" id="acao" value="cadastrar" />
<span id="load"></span>
</div>
<div class="form-group text-center">
<p id="pResultado" class="text-light align-middle pt-3"> </p>
</div>
</form>
<div class="row">
<table class="table table-dark table-striped shadow rounded" id="tResultado">
<thead class=" bg-info">
<tr>
<th scope="col">ID</th>
<th scope="col">NOME</th>
<th scope="col">EMAIL</th>
<th scope="col">TIPO</th>
<th scope="col">AÇÃO</th>
</tr>
</thead>
<tbody id="tDados">
</tbody>
<tfoot>
</tfoot>
</table>
</div>
</div>
<script src="nossoarquivode.js"></script>
</body>
</html>