Atualizando
This commit is contained in:
13
views/produtos/buscar.ejs
Normal file
13
views/produtos/buscar.ejs
Normal 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>
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user