-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaula2.html
More file actions
61 lines (54 loc) · 2.2 KB
/
Copy pathaula2.html
File metadata and controls
61 lines (54 loc) · 2.2 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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Formulário</title>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
</head>
<body>
<script src="./assets/js/produto.js" type="text/javascript"></script>
<div class="container">
<h1>Produto</h1>
<div class="form-group">
Descrição:
<input type="text" id="desc" class="form-control" maxlength="20">
<div id="campoObg"></div>
</div>
<div class="form-group">
Quantidade:
<input type="text" id="qtd" class="form-control" maxlength="3">
</div>
<div class="form-group">
Preço Unitário:
<input type="text" id="unit" class="form-control" maxlength="10">
</div>
<div class="form-group">
<input type="text" value="Calcular" class="btn btn-primary" onclick="calcular()" readonly />
</div>
<div class="form-control">
Preço Total:
<input type="text" id="total" class="form-group" readonly>
</div>
<div class="modal" id="alerta">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Atenção</h4>
<button type="button" class="close" data-dismiss="modal">×</button>
</div>
<div id="mensagem" class="modal-body">
Preencha o campo.
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-dismiss="modal">Ok</button>
</div>
</div>
</div>
</div>
</div>
</body>
</html>