Commit 65f7b02a by Ian Gustavo

atualizei

parent 1033bbee
<form action="/adicionar" method="POST">
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<title>CRUD Animais da Fazenda</title>
</head>
<body>
<h1>Cadastro de Animais</h1>
<form action="/adicionar" method="POST">
<input type="text" name="nome" placeholder="Nome" required>
<input type="text" name="tipo" placeholder="Tipo" required>
<input type="text" name="especie" placeholder="Espécie" required>
<input type="number" name="idade" placeholder="Idade" required>
<input type="number" step="0.1" name="peso" placeholder="Peso (kg)" required>
<button type="submit">Adicionar</button>
</form>
</form>
<hr>
<h2>Animais cadastrados</h2>
<ul>
{% for animal in animais %}
<li>
{{ animal.nome }} - {{ animal.especie }} - {{ animal.idade }} anos - {{ animal.peso }} kg
<a href="/excluir/{{ loop.index0 }}">Excluir</a>
</li>
{% endfor %}
</ul>
</body>
</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