-
Notifications
You must be signed in to change notification settings - Fork 0
/
produto-altera-formulario.html
65 lines (61 loc) · 3.43 KB
/
produto-altera-formulario.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
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Alterar Produto</title>
<link rel="stylesheet" href="static/css/bootstrap.min.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.min.css">
<link rel="stylesheet" href="static/css/styles.css">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light shadow-sm">
<div class="container-fluid">
<a class="navbar-brand" href="#"><i class="bi bi-shop"></i> FSSS</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavDropdown">
<ul class="navbar-nav ms-auto">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="/"><i class="bi bi-house-door"></i> Home</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
<i class="bi bi-box-seam"></i> Produto
</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="/produto-formulario"><i class="bi bi-plus-circle"></i> Cadastrar Produto</a></li>
<li><a class="dropdown-item" href="/produtos-lista"><i class="bi bi-card-list"></i> Listar Produtos</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<div class="container mt-4">
<h1>Alterar Produto</h1>
<form id="produtoForm" action="/produto-altera-formulario?id={{.ID}}" method="post" class="mt-4">
<div class="mb-3">
<label for="nome" class="form-label">Nome</label>
<input type="text" class="form-control" id="nome" name="nome" value="{{.Nome}}" required>
</div>
<div class="mb-3">
<label for="preco" class="form-label">Preço</label>
<input type="number" step="0.01" class="form-control" id="preco" name="preco" value="{{.Preco}}" required>
</div>
<div class="mb-3">
<label for="quantidade" class="form-label">Quantidade</label>
<input type="number" step="0.01" class="form-control" id="quantidade" name="quantidade" value="{{.Quantidade}}" required>
</div>
<div class="mb-3">
<label for="descricao" class="form-label">Descrição</label>
<textarea class="form-control" id="descricao" name="descricao" rows="3" required>{{.Descricao}}</textarea>
</div>
<button type="submit" class="btn btn-primary">Salvar</button>
</form>
<script src="static/js/bootstrap.bundle.js" type="text/javascript"></script>
<script src="script.js"></script>
</body>
</html>