Melhorias nos HTMLs

parent a80c2760
<!DOCTYPE html> <!doctype html>
<html lang="pt-BR"> <html lang="pt-BR">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="/static/style.css"> <link rel="stylesheet" href="/static/style.css" />
<title>Cadastro</title> <title>Cadastro</title>
</head> </head>
<body> <body>
<div> <div>
<form action="/cadastro" method="POST"> <form action="/cadastro" method="POST">
<label for="nome">Nome da Receita</label> <label for="nome">Nome da Receita</label>
<input id="nome" name="nome" type="text" required> <input id="nome" name="nome" type="text" required />
<button type="reset">Limpar</button> <button type="reset">Limpar</button>
<button type="submit">Salvar</button> <button type="submit">Salvar</button>
</form> </form>
</div> </div>
</body> </body>
</html> </html>
\ No newline at end of file
<!DOCTYPE html> <!DOCTYPE html>
<html lang="pt-BR"> <html lang="pt-BR">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/static/style.css"> <link rel="stylesheet" href="/static/style.css">
<title>Editar Receita</title> <title>Editar Receita</title>
</head> </head>
<body> <body>
<div> <div>
<form action="/editar/{{ receita.id }}" method="POST"> <form action="/editar/{{ receita.id }}" method="POST">
...@@ -17,4 +19,5 @@ ...@@ -17,4 +19,5 @@
</form> </form>
</div> </div>
</body> </body>
</html> </html>
\ No newline at end of file
<!DOCTYPE html> <!doctype html>
<html lang="pt-BR"> <html lang="pt-BR">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="/static/style.css"> <link rel="stylesheet" href="/static/style.css" />
<title>Dishly</title> <title>Dishly</title>
</head> </head>
<body> <body>
<a href="/cadastro">Cadastrar Receita</a> <header>
<h1>Lista de Receitas</h1> <h1>Seja Bem-vindo ao Dishly</h1>
<ul> </header>
{% for receita in receitas %} <div>
<a href="/cadastro">Cadastrar Receita</a>
<h1>Lista de Receitas</h1>
<ul>
{% for receita in receitas %}
<li> <li>
{{ receita.nome }} {{ receita.nome }}
<a href="/editar/{{ receita.id }}">Editar</a> <a href="/editar/{{ receita.id }}">Editar</a>
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
</div>
<footer>
<p>&copy; 2023 Dishly. Todos os direitos reservados.</p>
</footer>
</body> </body>
</html> </html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment