Atualizando

This commit is contained in:
2024-10-28 09:06:25 -04:00
parent d04b382ea6
commit ba01ec046a
4 changed files with 29 additions and 3 deletions

13
views/produtos/buscar.ejs Normal file
View File

@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/stylesheets/style.css">
<title>Produtos</title>
</head>
<body>
<h1>Produtos</h1>
<%= produtos %>
</body>
</html>

View File

@@ -8,6 +8,11 @@
</head>
<body>
<h1>Produtos</h1>
<form action="/produtos/buscar" method="get">
<label for="Pesquisa"></label>
<input type="text" name="produto" id="Pesquisa">
<input type="submit" value="buscar">
</form>
<ul>
<li><a href="/produtos/produto-1"> Produto 1</a></li>
<li><a href="/produtos/produto-2"> Produto 2</a></li>